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 @@ -223,11 +223,13 @@ void KOViewManager::raiseCurrentView( bool fullScreen, bool callUpdateView ) { mCurrentAgendaView = 0; int wid = mMainView->width() ; 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(); } else { mMainView->navigatorBar()->hide(); } @@ -526,15 +528,19 @@ void KOViewManager::showMonthView() connect( mMonthView, SIGNAL(nextMonth() ), mMainView->navigatorBar(), SIGNAL(goNextMonth() ) ); connect( mMonthView, SIGNAL(prevMonth() ), mMainView->navigatorBar(), SIGNAL(goPrevMonth() ) ); - mMonthView->updateConfig(); + connect( mMonthView, SIGNAL( showNavigator(bool) ), + mMainView, SLOT ( showNavigatorBar(bool) ) ); } globalFlagBlockAgenda = 1; //mFlagShowNextxDays = false; // if(mMonthView == mCurrentView) return; - mMainView->dateNavigator()->selectMonth(); + if ( KOPrefs::instance()->mMonthViewWeek ) + mMainView->dateNavigator()->selectWeek(); + else + mMainView->dateNavigator()->selectMonth(); showView(mMonthView, true ); } |