summaryrefslogtreecommitdiffabout
path: root/korganizer/koagendaview.cpp
authorzautrix <zautrix>2005-02-02 12:48:28 (UTC)
committer zautrix <zautrix>2005-02-02 12:48:28 (UTC)
commit66c1429e6d29331dac4182d2c42aaf1630916c7d (patch) (side-by-side diff)
tree27280cf745c2828cfa22ec52049cfd8e96d28f4f /korganizer/koagendaview.cpp
parente770226d68f5fdb8484003bbb9898848cec901a8 (diff)
downloadkdepimpi-66c1429e6d29331dac4182d2c42aaf1630916c7d.zip
kdepimpi-66c1429e6d29331dac4182d2c42aaf1630916c7d.tar.gz
kdepimpi-66c1429e6d29331dac4182d2c42aaf1630916c7d.tar.bz2
fifi
Diffstat (limited to 'korganizer/koagendaview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/koagendaview.cpp18
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) :
widebut = (widebut*3) / 2;
//mExpandButton->setSizePolicy( QSizePolicy( QSizePolicy::Fixed,
// QSizePolicy::Fixed ) );
mExpandButton->setFixedSize( widebut, widebut);
connect( mExpandButton, SIGNAL( clicked() ), SIGNAL( toggleExpand() ) );
mExpandButton->setFocusPolicy(NoFocus);
mAllDayAgenda = new KOAgenda(1,mAllDayFrame);
mAllDayAgenda->setFocusPolicy(NoFocus);
- QWidget *dummyAllDayRight = new QWidget(mAllDayFrame);
+ QVBox *dummyAllDayRight = new QVBox(mAllDayFrame);
+
+ QPushButton *dummyAllDayRightB = new QPushButton(dummyAllDayRight);
+ QLabel * dummyAllDayRightL = new QLabel ( dummyAllDayRight );
+
+ dummyAllDayRightB->setFlat( true );
+ dummyAllDayRightB->setFocusPolicy(NoFocus);
+ // dummyAllDayRightB->setSizePolicy(QSizePolicy( QSizePolicy::Expanding ,QSizePolicy::Expanding ));
+ //dummyAllDayRightB->setFixedHeight( dummyAllDayRightB->sizeHint().height()/2 );
+ QPopupMenu * wpo = new QPopupMenu (this);
+ wpo->insertItem( i18n("W#"), 0 );
+ int i;
+ for ( i = 1; i < 54; i++ )
+ wpo->insertItem( QString::number( i ),i );
+ dummyAllDayRightB->setPopup( wpo );
+
+ connect( wpo, SIGNAL( activated(int) ), SIGNAL( selectWeekNum ( int ) ) );
// Create event context menu for all day agenda
mAllDayAgendaPopup = eventPopup();
connect(mAllDayAgenda,SIGNAL(showIncidencePopupSignal(Incidence *)),
mAllDayAgendaPopup,SLOT(showIncidencePopup(Incidence *)));
// Create agenda frame
QGridLayout *agendaLayout = new QGridLayout(agendaFrame,3,3);