-rw-r--r-- | korganizer/koagendaview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index a32333c..fa6b951 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp | |||
@@ -753,24 +753,26 @@ void KOAgendaView::createDayLabels() | |||
753 | if ( mSelectedDates.first() == QDateTime::currentDateTime().date() ) | 753 | if ( mSelectedDates.first() == QDateTime::currentDateTime().date() ) |
754 | addString = i18n("Today"); | 754 | addString = i18n("Today"); |
755 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(1) ) | 755 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(1) ) |
756 | addString = i18n("Tomorrow"); | 756 | addString = i18n("Tomorrow"); |
757 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(-1) ) | 757 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(-1) ) |
758 | addString = i18n("Yesterday"); | 758 | addString = i18n("Yesterday"); |
759 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(-2) ) | 759 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(-2) ) |
760 | addString = i18n("Day before yesterday"); | 760 | addString = i18n("Day before yesterday"); |
761 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(2) ) | 761 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(2) ) |
762 | addString = i18n("Day after tomorrow"); | 762 | addString = i18n("Day after tomorrow"); |
763 | if ( !addString.isEmpty() ) { | 763 | if ( !addString.isEmpty() ) { |
764 | str = addString+", " + str; | 764 | str = addString+", " + str; |
765 | } else { | ||
766 | str = KGlobal::locale()->formatDate( date, KOPrefs::instance()->mShortDateInViewer); | ||
765 | } | 767 | } |
766 | } | 768 | } |
767 | dayLabel->setText(str); | 769 | dayLabel->setText(str); |
768 | //dayLabel->setAlignment(QLabel::AlignHCenter); | 770 | //dayLabel->setAlignment(QLabel::AlignHCenter); |
769 | if (date == QDate::currentDate()) { | 771 | if (date == QDate::currentDate()) { |
770 | QFont bFont = dlf; | 772 | QFont bFont = dlf; |
771 | bFont.setBold( true ); | 773 | bFont.setBold( true ); |
772 | dayLabel->setFont(bFont); | 774 | dayLabel->setFont(bFont); |
773 | } | 775 | } |
774 | //dayLayout->addWidget(dayLabel); | 776 | //dayLayout->addWidget(dayLabel); |
775 | 777 | ||
776 | #ifndef KORG_NOPLUGINS | 778 | #ifndef KORG_NOPLUGINS |