From 875884b2517f9b82153a14852c0f1676f985494f Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 09 Jul 2005 14:48:54 +0000 Subject: layout fixes --- diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index b5a59af..498d9b0 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -1846,7 +1846,7 @@ void KOMonthView::doComputeLayoutWeek() } else #endif { - if ( wid < hei ) + if ( wid < hei + 40 ) daysToShow = 2; else daysToShow = 3; diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index c2ad886..add1819 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -516,7 +516,7 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : quickLayout->addWidget( mQuickAdd ); QPushButton * flat = new QPushButton( "F",mQuickBar ); int fixwid = flat->sizeHint().height(); - if ( QApplication::desktop()->width() > 320 ) + if ( QApplication::desktop()->width() >= 800 ) fixwid *= 2; flat->setFixedWidth( fixwid ); connect ( flat, SIGNAL ( clicked()), SLOT ( setAllFlat())); -- cgit v0.9.0.2