Ignore:
Timestamp:
01/18/10 19:15:41 (12 years ago)
Author:
korrco <korrco@…>
Branches:
master, qt5
Children:
4be95b8
Parents:
fbc1646
Message:

grouping by time equation changed - beter group deviding, also according to favourites

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    rfbc1646 ra35aa83  
    121121        int confId = 1;
    122122        // '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);
    124127    }
    125128}
     
    173176    activityDayNavigator->show();
    174177}
    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.