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,31 +1,33 @@
#include <stdlib.h>
#include "kapplication.h"
+#include <qapplication.h>
int KApplication::random()
{
return rand();
}
//US
QString KApplication::randomString(int length)
{
if (length <=0 ) return QString::null;
QString str;
while (length--)
{
int r=random() % 62;
r+=48;
if (r>57) r+=7;
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();
}