Ignore:
Timestamp:
09/21/11 22:30:03 (11 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
1825f82
Parents:
66ec7cb
Message:

The dateChanged signal is transmitted to the tabcontainers now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/daynavigatorwidget.cpp

    r66ec7cb rbf6be88  
    3030    connect(nextDayButton, SIGNAL(clicked()), SLOT(nextDayButtonClicked()));
    3131    connect(todayButton, SIGNAL(clicked()), SLOT(todayButtonClicked()));
     32
     33    configureNavigation();
    3234}
    3335
     
    7173
    7274void 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);
    7577}
    7678
     
    103105    Q_UNUSED(aEvent);
    104106
    105     QString selectedDateStr = mCurDate.toString("dddd\nyyyy-MM-dd");
     107    QString selectedDateStr = mCurDate.isValid() ? mCurDate.toString("dddd\nyyyy-MM-dd") : tr("No date");
    106108    QPainter painter(this);
    107109    painter.save();
Note: See TracChangeset for help on using the changeset viewer.