Ignore:
Timestamp:
01/28/10 15:47:21 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
83020cd
Parents:
eb21333
Message:

some performance optimizations

  • favourities reloaded only if they have really changed
  • otherwise only event in the question is updated
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/favtabcontainer.cpp

    reb21333 r872aeaa  
    1111}
    1212
    13 void FavTabContainer::updateTreeViewModel(int aEventId)
    14 {
    15     Q_UNUSED(aEventId);
    16 
    17     // requires special handling
    18     // we need to reload favourites, because some favourite could be deleted
    19     //static_cast<EventModel*>(favTreeView->model())->updateModel(aEventId);
    20     int confId = Conference::activeConference();
    21     QDate startDate = Conference::getById(confId).start();
    22     QDate endDate = Conference::getById(confId).end();
    23     dayNavigator->setDates(startDate, endDate);
    24     updateTreeView( Conference::getById(confId).start() );
    25 }
    26 
Note: See TracChangeset for help on using the changeset viewer.