author | zautrix <zautrix> | 2004-10-29 22:27:13 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-29 22:27:13 (UTC) |
commit | aafa695508796e86e9f267633ea5e6965d876031 (patch) (side-by-side diff) | |
tree | 8ff03f51e99f7e90b85e8f94af157a883bcd48f8 /korganizer/komonthview.cpp | |
parent | 8e08679a79398def54980c0e838b242d69ca6030 (diff) | |
download | kdepimpi-aafa695508796e86e9f267633ea5e6965d876031.zip kdepimpi-aafa695508796e86e9f267633ea5e6965d876031.tar.gz kdepimpi-aafa695508796e86e9f267633ea5e6965d876031.tar.bz2 |
monthview exclude sat fix
-rw-r--r-- | korganizer/komonthview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 688d9e1..7d1e82f 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -376,25 +376,25 @@ void MonthViewCell::setHoliday( const QString &holiday ) } } void MonthViewCell::keyPressEvent ( QKeyEvent * e ) { e->ignore(); } void MonthViewCell::updateCell() { setPrimary( mDate.month()%2 ); - setHoliday( KOGlobals::self()->calendarSystem()->dayOfWeek(mDate) == KOGlobals::self()->calendarSystem()->weekDayOfPray() ); + setHoliday( KOGlobals::self()->calendarSystem()->dayOfWeek(mDate) == KOGlobals::self()->calendarSystem()->weekDayOfPray() || ( mDate.dayOfWeek() == 6 ) && KOPrefs::instance()-> mExcludeSaturdays); if ( mDate == QDate::currentDate() ) { mItemList->setLineWidth( 3 ); } else { mItemList->setLineWidth( 1 ); } mItemList->clear(); //qApp->processEvents(); if ( !mHolidayString.isEmpty() ) { MonthViewItem *item = new MonthViewItem( 0, mDate, mHolidayString ); item->setPalette( mHolidayPalette ); mItemList->insertItem( item ); } |