author | zautrix <zautrix> | 2005-02-01 22:10:26 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-01 22:10:26 (UTC) |
commit | 8f1bdf1bd37e77ba63a1959c70cc23f6e6e499eb (patch) (side-by-side diff) | |
tree | e7a15a0425040d60f81576da5f042f4e2e988a9f /korganizer/koviewmanager.cpp | |
parent | 0eca34f0a8a02787dccad1b37e0c2e01af734e56 (diff) | |
download | kdepimpi-8f1bdf1bd37e77ba63a1959c70cc23f6e6e499eb.zip kdepimpi-8f1bdf1bd37e77ba63a1959c70cc23f6e6e499eb.tar.gz kdepimpi-8f1bdf1bd37e77ba63a1959c70cc23f6e6e499eb.tar.bz2 |
fixi
Diffstat (limited to 'korganizer/koviewmanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koviewmanager.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp index 7e126d9..6afd203 100644 --- a/korganizer/koviewmanager.cpp +++ b/korganizer/koviewmanager.cpp @@ -226,5 +226,7 @@ void KOViewManager::raiseCurrentView( bool fullScreen, bool callUpdateView ) int hei = mMainView->height(); - if ( mCurrentView == mMonthView ) { - mMainView->navigatorBar()->show(); - hei -= mMainView->navigatorBar()->sizeHint().height(); + if ( mCurrentView == mMonthView ) { + if ( !KOPrefs::instance()->mMonthViewWeek ) { + mMainView->navigatorBar()->show(); + hei -= mMainView->navigatorBar()->sizeHint().height(); + } //mMainView->navigatorBar()->hide(); @@ -529,3 +531,4 @@ void KOViewManager::showMonthView() mMainView->navigatorBar(), SIGNAL(goPrevMonth() ) ); - mMonthView->updateConfig(); + connect( mMonthView, SIGNAL( showNavigator(bool) ), + mMainView, SLOT ( showNavigatorBar(bool) ) ); } @@ -535,3 +538,6 @@ void KOViewManager::showMonthView() // if(mMonthView == mCurrentView) return; - mMainView->dateNavigator()->selectMonth(); + if ( KOPrefs::instance()->mMonthViewWeek ) + mMainView->dateNavigator()->selectWeek(); + else + mMainView->dateNavigator()->selectMonth(); |