Changeset bf6be88 in confclerk_git for src/gui/daynavigatorwidget.cpp
- Timestamp:
- 09/21/11 22:30:03 (11 years ago)
- Branches:
- master, qt5
- Children:
- 1825f82
- Parents:
- 66ec7cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/daynavigatorwidget.cpp
r66ec7cb rbf6be88 30 30 connect(nextDayButton, SIGNAL(clicked()), SLOT(nextDayButtonClicked())); 31 31 connect(todayButton, SIGNAL(clicked()), SLOT(todayButtonClicked())); 32 33 configureNavigation(); 32 34 } 33 35 … … 71 73 72 74 void DayNavigatorWidget::configureNavigation() { 73 prevDayButton->setDisabled( mCurDate == mStartDate);74 nextDayButton->setDisabled( mCurDate == mEndDate);75 prevDayButton->setDisabled(!mStartDate.isValid() || mCurDate == mStartDate); 76 nextDayButton->setDisabled(!mEndDate.isValid() || mCurDate == mEndDate); 75 77 } 76 78 … … 103 105 Q_UNUSED(aEvent); 104 106 105 QString selectedDateStr = mCurDate. toString("dddd\nyyyy-MM-dd");107 QString selectedDateStr = mCurDate.isValid() ? mCurDate.toString("dddd\nyyyy-MM-dd") : tr("No date"); 106 108 QPainter painter(this); 107 109 painter.save();
Note: See TracChangeset
for help on using the changeset viewer.