-rw-r--r-- | korganizer/koagendaview.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index f8301f8..918931a 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp | |||
@@ -427,17 +427,16 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) : | |||
427 | mAllDayAgenda->setFocusPolicy(NoFocus); | 427 | mAllDayAgenda->setFocusPolicy(NoFocus); |
428 | QVBox *dummyAllDayRight = new QVBox(mAllDayFrame); | 428 | QVBox *dummyAllDayRight = new QVBox(mAllDayFrame); |
429 | 429 | ||
430 | QPushButton *dummyAllDayRightB = new QPushButton(dummyAllDayRight); | 430 | QPushButton *dummyAllDayRightB = new QPushButton(dummyAllDayRight); |
431 | mDummyAllDayRightL = new QLabel ( dummyAllDayRight ); | 431 | mDummyAllDayRightL = new QLabel ( dummyAllDayRight ); |
432 | 432 | ||
433 | dummyAllDayRightB->setFlat( true ); | 433 | dummyAllDayRightB->setFlat( true ); |
434 | dummyAllDayRightB->setFocusPolicy(NoFocus); | 434 | dummyAllDayRightB->setFocusPolicy(NoFocus); |
435 | // dummyAllDayRightB->setSizePolicy(QSizePolicy( QSizePolicy::Expanding ,QSizePolicy::Expanding )); | ||
436 | dummyAllDayRightB->setFixedHeight( (dummyAllDayRightB->sizeHint().height()/4)*3 ); | 435 | dummyAllDayRightB->setFixedHeight( (dummyAllDayRightB->sizeHint().height()/4)*3 ); |
437 | QPopupMenu * wpo = new QPopupMenu (this); | 436 | QPopupMenu * wpo = new QPopupMenu (this); |
438 | wpo->insertItem( i18n("W#"), 0 ); | 437 | wpo->insertItem( i18n("W#"), 0 ); |
439 | int i; | 438 | int i; |
440 | for ( i = 1; i < 53; i++ ) | 439 | for ( i = 1; i < 53; i++ ) |
441 | wpo->insertItem( QString::number( i ),i ); | 440 | wpo->insertItem( QString::number( i ),i ); |
442 | //Qt bug - we must add some empty fields... | 441 | //Qt bug - we must add some empty fields... |
443 | for ( i = 53; i < 54; ++i ) { | 442 | for ( i = 53; i < 54; ++i ) { |
@@ -586,17 +585,17 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) : | |||
586 | int fontPoint = dlf.pointSize(); | 585 | int fontPoint = dlf.pointSize(); |
587 | while ( wid > maxWid ) { | 586 | while ( wid > maxWid ) { |
588 | --fontPoint; | 587 | --fontPoint; |
589 | dlf.setPointSize( fontPoint ); | 588 | dlf.setPointSize( fontPoint ); |
590 | QFontMetrics f( dlf ); | 589 | QFontMetrics f( dlf ); |
591 | wid = f.width( dayTest ); | 590 | wid = f.width( dayTest ); |
592 | } | 591 | } |
593 | mDummyAllDayRightL->setFont( dlf ); | 592 | mDummyAllDayRightL->setFont( dlf ); |
594 | 593 | mDummyAllDayRightL->setAlignment( AlignHCenter ); | |
595 | } | 594 | } |
596 | 595 | ||
597 | void KOAgendaView::toggleAllDay() | 596 | void KOAgendaView::toggleAllDay() |
598 | { | 597 | { |
599 | if ( mSplitterAgenda->firstHandle() ) | 598 | if ( mSplitterAgenda->firstHandle() ) |
600 | mSplitterAgenda->firstHandle()->toggle(); | 599 | mSplitterAgenda->firstHandle()->toggle(); |
601 | } | 600 | } |
602 | void KOAgendaView::addToCalSlot(Incidence * inc, Incidence * incOld ) | 601 | void KOAgendaView::addToCalSlot(Incidence * inc, Incidence * incOld ) |