author | zautrix <zautrix> | 2004-10-27 00:49:03 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-27 00:49:03 (UTC) |
commit | ba3d660ed4f856362d2b914ed744874c235b4001 (patch) (side-by-side diff) | |
tree | d70423c6bf3a6342a6ae2277dda70f15736086a9 /korganizer/koagendaview.cpp | |
parent | 00d623c9391a9bdaeb142f443f1dd09861317608 (diff) | |
download | kdepimpi-ba3d660ed4f856362d2b914ed744874c235b4001.zip kdepimpi-ba3d660ed4f856362d2b914ed744874c235b4001.tar.gz kdepimpi-ba3d660ed4f856362d2b914ed744874c235b4001.tar.bz2 |
fixed some whantsnext view kayout
-rw-r--r-- | korganizer/koagendaview.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 3aae076..749204b 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -365,26 +365,32 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) : mAllDayFrame = new QHBox(mSplitterAgenda); mAllDayFrame->setFocusPolicy(NoFocus); QWidget *agendaFrame = new QWidget(mSplitterAgenda); agendaFrame->setFocusPolicy(NoFocus); #endif // Create all-day agenda widget mDummyAllDayLeft = new QVBox( mAllDayFrame ); mExpandButton = new QPushButton(mDummyAllDayLeft); mExpandButton->setPixmap( mNotExpandedPixmap ); - mExpandButton->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, - QSizePolicy::Fixed ) ); + int widebut = mExpandButton->sizeHint().width(); + if ( QApplication::desktop()->width() < 480 ) + widebut = widebut*2; + else + 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); // Create event context menu for all day agenda mAllDayAgendaPopup = eventPopup(); connect(mAllDayAgenda,SIGNAL(showIncidencePopupSignal(Incidence *)), mAllDayAgendaPopup,SLOT(showIncidencePopup(Incidence *))); // Create agenda frame |