-rw-r--r-- | korganizer/kdatenavigator.cpp | 16 | ||||
-rw-r--r-- | korganizer/koviewmanager.cpp | 5 |
2 files changed, 20 insertions, 1 deletions
diff --git a/korganizer/kdatenavigator.cpp b/korganizer/kdatenavigator.cpp index 83a57ca..1474e4b 100644 --- a/korganizer/kdatenavigator.cpp +++ b/korganizer/kdatenavigator.cpp @@ -85,2 +85,3 @@ KDateNavigator::KDateNavigator( QWidget *parent, const char *name ) headings[i]->setAlignment(AlignCenter); + headings[i]->installEventFilter(this); @@ -441,2 +442,17 @@ bool KDateNavigator::eventFilter (QObject *o,QEvent *e) } + for(i=0;i<7;++i) { + if (o == headings[i]) { + KCal::DateList selDays; + QDate date = daymatrix->getDate(14); + int dio = date.daysInMonth(); + int j; + int ye = date.year(); + int mo = date.month(); + for ( j = 1; j <= dio; ++j ) { + selDays.append( QDate( ye, mo, j ) ); + } + emit datesSelected( selDays ); + break; + } + } return true; diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp index a9f5a41..cc0ce9b 100644 --- a/korganizer/koviewmanager.cpp +++ b/korganizer/koviewmanager.cpp @@ -422,3 +422,4 @@ void KOViewManager::showAgendaView( bool fullScreen ) void KOViewManager::showDayView() -{ +{ + mCurrentAgendaView = mMainView->dateNavigator()->selectedDates().count(); mFlagShowNextxDays = false; @@ -439,2 +440,3 @@ void KOViewManager::showWorkWeekView() { + mCurrentAgendaView = mMainView->dateNavigator()->selectedDates().count(); mFlagShowNextxDays = false; @@ -464,2 +466,3 @@ void KOViewManager::showWeekView() + mCurrentAgendaView = mMainView->dateNavigator()->selectedDates().count(); mFlagShowNextxDays = false; |