summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-03-22 21:37:48 (UTC)
committer zautrix <zautrix>2005-03-22 21:37:48 (UTC)
commit53ac6d1f931c50d89a44d9d46daceb7ed9d4ddc6 (patch) (side-by-side diff)
treea6a9f1e42252edec30b334d2ae6df245d69912b2
parentcce0a3b5e884db3d2d7d84a347e14f8694b556e2 (diff)
downloadkdepimpi-53ac6d1f931c50d89a44d9d46daceb7ed9d4ddc6.zip
kdepimpi-53ac6d1f931c50d89a44d9d46daceb7ed9d4ddc6.tar.gz
kdepimpi-53ac6d1f931c50d89a44d9d46daceb7ed9d4ddc6.tar.bz2
fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kdatenavigator.cpp16
-rw-r--r--korganizer/koviewmanager.cpp3
2 files changed, 19 insertions, 0 deletions
diff --git a/korganizer/kdatenavigator.cpp b/korganizer/kdatenavigator.cpp
index 83a57ca..1474e4b 100644
--- a/korganizer/kdatenavigator.cpp
+++ b/korganizer/kdatenavigator.cpp
@@ -84,4 +84,5 @@ KDateNavigator::KDateNavigator( QWidget *parent, const char *name )
//headings[i]->setFont(QFont("Arial", 10, QFont::Bold));
headings[i]->setAlignment(AlignCenter);
+ headings[i]->installEventFilter(this);
topLayout->addWidget(headings[i],1,i+1);
@@ -440,4 +441,19 @@ 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;
} else {
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp
index a9f5a41..cc0ce9b 100644
--- a/korganizer/koviewmanager.cpp
+++ b/korganizer/koviewmanager.cpp
@@ -422,4 +422,5 @@ void KOViewManager::showAgendaView( bool fullScreen )
void KOViewManager::showDayView()
{
+ mCurrentAgendaView = mMainView->dateNavigator()->selectedDates().count();
mFlagShowNextxDays = false;
globalFlagBlockLabel = 1;
@@ -438,4 +439,5 @@ void KOViewManager::showDayView()
void KOViewManager::showWorkWeekView()
{
+ mCurrentAgendaView = mMainView->dateNavigator()->selectedDates().count();
mFlagShowNextxDays = false;
globalFlagBlockAgenda = 1;
@@ -463,4 +465,5 @@ void KOViewManager::showWeekView()
+ mCurrentAgendaView = mMainView->dateNavigator()->selectedDates().count();
mFlagShowNextxDays = false;
globalFlagBlockAgenda = 1;