summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-07-12 14:09:56 (UTC)
committer zautrix <zautrix>2004-07-12 14:09:56 (UTC)
commitdbcf0077bb3d024ac3d9b0ae1cbcd668ee6db9a1 (patch) (side-by-side diff)
treeca1cff2aaa6c8e28e2d1392b73e1efbb67813fd6
parent915a3b162dea2755ec1c8267a9c9f65709bce602 (diff)
downloadkdepimpi-dbcf0077bb3d024ac3d9b0ae1cbcd668ee6db9a1.zip
kdepimpi-dbcf0077bb3d024ac3d9b0ae1cbcd668ee6db9a1.tar.gz
kdepimpi-dbcf0077bb3d024ac3d9b0ae1cbcd668ee6db9a1.tar.bz2
Fix for desktop dialog size
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kapplication.cpp4
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();
}