Diffstat (limited to 'korganizer/kdatenavigator.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/kdatenavigator.cpp | 16 |
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 @@ -83,6 +83,7 @@ KDateNavigator::KDateNavigator( QWidget *parent, const char *name ) headings[i] = new QLabel("",this); //headings[i]->setFont(QFont("Arial", 10, QFont::Bold)); headings[i]->setAlignment(AlignCenter); + headings[i]->installEventFilter(this); topLayout->addWidget(headings[i],1,i+1); } @@ -439,6 +440,21 @@ bool KDateNavigator::eventFilter (QObject *o,QEvent *e) break; } } + 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 { return false; |