[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdepim/enterprise/kdepim/korganizer
From: Sergio Luis Martins <iamsergio () gmail ! com>
Date: 2010-02-22 21:06:48
Message-ID: 1266872808.612526.10580.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1094489 by smartins:
When checking/unchecking "fullwindow" config option, the label was only updated after \
restarting korganizer.
MERGE: none
M +13 -5 komonthview.cpp
M +2 -0 komonthview.h
--- branches/kdepim/enterprise/kdepim/korganizer/komonthview.cpp #1094488:1094489
@@ -947,6 +947,8 @@
for ( uint i = 0; i < mCells.count(); ++i ) {
mCells[i]->updateConfig();
}
+
+ showLabel( !KOPrefs::instance()->fullViewMonth() );
}
void KOMonthView::updateDayLabels()
@@ -979,11 +981,8 @@
mLabel->setText( i18n( "monthname year", "%1 %2" )
.arg( calSys->monthName( start ) )
.arg( calSys->year( start ) ) );
- if ( !KOPrefs::instance()->fullViewMonth() ) {
- mLabel->show();
- } else {
- mLabel->hide();
- }
+
+ showLabel( !KOPrefs::instance()->fullViewMonth() );
bool primary = false;
uint i;
@@ -1214,3 +1213,12 @@
mSelectedCell = 0;
}
}
+
+void KOMonthView::showLabel( bool show )
+{
+ if ( show ) {
+ mLabel->show();
+ } else {
+ mLabel->hide();
+ }
+}
--- branches/kdepim/enterprise/kdepim/korganizer/komonthview.h #1094488:1094489
@@ -291,6 +291,8 @@
void updateDayLabels();
private:
+ void showLabel( bool show );
+
class GetDateVisitor;
int mDaysPerWeek;
int mNumWeeks;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic