author | zautrix <zautrix> | 2005-01-19 22:57:42 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-19 22:57:42 (UTC) |
commit | ade7e8fcdcf45d5bc73ea73da6f9a1b06964a64e (patch) (side-by-side diff) | |
tree | 990ed560fbf9126fba2abdaf98c036cddad2d94f /korganizer/calendarview.cpp | |
parent | a9f8ad6916ea1a849a43fe49c4085f6c44b5c47b (diff) | |
download | kdepimpi-ade7e8fcdcf45d5bc73ea73da6f9a1b06964a64e.zip kdepimpi-ade7e8fcdcf45d5bc73ea73da6f9a1b06964a64e.tar.gz kdepimpi-ade7e8fcdcf45d5bc73ea73da6f9a1b06964a64e.tar.bz2 |
many view fixes
-rw-r--r-- | korganizer/calendarview.cpp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 12af655..f9af769 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -234,4 +234,5 @@ CalendarView::CalendarView( Calendar *calendar, void CalendarView::init() { + mBlockShowDates = false; beamDialog = new KOBeamPrefs(); mDatePickerMode = 0; @@ -347,7 +348,7 @@ void CalendarView::init() connect( mNavigator, SIGNAL( datesSelected( const KCal::DateList & ) ), SLOT( showDates( const KCal::DateList & ) ) ); + connect( mNavigator, SIGNAL( datesSelected( const KCal::DateList & ) ), mDateNavigator, SLOT( selectDates( const KCal::DateList & ) ) ); - connect( mNavigatorBar, SIGNAL( goPrevYear() ), mNavigator, SLOT( selectPreviousYear() ) ); @@ -358,8 +359,8 @@ void CalendarView::init() connect( mNavigatorBar, SIGNAL( goNextMonth() ), mNavigator, SLOT( selectNextMonth() ) ); - + connect( mNavigator, SIGNAL( datesSelected( const KCal::DateList & ) ), mNavigatorBar, SLOT( selectDates( const KCal::DateList & ) ) ); - + connect( mDateNavigator, SIGNAL( weekClicked( const QDate & ) ), mNavigator, SLOT( selectWeek( const QDate & ) ) ); @@ -498,5 +499,7 @@ CalendarView::~CalendarView() void CalendarView::showDay( QDate d ) { + dateNavigator()->blockSignals( true ); dateNavigator()->selectDate( d ); + dateNavigator()->blockSignals( false ); mViewManager->showWeekView(); dateNavigator()->selectDate( d ); @@ -673,5 +676,7 @@ void CalendarView::removeAlarm(const QDateTime &qdt, const QString ¬i ) void CalendarView::selectWeekNum ( int num ) { + dateNavigator()->blockSignals( true ); dateNavigator()->selectWeek( num ); + dateNavigator()->blockSignals( false ); mViewManager->showWeekView(); } @@ -3466,8 +3471,11 @@ void CalendarView::showDates(const DateList &selectedDates) // kdDebug() << "CalendarView::selectDates()" << endl; - if ( mViewManager->currentView() ) { - updateView( selectedDates.first(), selectedDates.last() ); - } else { - mViewManager->showAgendaView(); + + if ( !mBlockShowDates ) { + if ( mViewManager->currentView() ) { + updateView( selectedDates.first(), selectedDates.last() ); + } else { + mViewManager->showAgendaView(); + } } |