summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-07-09 14:48:54 (UTC)
committer zautrix <zautrix>2005-07-09 14:48:54 (UTC)
commit875884b2517f9b82153a14852c0f1676f985494f (patch) (side-by-side diff)
tree89e1c773a2fdae7a4f2e2fb9ba9d4c59e921d60f
parentfa7a30172aa502aaa9e81868e5960efba76cbb0d (diff)
downloadkdepimpi-875884b2517f9b82153a14852c0f1676f985494f.zip
kdepimpi-875884b2517f9b82153a14852c0f1676f985494f.tar.gz
kdepimpi-875884b2517f9b82153a14852c0f1676f985494f.tar.bz2
layout fixes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/komonthview.cpp2
-rw-r--r--korganizer/kotodoview.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index b5a59af..498d9b0 100644
--- a/korganizer/komonthview.cpp
+++ b/korganizer/komonthview.cpp
@@ -1843,13 +1843,13 @@ void KOMonthView::doComputeLayoutWeek()
#ifdef DESKTOP_VERSION
if ( !KOPrefs::instance()->mMonthViewWeekRowlayout ) {
daysToShow = 2;
} else
#endif
{
- if ( wid < hei )
+ if ( wid < hei + 40 )
daysToShow = 2;
else
daysToShow = 3;
}
bool landscape = (daysToShow == 3);
mShowSatSunComp = true;
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index c2ad886..add1819 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -513,13 +513,13 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
mQuickAdd = new KOQuickTodo(mQuickBar);
QBoxLayout *quickLayout = new QHBoxLayout(mQuickBar);
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()));
QPushButton * allopen = new QPushButton( "O",mQuickBar );
allopen->setFixedWidth( fixwid );
connect ( allopen, SIGNAL ( clicked()), SLOT ( setAllOpen()));