-rw-r--r-- | korganizer/koagendaview.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index d4ff77a..aed9bae 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp | |||
@@ -425,7 +425,23 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) : | |||
425 | mExpandButton->setFocusPolicy(NoFocus); | 425 | mExpandButton->setFocusPolicy(NoFocus); |
426 | mAllDayAgenda = new KOAgenda(1,mAllDayFrame); | 426 | mAllDayAgenda = new KOAgenda(1,mAllDayFrame); |
427 | mAllDayAgenda->setFocusPolicy(NoFocus); | 427 | mAllDayAgenda->setFocusPolicy(NoFocus); |
428 | QWidget *dummyAllDayRight = new QWidget(mAllDayFrame); | 428 | QVBox *dummyAllDayRight = new QVBox(mAllDayFrame); |
429 | |||
430 | QPushButton *dummyAllDayRightB = new QPushButton(dummyAllDayRight); | ||
431 | QLabel * dummyAllDayRightL = new QLabel ( dummyAllDayRight ); | ||
432 | |||
433 | dummyAllDayRightB->setFlat( true ); | ||
434 | dummyAllDayRightB->setFocusPolicy(NoFocus); | ||
435 | // dummyAllDayRightB->setSizePolicy(QSizePolicy( QSizePolicy::Expanding ,QSizePolicy::Expanding )); | ||
436 | //dummyAllDayRightB->setFixedHeight( dummyAllDayRightB->sizeHint().height()/2 ); | ||
437 | QPopupMenu * wpo = new QPopupMenu (this); | ||
438 | wpo->insertItem( i18n("W#"), 0 ); | ||
439 | int i; | ||
440 | for ( i = 1; i < 54; i++ ) | ||
441 | wpo->insertItem( QString::number( i ),i ); | ||
442 | dummyAllDayRightB->setPopup( wpo ); | ||
443 | |||
444 | connect( wpo, SIGNAL( activated(int) ), SIGNAL( selectWeekNum ( int ) ) ); | ||
429 | 445 | ||
430 | // Create event context menu for all day agenda | 446 | // Create event context menu for all day agenda |
431 | mAllDayAgendaPopup = eventPopup(); | 447 | mAllDayAgendaPopup = eventPopup(); |