summaryrefslogtreecommitdiffabout
path: root/korganizer/kdatenavigator.cpp
authorzautrix <zautrix>2005-03-22 21:37:48 (UTC)
committer zautrix <zautrix>2005-03-22 21:37:48 (UTC)
commit53ac6d1f931c50d89a44d9d46daceb7ed9d4ddc6 (patch) (unidiff)
treea6a9f1e42252edec30b334d2ae6df245d69912b2 /korganizer/kdatenavigator.cpp
parentcce0a3b5e884db3d2d7d84a347e14f8694b556e2 (diff)
downloadkdepimpi-53ac6d1f931c50d89a44d9d46daceb7ed9d4ddc6.zip
kdepimpi-53ac6d1f931c50d89a44d9d46daceb7ed9d4ddc6.tar.gz
kdepimpi-53ac6d1f931c50d89a44d9d46daceb7ed9d4ddc6.tar.bz2
fix
Diffstat (limited to 'korganizer/kdatenavigator.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kdatenavigator.cpp16
1 files changed, 16 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
@@ -85,2 +85,3 @@ KDateNavigator::KDateNavigator( QWidget *parent, const char *name )
85 headings[i]->setAlignment(AlignCenter); 85 headings[i]->setAlignment(AlignCenter);
86 headings[i]->installEventFilter(this);
86 87
@@ -441,2 +442,17 @@ bool KDateNavigator::eventFilter (QObject *o,QEvent *e)
441 } 442 }
443 for(i=0;i<7;++i) {
444 if (o == headings[i]) {
445 KCal::DateList selDays;
446 QDate date = daymatrix->getDate(14);
447 int dio = date.daysInMonth();
448 int j;
449 int ye = date.year();
450 int mo = date.month();
451 for ( j = 1; j <= dio; ++j ) {
452 selDays.append( QDate( ye, mo, j ) );
453 }
454 emit datesSelected( selDays );
455 break;
456 }
457 }
442 return true; 458 return true;