Changeset a35aa83 for src/gui/mainwindow.cpp
- Timestamp:
- 01/18/10 19:15:41 (13 years ago)
- Branches:
- master, qt5
- Children:
- 4be95b8
- Parents:
- fbc1646
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/mainwindow.cpp
rfbc1646 ra35aa83 121 121 int confId = 1; 122 122 // 'dayNavigator' emits signal 'dateChanged' after setting valid START:END dates 123 dayNavigator->setDates(Conference::getById(confId).start(), Conference::getById(confId).end()); 123 QDate aStartDate = Conference::getById(confId).start(); 124 QDate aEndDate = Conference::getById(confId).end(); 125 dayNavigator->setDates(aStartDate, aEndDate); 126 activityDayNavigator->setDates(aStartDate, aEndDate); 124 127 } 125 128 } … … 173 176 activityDayNavigator->show(); 174 177 } 175 176 void MainWindow::updateView(int tabIndex)177 {178 //TODO korinpa: change to enum or names ?179 qDebug() << "updateView index: " << tabIndex;180 if (tabIndex == 0)181 {182 QDate date = dayNavigator->getCurrentDate();183 updateDayView(date);184 }185 else if (tabIndex == 1)186 {187 updateFavView();188 }189 else if (tabIndex == 2)190 {191 QDate date = activityDayNavigator->getCurrentDate();192 updateActivitiesDayView(date);193 }194 }195
Note: See TracChangeset
for help on using the changeset viewer.