author | zautrix <zautrix> | 2004-07-12 14:09:56 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-12 14:09:56 (UTC) |
commit | dbcf0077bb3d024ac3d9b0ae1cbcd668ee6db9a1 (patch) (side-by-side diff) | |
tree | ca1cff2aaa6c8e28e2d1392b73e1efbb67813fd6 | |
parent | 915a3b162dea2755ec1c8267a9c9f65709bce602 (diff) | |
download | kdepimpi-dbcf0077bb3d024ac3d9b0ae1cbcd668ee6db9a1.zip kdepimpi-dbcf0077bb3d024ac3d9b0ae1cbcd668ee6db9a1.tar.gz kdepimpi-dbcf0077bb3d024ac3d9b0ae1cbcd668ee6db9a1.tar.bz2 |
Fix for desktop dialog size
-rw-r--r-- | microkde/kapplication.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/microkde/kapplication.cpp b/microkde/kapplication.cpp index 77ceac5..1b3e689 100644 --- a/microkde/kapplication.cpp +++ b/microkde/kapplication.cpp @@ -1,9 +1,10 @@ #include <stdlib.h> #include "kapplication.h" +#include <qapplication.h> int KApplication::random() { return rand(); } @@ -23,9 +24,10 @@ QString KApplication::randomString(int length) // so what if I work backwards? } return str; } int KApplication::execDialog( QDialog* d ) { - d->showMaximized(); + if (QApplication::desktop()->width() <= 640 ) + d->showMaximized(); return d->exec(); } |