Diffstat (limited to 'korganizer/koviewmanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koviewmanager.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp index 7b307f7..bd191d8 100644 --- a/korganizer/koviewmanager.cpp +++ b/korganizer/koviewmanager.cpp | |||
@@ -468,6 +468,7 @@ void KOViewManager::showListView() | |||
468 | showView(mListView, KOPrefs::instance()->mFullViewTodo); | 468 | showView(mListView, KOPrefs::instance()->mFullViewTodo); |
469 | //mFlagShowNextxDays = temp; | 469 | //mFlagShowNextxDays = temp; |
470 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_L_VIEW; | 470 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_L_VIEW; |
471 | mMainView->setScrollBarStep( 7 ); | ||
471 | } | 472 | } |
472 | 473 | ||
473 | void KOViewManager::showAgendaView( bool fullScreen ) | 474 | void KOViewManager::showAgendaView( bool fullScreen ) |
@@ -535,6 +536,7 @@ void KOViewManager::showAgendaView( bool fullScreen ) | |||
535 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_A_VIEW; | 536 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_A_VIEW; |
536 | showView( mAgendaView, full); | 537 | showView( mAgendaView, full); |
537 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_A_VIEW; | 538 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_A_VIEW; |
539 | mMainView->setScrollBarStep( 1 ); | ||
538 | } | 540 | } |
539 | 541 | ||
540 | void KOViewManager::showDayView() | 542 | void KOViewManager::showDayView() |
@@ -551,6 +553,7 @@ void KOViewManager::showDayView() | |||
551 | globalFlagBlockLabel = 0; | 553 | globalFlagBlockLabel = 0; |
552 | mMainView->dateNavigator()->selectDates( 1 ); | 554 | mMainView->dateNavigator()->selectDates( 1 ); |
553 | mCurrentAgendaView = 1 ; | 555 | mCurrentAgendaView = 1 ; |
556 | mMainView->setScrollBarStep( 1 ); | ||
554 | 557 | ||
555 | } | 558 | } |
556 | 559 | ||
@@ -568,6 +571,7 @@ void KOViewManager::showWorkWeekView() | |||
568 | globalFlagBlockLabel = 0; | 571 | globalFlagBlockLabel = 0; |
569 | mMainView->dateNavigator()->selectWorkWeek(); | 572 | mMainView->dateNavigator()->selectWorkWeek(); |
570 | mCurrentAgendaView = 5 ; | 573 | mCurrentAgendaView = 5 ; |
574 | mMainView->setScrollBarStep( 1 ); | ||
571 | 575 | ||
572 | } | 576 | } |
573 | 577 | ||
@@ -586,6 +590,7 @@ void KOViewManager::showWeekView() | |||
586 | globalFlagBlockLabel = 0; | 590 | globalFlagBlockLabel = 0; |
587 | mMainView->dateNavigator()->selectWeek(); | 591 | mMainView->dateNavigator()->selectWeek(); |
588 | mCurrentAgendaView = 7 ; | 592 | mCurrentAgendaView = 7 ; |
593 | mMainView->setScrollBarStep( 1 ); | ||
589 | } | 594 | } |
590 | 595 | ||
591 | void KOViewManager::showNextXView() | 596 | void KOViewManager::showNextXView() |
@@ -602,6 +607,7 @@ void KOViewManager::showNextXView() | |||
602 | mFlagShowNextxDays = true; | 607 | mFlagShowNextxDays = true; |
603 | mCurrentAgendaView = 3 ; | 608 | mCurrentAgendaView = 3 ; |
604 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_NX_VIEW; | 609 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_NX_VIEW; |
610 | mMainView->setScrollBarStep( KOPrefs::instance()->mNextXDays ); | ||
605 | } | 611 | } |
606 | bool KOViewManager::showsNextDays() | 612 | bool KOViewManager::showsNextDays() |
607 | { | 613 | { |
@@ -695,6 +701,7 @@ void KOViewManager::showMonthViewWeek() | |||
695 | showView(mMonthView, full ); | 701 | showView(mMonthView, full ); |
696 | mMonthView->setKeyBFocus(); | 702 | mMonthView->setKeyBFocus(); |
697 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_ML_VIEW ; | 703 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_ML_VIEW ; |
704 | mMainView->setScrollBarStep( 7 ); | ||
698 | } | 705 | } |
699 | 706 | ||
700 | void KOViewManager::showMonth( const QDate & date ) | 707 | void KOViewManager::showMonth( const QDate & date ) |
@@ -727,6 +734,7 @@ void KOViewManager::showMonthView() | |||
727 | showView(mMonthView, full ); | 734 | showView(mMonthView, full ); |
728 | mMonthView->setKeyBFocus(); | 735 | mMonthView->setKeyBFocus(); |
729 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_M_VIEW ; | 736 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_M_VIEW ; |
737 | mMainView->setScrollBarStep( 7 ); | ||
730 | 738 | ||
731 | } | 739 | } |
732 | 740 | ||
@@ -784,6 +792,7 @@ void KOViewManager::showTodoView() | |||
784 | globalFlagBlockAgenda = 1; | 792 | globalFlagBlockAgenda = 1; |
785 | showView( mTodoView, true ); | 793 | showView( mTodoView, true ); |
786 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_T_VIEW ; | 794 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_T_VIEW ; |
795 | mMainView->setScrollBarStep( 7 ); | ||
787 | 796 | ||
788 | } | 797 | } |
789 | 798 | ||
@@ -803,6 +812,7 @@ void KOViewManager::showJournalView() | |||
803 | showView(mJournalView); | 812 | showView(mJournalView); |
804 | mMainView->dateNavigator()->selectDates( 1 ); | 813 | mMainView->dateNavigator()->selectDates( 1 ); |
805 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_J_VIEW ; | 814 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_J_VIEW ; |
815 | mMainView->setScrollBarStep( 1 ); | ||
806 | } | 816 | } |
807 | 817 | ||
808 | void KOViewManager::showTimeSpanView() | 818 | void KOViewManager::showTimeSpanView() |