summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kglobal.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/microkde/kglobal.cpp b/microkde/kglobal.cpp
index 2b1bd34..bf7e238 100644
--- a/microkde/kglobal.cpp
+++ b/microkde/kglobal.cpp
@@ -15,8 +15,8 @@ KLocale *KGlobal::locale()
15 if ( !mLocale ) { 15 if ( !mLocale ) {
16 ASSERT(mAppName); 16 ASSERT(mAppName);
17 17
18 mLocale = new KLocale();//mAppName); 18 mLocale = new KLocale();//mAppName);
19 } 19 }
20 20
21 return mLocale; 21 return mLocale;
22} 22}
@@ -33,5 +33,5 @@ KConfig *KGlobal::config()
33 return mConfig; 33 return mConfig;
34} 34}
35 35
36KGlobal::Size KGlobal::getDesktopSize() 36KGlobal::Size KGlobal::getDesktopSize()
37{ 37{
@@ -39,6 +39,8 @@ KGlobal::Size KGlobal::getDesktopSize()
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;
@@ -70,5 +72,5 @@ KIconLoader *KGlobal::iconLoader()
70 mIconLoader = new KIconLoader(); 72 mIconLoader = new KIconLoader();
71 } 73 }
72 74
73 return mIconLoader; 75 return mIconLoader;
74} 76}
@@ -79,5 +81,5 @@ KStandardDirs *KGlobal::dirs()
79 mDirs = new KStandardDirs(); 81 mDirs = new KStandardDirs();
80 } 82 }
81 83
82 return mDirs; 84 return mDirs;
83} 85}
@@ -86,5 +88,5 @@ void KGlobal::setAppName( const QString &appName )
86{ 88{
87 mAppName = appName; 89 mAppName = appName;
88 90
89 mConfig = new KConfig( locateLocal("config", mAppName + "rc" ) ); 91 mConfig = new KConfig( locateLocal("config", mAppName + "rc" ) );
90} 92}
@@ -96,5 +98,5 @@ QString KGlobal::getAppName()
96} 98}
97QString KGlobal::formatMessage ( QString mess, int maxlen ) 99QString KGlobal::formatMessage ( QString mess, int maxlen )
98{ 100{
99 //int maxlen = 80; 101 //int maxlen = 80;
100 int start = 0; 102 int start = 0;