summaryrefslogtreecommitdiffabout
path: root/korganizer/datenavigatorcontainer.cpp
Unidiff
Diffstat (limited to 'korganizer/datenavigatorcontainer.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/datenavigatorcontainer.cpp28
1 files changed, 13 insertions, 15 deletions
diff --git a/korganizer/datenavigatorcontainer.cpp b/korganizer/datenavigatorcontainer.cpp
index 27ba9e0..f6f62a4 100644
--- a/korganizer/datenavigatorcontainer.cpp
+++ b/korganizer/datenavigatorcontainer.cpp
@@ -206,11 +206,4 @@ void DateNavigatorContainer::checkUpdateDayMatrixDates()
206 fontchange = true; 206 fontchange = true;
207 count = horizontalCount * verticalCount; 207 count = horizontalCount * verticalCount;
208 } else {
209 if ( mNavigatorView->fontChanged() ) {
210 fontchange = true;
211 fo = KOPrefs::instance()->mDateNavigatorFont;
212 mNavigatorView->changeFont( fo );
213 mNavigatorView->unsetFontChanged();
214 }
215 } 208 }
216 209
@@ -225,19 +218,24 @@ void DateNavigatorContainer::checkUpdateDayMatrixDates()
225 } 218 }
226 219
227
228 setBaseDates(); 220 setBaseDates();
221 mHorizontalCount = horizontalCount;
222 mVerticalCount = verticalCount;
223
224 }
225 if ( !fontchange ) {
226 if ( mNavigatorView->fontChanged() ) {
227 fontchange = true;
228 fo = KOPrefs::instance()->mDateNavigatorFont;
229 mNavigatorView->changeFont( fo );
230 mNavigatorView->unsetFontChanged();
231 }
232 }
229 if ( fontchange ) { 233 if ( fontchange ) {
230 //mNavigatorView->changeFont( fo );
231 uint i; 234 uint i;
232 for( i = 0; i < mExtraViews.count(); ++i ) { 235 for( i = 0; i < mLastDisplayedDN; ++i ) {
233 KDateNavigator *view = mExtraViews.at( i ); 236 KDateNavigator *view = mExtraViews.at( i );
234 view->changeFont( fo ); 237 view->changeFont( fo );
235 } 238 }
236 } 239 }
237 mHorizontalCount = horizontalCount;
238 mVerticalCount = verticalCount;
239
240 }
241
242 int theight = height() / mVerticalCount; 240 int theight = height() / mVerticalCount;
243 int twidth = width() / mHorizontalCount; 241 int twidth = width() / mHorizontalCount;