summaryrefslogtreecommitdiffabout
path: root/microkde
Unidiff
Diffstat (limited to 'microkde') (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
@@ -16,6 +16,6 @@ KLocale *KGlobal::locale()
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;
@@ -34,3 +34,3 @@ KConfig *KGlobal::config()
34} 34}
35 35
36KGlobal::Size KGlobal::getDesktopSize() 36KGlobal::Size KGlobal::getDesktopSize()
@@ -40,4 +40,6 @@ KGlobal::Size KGlobal::getDesktopSize()
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
@@ -71,3 +73,3 @@ KIconLoader *KGlobal::iconLoader()
71 } 73 }
72 74
73 return mIconLoader; 75 return mIconLoader;
@@ -80,3 +82,3 @@ KStandardDirs *KGlobal::dirs()
80 } 82 }
81 83
82 return mDirs; 84 return mDirs;
@@ -87,3 +89,3 @@ void KGlobal::setAppName( const QString &appName )
87 mAppName = appName; 89 mAppName = appName;
88 90
89 mConfig = new KConfig( locateLocal("config", mAppName + "rc" ) ); 91 mConfig = new KConfig( locateLocal("config", mAppName + "rc" ) );
@@ -97,3 +99,3 @@ QString KGlobal::getAppName()
97QString KGlobal::formatMessage ( QString mess, int maxlen ) 99QString KGlobal::formatMessage ( QString mess, int maxlen )
98{ 100{
99 //int maxlen = 80; 101 //int maxlen = 80;