author | zautrix <zautrix> | 2005-03-30 13:24:56 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-30 13:24:56 (UTC) |
commit | 056f171723a9301aea5a65340dffeda34e078abf (patch) (unidiff) | |
tree | 7930525c801dd9c5d9a910b71bca7dc79e10f666 /korganizer/datenavigatorcontainer.cpp | |
parent | b5222dd7a607f78235b1ea39fea0f95a9c08ccd3 (diff) | |
download | kdepimpi-056f171723a9301aea5a65340dffeda34e078abf.zip kdepimpi-056f171723a9301aea5a65340dffeda34e078abf.tar.gz kdepimpi-056f171723a9301aea5a65340dffeda34e078abf.tar.bz2 |
fixes
Diffstat (limited to 'korganizer/datenavigatorcontainer.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | korganizer/datenavigatorcontainer.cpp | 28 |
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 | |||
@@ -205,13 +205,6 @@ void DateNavigatorContainer::checkUpdateDayMatrixDates() | |||
205 | verticalCount = 1; | 205 | verticalCount = 1; |
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 | ||
217 | mLastDisplayedDN = horizontalCount*verticalCount-1; | 210 | mLastDisplayedDN = horizontalCount*verticalCount-1; |
@@ -224,21 +217,26 @@ void DateNavigatorContainer::checkUpdateDayMatrixDates() | |||
224 | // n->show(); | 217 | // n->show(); |
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; |
244 | 242 | ||