Changeset 1825f82 in confclerk_git for src/gui/daynavigatorwidget.cpp


Ignore:
Timestamp:
09/21/11 23:49:43 (11 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
6d48bb2
Parents:
bf6be88
Message:

Implemented "unset dates" in the date navigator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/daynavigatorwidget.cpp

    rbf6be88 r1825f82  
    7272
    7373
     74void DayNavigatorWidget::unsetDates() {
     75    mStartDate= QDate();
     76    mEndDate = QDate();
     77    mCurDate = QDate();
     78
     79    configureNavigation();
     80    emit(dateChanged(mCurDate));
     81    this->update();
     82}
     83
     84
    7485void DayNavigatorWidget::configureNavigation() {
    7586    prevDayButton->setDisabled(!mStartDate.isValid() || mCurDate == mStartDate);
Note: See TracChangeset for help on using the changeset viewer.