-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,11 +1,12 @@ #include <stdlib.h> #include "kapplication.h" +#include <qapplication.h> int KApplication::random() { return rand(); } //US QString KApplication::randomString(int length) @@ -21,11 +22,12 @@ QString KApplication::randomString(int length) if (r>90) r+=6; str += char(r); // 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(); } |