summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-07-10 21:34:03 (UTC)
committer zautrix <zautrix>2005-07-10 21:34:03 (UTC)
commitf2f9b87daddccc3d4050c99f1b43eefc95dd830f (patch) (side-by-side diff)
treeb0df96070f34025a79d4a4e5e137121e94aa8a21
parentbf95dce0b9143e3c9b9aeb3cdfda24cb5325dd33 (diff)
downloadkdepimpi-f2f9b87daddccc3d4050c99f1b43eefc95dd830f.zip
kdepimpi-f2f9b87daddccc3d4050c99f1b43eefc95dd830f.tar.gz
kdepimpi-f2f9b87daddccc3d4050c99f1b43eefc95dd830f.tar.bz2
fixx
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kotodoview.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index 3ae977d..f46a103 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -524,13 +524,13 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
QPushButton * flat = new QPushButton( "F",mQuickBar );
int fixwid = mQuickAdd->sizeHint().height();
+ int fixhei = fixwid;
if ( QApplication::desktop()->width() > 800 )
- fixwid *= 2;
+ fixwid = (fixwid*3)/2;
connect ( flat, SIGNAL ( clicked()), SLOT ( setAllFlat()));
connect ( allopen, SIGNAL ( clicked()), SLOT ( setAllOpen()));
connect ( allclose, SIGNAL ( clicked()), SLOT ( setAllClose()));
s_done->setPixmap( SmallIcon("greenhook16"));
- s_done->setFixedHeight( flat->sizeHint().height() );
connect ( s_done, SIGNAL ( clicked()), SLOT ( toggleCompleted()));
s_run->setPixmap( SmallIcon("ko16old"));
connect ( s_run, SIGNAL ( clicked()), SLOT ( toggleRunning()));
@@ -544,14 +544,14 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
allopen->setFixedWidth( fixwid );
allclose->setFixedWidth( fixwid );
s_run->setFixedWidth( fixwid );
- if ( QApplication::desktop()->width() < 800 ) {
- flat->setFixedHeight( fixwid );
- s_done->setFixedHeight( fixwid );
- allopen->setFixedHeight( fixwid );
- allclose->setFixedHeight( fixwid );
- s_run->setFixedHeight( fixwid );
- mNewSubBut->setFixedHeight( fixwid );
- }
+
+ flat->setFixedHeight(fixhei );
+ s_done->setFixedHeight(fixhei );
+ allopen->setFixedHeight(fixhei );
+ allclose->setFixedHeight(fixhei );
+ s_run->setFixedHeight(fixhei );
+ mNewSubBut->setFixedHeight(fixhei );
+
quickLayout->addWidget( mNewSubBut );
quickLayout->addWidget( s_done );
quickLayout->addWidget( s_run );