-rw-r--r-- | korganizer/datenavigatorcontainer.cpp | 7 | ||||
-rw-r--r-- | korganizer/kodaymatrix.cpp | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/korganizer/datenavigatorcontainer.cpp b/korganizer/datenavigatorcontainer.cpp index 6de7c45..9720146 100644 --- a/korganizer/datenavigatorcontainer.cpp +++ b/korganizer/datenavigatorcontainer.cpp @@ -317,15 +317,13 @@ void DateNavigatorContainer::resizeEvent( QResizeEvent * e ) } } mLastDisplayedDN = horizontalCount*verticalCount-1; - bool setBaseD = false; while ( count > ( mExtraViews.count() + 1 ) ) { KDateNavigator *n = new KDateNavigator( this ); n->setMonthSignalOffset ( mExtraViews.count()+1 ); mExtraViews.append( n ); n->setCalendar( mCalendar ); - setBaseD = true; connectNavigatorView( n ); n->show(); } int iii = 0; @@ -335,10 +333,10 @@ void DateNavigatorContainer::resizeEvent( QResizeEvent * e ) else mExtraViews.at( iii )->hide(); ++iii; } - if ( setBaseD ) - setBaseDates(); + + setBaseDates(); if ( fontchange ) { //mNavigatorView->changeFont( fo ); uint i; for( i = 0; i < mExtraViews.count(); ++i ) { @@ -373,8 +371,9 @@ void DateNavigatorContainer::resizeEvent( QResizeEvent * e ) } view->setGeometry( x * width, y * height, width, height ); } + //updateDayMatrixDates(); } QSize DateNavigatorContainer::minimumSizeHint() const { diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp index 3ee1fa7..366e8b8 100644 --- a/korganizer/kodaymatrix.cpp +++ b/korganizer/kodaymatrix.cpp @@ -102,9 +102,9 @@ void DynamicTip::maybeTip( const QPoint &pos ) const int KODayMatrix::NOSELECTION = -1000; const int KODayMatrix::NUMDAYS = 42; KODayMatrix::KODayMatrix( QWidget *parent, const char *name ) - : QFrame( parent, name ), mCalendar( 0 ) + : QFrame( parent, name , Qt::WRepaintNoErase ), mCalendar( 0 ) #if 0 KODayMatrix::KODayMatrix(QWidget *parent, Calendar* calendar, QDate date, const char *name) : QFrame(parent, name) |