Diffstat (limited to 'korganizer/kdatenavigator.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/kdatenavigator.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/korganizer/kdatenavigator.cpp b/korganizer/kdatenavigator.cpp index e76a85a..ab9a40f 100644 --- a/korganizer/kdatenavigator.cpp +++ b/korganizer/kdatenavigator.cpp @@ -59,3 +59,3 @@ KDateNavigator::KDateNavigator( QWidget *parent, const char *name ) } - + mMonthSignalOffset = 0; mSelectedDates.append(startDate); @@ -72,3 +72,3 @@ KDateNavigator::KDateNavigator( QWidget *parent, const char *name ) connect( mNavigatorBar, SIGNAL( goNextYear() ), SIGNAL( goNextYear() ) ); - connect( mNavigatorBar, SIGNAL( monthSelected( int ) ), SIGNAL( monthSelected( int ) ) ); + connect( mNavigatorBar, SIGNAL( monthSelected( int ) ), SLOT( slotMonthSelected( int ) ) ); @@ -119,2 +119,10 @@ KDateNavigator::KDateNavigator( QWidget *parent, const char *name ) } +void KDateNavigator::slotMonthSelected( int m ) +{ + if ( m_MthYr.month() <= mMonthSignalOffset) + m += 12; + int mo = m - mMonthSignalOffset; + emit monthSelected( m - mMonthSignalOffset ); + +} void KDateNavigator::setCalendar( Calendar *cal ) |