author | ulf69 <ulf69> | 2004-08-11 01:56:15 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-11 01:56:15 (UTC) |
commit | 42860986468bb90c55783fcebc1b20bd3ee460ac (patch) (unidiff) | |
tree | 35b2c491ae4fb98b018f72af29ee12ae67b5e053 | |
parent | 1f7c51ec14521aedd2e8838f1760cdd5eb3ed08a (diff) | |
download | kdepimpi-42860986468bb90c55783fcebc1b20bd3ee460ac.zip kdepimpi-42860986468bb90c55783fcebc1b20bd3ee460ac.tar.gz kdepimpi-42860986468bb90c55783fcebc1b20bd3ee460ac.tar.bz2 |
changed the Desktopsize to meaningfull values
-rw-r--r-- | microkde/kglobal.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/microkde/kglobal.cpp b/microkde/kglobal.cpp index 2b1bd34..bf7e238 100644 --- a/microkde/kglobal.cpp +++ b/microkde/kglobal.cpp | |||
@@ -38,8 +38,10 @@ KGlobal::Size KGlobal::getDesktopSize() | |||
38 | #ifdef DESKTOP_VERSION | 38 | #ifdef DESKTOP_VERSION |
39 | return KGlobal::Desktop; | 39 | return KGlobal::Desktop; |
40 | #else | 40 | #else |
41 | if ( QApplication::desktop()->width() < 480 ) | 41 | if ( QApplication::desktop()->width() <= 320 ) |
42 | return KGlobal::Small; | 42 | return KGlobal::Small; |
43 | else if ( QApplication::desktop()->width() > 480) | ||
44 | return KGlobal::Desktop; | ||
43 | else | 45 | else |
44 | return KGlobal::Medium; | 46 | return KGlobal::Medium; |
45 | #endif | 47 | #endif |