Changeset 7f84a70 in confclerk_git for src/gui/mainwindow.cpp
- Timestamp:
- 01/19/10 13:55:24 (13 years ago)
- Branches:
- master, qt5
- Children:
- 0c658c1
- Parents:
- 2fc2878
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/mainwindow.cpp
r2fc2878 r7f84a70 39 39 connect(dayNavigator, SIGNAL(dateChanged(const QDate &)), SLOT(updateDayView(const QDate &))); 40 40 connect(activityDayNavigator, SIGNAL(dateChanged(const QDate &)), SLOT(updateActivitiesDayView(const QDate &))); 41 connect(favouriteDayNavigator, SIGNAL(dateChanged(const QDate &)), SLOT(updateFavouritesDayView(const QDate &))); 41 42 42 43 // DAY EVENTS View … … 94 95 dayNavigator->setDates(aStartDate, aEndDate); 95 96 activityDayNavigator->setDates(aStartDate, aEndDate); 97 favouriteDayNavigator->setDates(aStartDate, aEndDate); 96 98 } 97 99 … … 168 170 static_cast<EventModel*>(dayTreeView->model())->loadEvents(Conference::getById(confId).start(),confId); 169 171 dayTreeView->reset(); 172 dayNavigator->show(); 170 173 } 171 174 break; 172 175 case 1: //index 1 of tabWidget: favouritesTab 173 176 { 174 static_cast<EventModel*>(favTreeView->model())->loadFavEvents(Conference::getById(confId).start(),confId); 175 favTreeView->reset(); 177 static_cast<EventModel*>(favTreeView->model())->loadFavEvents(Conference::getById(confId).start(),confId); 178 favTreeView->reset(); 179 favouriteDayNavigator->show(); 180 } 181 break; 182 case 2: //index 2 of tabWidget: activitiesTab 183 { 184 static_cast<EventModel*>(actTreeView->model())->loadEventsByActivities(Conference::getById(confId).start(),confId); 185 actTreeView->reset(); 186 activityDayNavigator->show(); 176 187 } 177 188 break; 178 189 default: 179 190 { 180 //TODO: update of activitiesTab needed? 191 181 192 } 182 193 }; 183 194 184 dayNavigator->show(); 185 } 186 195 196 } 187 197 188 198 void MainWindow::updateActivitiesDayView(const QDate &aDate) … … 192 202 actTreeView->reset(); 193 203 activityDayNavigator->show(); 204 } 205 206 void MainWindow::updateFavouritesDayView(const QDate &aDate) 207 { 208 int confId = 1; 209 static_cast<EventModel*>(favTreeView->model())->loadFavEvents(aDate,confId); 210 favTreeView->reset(); 211 favouriteDayNavigator->show(); 194 212 } 195 213
Note: See TracChangeset
for help on using the changeset viewer.