author | zautrix <zautrix> | 2005-02-02 12:48:28 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-02 12:48:28 (UTC) |
commit | 66c1429e6d29331dac4182d2c42aaf1630916c7d (patch) (unidiff) | |
tree | 27280cf745c2828cfa22ec52049cfd8e96d28f4f /korganizer/koagendaview.cpp | |
parent | e770226d68f5fdb8484003bbb9898848cec901a8 (diff) | |
download | kdepimpi-66c1429e6d29331dac4182d2c42aaf1630916c7d.zip kdepimpi-66c1429e6d29331dac4182d2c42aaf1630916c7d.tar.gz kdepimpi-66c1429e6d29331dac4182d2c42aaf1630916c7d.tar.bz2 |
fifi
-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 | |||
@@ -420,17 +420,33 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) : | |||
420 | widebut = (widebut*3) / 2; | 420 | widebut = (widebut*3) / 2; |
421 | //mExpandButton->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, | 421 | //mExpandButton->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, |
422 | // QSizePolicy::Fixed ) ); | 422 | // QSizePolicy::Fixed ) ); |
423 | mExpandButton->setFixedSize( widebut, widebut); | 423 | mExpandButton->setFixedSize( widebut, widebut); |
424 | connect( mExpandButton, SIGNAL( clicked() ), SIGNAL( toggleExpand() ) ); | 424 | connect( mExpandButton, SIGNAL( clicked() ), SIGNAL( toggleExpand() ) ); |
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(); |
432 | connect(mAllDayAgenda,SIGNAL(showIncidencePopupSignal(Incidence *)), | 448 | connect(mAllDayAgenda,SIGNAL(showIncidencePopupSignal(Incidence *)), |
433 | mAllDayAgendaPopup,SLOT(showIncidencePopup(Incidence *))); | 449 | mAllDayAgendaPopup,SLOT(showIncidencePopup(Incidence *))); |
434 | 450 | ||
435 | // Create agenda frame | 451 | // Create agenda frame |
436 | QGridLayout *agendaLayout = new QGridLayout(agendaFrame,3,3); | 452 | QGridLayout *agendaLayout = new QGridLayout(agendaFrame,3,3); |