-rw-r--r-- | korganizer/koviewmanager.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp index fb4de37..5d9af6d 100644 --- a/korganizer/koviewmanager.cpp +++ b/korganizer/koviewmanager.cpp | |||
@@ -349,24 +349,36 @@ void KOViewManager::raiseCurrentView( bool fullScreen, bool callUpdateView ) | |||
349 | //qDebug("qApp->processEvents() "); | 349 | //qDebug("qApp->processEvents() "); |
350 | globalFlagBlockAgenda = 0; | 350 | globalFlagBlockAgenda = 0; |
351 | mAgendaView->repaintAgenda(); | 351 | mAgendaView->repaintAgenda(); |
352 | 352 | ||
353 | } | 353 | } |
354 | globalFlagBlockAgenda = 0; | 354 | globalFlagBlockAgenda = 0; |
355 | } | 355 | } |
356 | emit signalAgendaView( mCurrentView == mAgendaView ); | 356 | emit signalAgendaView( mCurrentView == mAgendaView ); |
357 | //qDebug("raiseCurrentView ende "); | 357 | //qDebug("raiseCurrentView ende "); |
358 | 358 | ||
359 | } | 359 | } |
360 | 360 | ||
361 | void KOViewManager::clearAllViews() | ||
362 | { | ||
363 | |||
364 | if ( mTodoView ) mTodoView->clearList(); | ||
365 | if ( mListView ) mListView->clearList(); | ||
366 | |||
367 | if ( mAgendaView ) mAgendaView->clearList(); | ||
368 | if ( mMonthView ) mMonthView->clearList(); | ||
369 | if ( mWhatsNextView ) mWhatsNextView->clearList(); | ||
370 | if ( mJournalView ) mJournalView->clearList(); | ||
371 | |||
372 | } | ||
361 | void KOViewManager::updateView() | 373 | void KOViewManager::updateView() |
362 | { | 374 | { |
363 | // qDebug("KOViewManager::updateView() "); | 375 | // qDebug("KOViewManager::updateView() "); |
364 | // if we are updating mTodoView, we get endless recursion | 376 | // if we are updating mTodoView, we get endless recursion |
365 | if ( mTodoView == mCurrentView ) | 377 | if ( mTodoView == mCurrentView ) |
366 | return; | 378 | return; |
367 | if ( mCurrentView ) mCurrentView->updateView(); | 379 | if ( mCurrentView ) mCurrentView->updateView(); |
368 | 380 | ||
369 | } | 381 | } |
370 | 382 | ||
371 | void KOViewManager::updateView(const QDate &start, const QDate &end) | 383 | void KOViewManager::updateView(const QDate &start, const QDate &end) |
372 | { | 384 | { |
@@ -823,16 +835,15 @@ QDate KOViewManager::currentSelectionDate() | |||
823 | void KOViewManager::addView(KOrg::BaseView *view) | 835 | void KOViewManager::addView(KOrg::BaseView *view) |
824 | { | 836 | { |
825 | #if QT_VERSION >= 0x030000 | 837 | #if QT_VERSION >= 0x030000 |
826 | mMainView->viewStack()->addWidget( view ); | 838 | mMainView->viewStack()->addWidget( view ); |
827 | #else | 839 | #else |
828 | mMainView->viewStack()->addWidget( view, 1 ); | 840 | mMainView->viewStack()->addWidget( view, 1 ); |
829 | #endif | 841 | #endif |
830 | } | 842 | } |
831 | 843 | ||
832 | void KOViewManager::setDocumentId( const QString &id ) | 844 | void KOViewManager::setDocumentId( const QString &id ) |
833 | { | 845 | { |
834 | if (mTodoView) { | 846 | if (mTodoView) { |
835 | mTodoView->clearList(); | ||
836 | mTodoView->setDocumentId( id ); | 847 | mTodoView->setDocumentId( id ); |
837 | } | 848 | } |
838 | } | 849 | } |