From ba3d660ed4f856362d2b914ed744874c235b4001 Mon Sep 17 00:00:00 2001 From: zautrix Date: Wed, 27 Oct 2004 00:49:03 +0000 Subject: fixed some whantsnext view kayout --- (limited to 'libkdepim') diff --git a/libkdepim/categoryeditdialog.cpp b/libkdepim/categoryeditdialog.cpp index f719c31..a19900f 100644 --- a/libkdepim/categoryeditdialog.cpp +++ b/libkdepim/categoryeditdialog.cpp @@ -58,6 +58,8 @@ CategoryEditDialog::CategoryEditDialog( KPimPrefs *prefs, QWidget* parent, mButtonAdd->setEnabled(!mEdit->text().isEmpty()); if ( QApplication::desktop()->width() > 460 ) resize( 300, 360 ); + else + showMaximized(); } /* diff --git a/libkdepim/categoryselectdialog.cpp b/libkdepim/categoryselectdialog.cpp index 40b46cf..7df9154 100644 --- a/libkdepim/categoryselectdialog.cpp +++ b/libkdepim/categoryselectdialog.cpp @@ -46,12 +46,10 @@ CategorySelectDialog::CategorySelectDialog( KPimPrefs *prefs, QWidget* parent, setCategories(); connect(mButtonEdit,SIGNAL(clicked()),this, SLOT(editCategoriesDialog())); - if ( qApp->desktop()->height() < 321 ) - setMaximumHeight( QApplication::desktop()->height() - 50 ); - else - setMaximumHeight( QApplication::desktop()->height() - 80 ); if ( QApplication::desktop()->width() > 460 ) - resize( 260, 360 ); + resize( 300, 360 ); + else + showMaximized(); } void CategorySelectDialog::editCategoriesDialog() { -- cgit v0.9.0.2