Ignore:
Timestamp:
01/21/10 10:49:41 (12 years ago)
Author:
timkoma <timkoma@…>
Branches:
master, qt5
Children:
72cd3af
Parents:
842f5f9
Message:

first working version of the search

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    r842f5f9 re662750  
    7171    trackTreeView->setItemDelegate(new Delegate(trackTreeView));
    7272
    73     // DAY EVENTS View
     73    // SEARCH EVENTS View
    7474        searchTreeView->setHeaderHidden(true);
    7575        searchTreeView->setRootIsDecorated(false);
     
    112112        trackDayNavigator->setDates(aStartDate, aEndDate);
    113113        favouriteDayNavigator->setDates(aStartDate, aEndDate);
     114        searchDayNavigator->setDates(aStartDate, aEndDate);
    114115    }
    115116
     
    275276        columns.append( "abstract" );
    276277
     278    searchTreeView->reset();
    277279    if( mSqlEngine->searchEvent( confId, columns, searchEdit->text() ) > 0 ){
    278         searchTreeView->setVisible(true);
    279         searchDayNavigator->setVisible(true);
    280     }
    281 }
    282 
     280        static_cast<EventModel*>(searchTreeView->model())->loadSearchResultEvents(Conference::getById(confId).start(),confId);
     281        searchDayNavigator->show();
     282        searchTreeView->show();
     283    }
     284}
     285
Note: See TracChangeset for help on using the changeset viewer.