Diffstat (limited to 'korganizer/datenavigatorcontainer.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | korganizer/datenavigatorcontainer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/datenavigatorcontainer.cpp b/korganizer/datenavigatorcontainer.cpp index cbfc5b2..3f6e29b 100644 --- a/korganizer/datenavigatorcontainer.cpp +++ b/korganizer/datenavigatorcontainer.cpp | |||
@@ -158,24 +158,25 @@ void DateNavigatorContainer::resizeEvent( QResizeEvent * ) | |||
158 | // kdDebug(5850) << " NAVIGATORVIEW minimumSizeHint: " << minSize << endl; | 158 | // kdDebug(5850) << " NAVIGATORVIEW minimumSizeHint: " << minSize << endl; |
159 | 159 | ||
160 | int verticalCount = size().height() / minSize.height(); | 160 | int verticalCount = size().height() / minSize.height(); |
161 | int horizontalCount = size().width() / minSize.width(); | 161 | int horizontalCount = size().width() / minSize.width(); |
162 | //qDebug("COUNT %d %d %d %d ", verticalCount, horizontalCount , mVerticalCount, mHorizontalCount ); | 162 | //qDebug("COUNT %d %d %d %d ", verticalCount, horizontalCount , mVerticalCount, mHorizontalCount ); |
163 | if ( horizontalCount != mHorizontalCount || | 163 | if ( horizontalCount != mHorizontalCount || |
164 | verticalCount != mVerticalCount ) { | 164 | verticalCount != mVerticalCount ) { |
165 | uint count = horizontalCount * verticalCount; | 165 | uint count = horizontalCount * verticalCount; |
166 | if ( count == 0 ) return; | 166 | if ( count == 0 ) return; |
167 | 167 | ||
168 | while ( count > ( mExtraViews.count() + 1 ) ) { | 168 | while ( count > ( mExtraViews.count() + 1 ) ) { |
169 | KDateNavigator *n = new KDateNavigator( this ); | 169 | KDateNavigator *n = new KDateNavigator( this ); |
170 | n->setMonthSignalOffset ( mExtraViews.count()+1 ); | ||
170 | mExtraViews.append( n ); | 171 | mExtraViews.append( n ); |
171 | n->setCalendar( mCalendar ); | 172 | n->setCalendar( mCalendar ); |
172 | setBaseDates(); | 173 | setBaseDates(); |
173 | connectNavigatorView( n ); | 174 | connectNavigatorView( n ); |
174 | n->show(); | 175 | n->show(); |
175 | } | 176 | } |
176 | 177 | ||
177 | while ( count < ( mExtraViews.count() + 1 ) ) { | 178 | while ( count < ( mExtraViews.count() + 1 ) ) { |
178 | mExtraViews.removeLast(); | 179 | mExtraViews.removeLast(); |
179 | } | 180 | } |
180 | 181 | ||
181 | mHorizontalCount = horizontalCount; | 182 | mHorizontalCount = horizontalCount; |