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/mainwindow.cpp

    reb21333 r872aeaa  
    3232
    3333    // event details have changed
    34     connect(dayTabContainer, SIGNAL(eventHasChanged(int)), SLOT(eventHasChanged(int)));
    35     connect(favsTabContainer, SIGNAL(eventHasChanged(int)), SLOT(eventHasChanged(int)));
    36     connect(tracksTabContainer, SIGNAL(eventHasChanged(int)), SLOT(eventHasChanged(int)));
    37     connect(roomsTabContainer, SIGNAL(eventHasChanged(int)), SLOT(eventHasChanged(int)));
    38     connect(nowTabContainer, SIGNAL(eventHasChanged(int)), SLOT(eventHasChanged(int)));
    39     connect(searchTabContainer, SIGNAL(eventHasChanged(int)), SLOT(eventHasChanged(int)));
     34    connect(dayTabContainer, SIGNAL(eventHasChanged(int,bool)), SLOT(eventHasChanged(int,bool)));
     35    connect(favsTabContainer, SIGNAL(eventHasChanged(int,bool)), SLOT(eventHasChanged(int,bool)));
     36    connect(tracksTabContainer, SIGNAL(eventHasChanged(int,bool)), SLOT(eventHasChanged(int,bool)));
     37    connect(roomsTabContainer, SIGNAL(eventHasChanged(int,bool)), SLOT(eventHasChanged(int,bool)));
     38    connect(nowTabContainer, SIGNAL(eventHasChanged(int,bool)), SLOT(eventHasChanged(int,bool)));
     39    connect(searchTabContainer, SIGNAL(eventHasChanged(int,bool)), SLOT(eventHasChanged(int,bool)));
    4040
    4141    // event conference map button clicked
     
    105105}
    106106
    107 void MainWindow::eventHasChanged(int aEventId)
     107void MainWindow::eventHasChanged(int aEventId, bool aReloadModel)
    108108{
    109109    dayTabContainer->updateTreeViewModel(aEventId);
    110     favsTabContainer->updateTreeViewModel(aEventId);
     110    favsTabContainer->updateTreeViewModel(aEventId,aReloadModel);
    111111    tracksTabContainer->updateTreeViewModel(aEventId);
    112112    nowTabContainer->updateTreeViewModel(aEventId);
     
    138138    tracksTabContainer->setDates(startDate, endDate);
    139139    roomsTabContainer->setDates(startDate, endDate);
    140     //favsTabContainer->setDates(startDate, endDate);
    141     //searchTabContainer->setDates(startDate, endDate);
     140    favsTabContainer->setDates(startDate, endDate);
     141    searchTabContainer->setDates(startDate, endDate);
    142142    searchTabContainer->searchAgainClicked();
    143143    nowTabContainer->updateTreeView(QDate::currentDate());
Note: See TracChangeset for help on using the changeset viewer.