summaryrefslogtreecommitdiffabout
path: root/microkde/kglobal.cpp
Side-by-side diff
Diffstat (limited to 'microkde/kglobal.cpp') (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()
ASSERT(mAppName);
-
+
mLocale = new KLocale();//mAppName);
}
-
+
return mLocale;
@@ -34,3 +34,3 @@ KConfig *KGlobal::config()
}
-
+
KGlobal::Size KGlobal::getDesktopSize()
@@ -40,4 +40,6 @@ KGlobal::Size KGlobal::getDesktopSize()
#else
- if ( QApplication::desktop()->width() < 480 )
+ if ( QApplication::desktop()->width() <= 320 )
return KGlobal::Small;
+ else if ( QApplication::desktop()->width() > 480)
+ return KGlobal::Desktop;
else
@@ -71,3 +73,3 @@ KIconLoader *KGlobal::iconLoader()
}
-
+
return mIconLoader;
@@ -80,3 +82,3 @@ KStandardDirs *KGlobal::dirs()
}
-
+
return mDirs;
@@ -87,3 +89,3 @@ void KGlobal::setAppName( const QString &appName )
mAppName = appName;
-
+
mConfig = new KConfig( locateLocal("config", mAppName + "rc" ) );
@@ -97,3 +99,3 @@ QString KGlobal::getAppName()
QString KGlobal::formatMessage ( QString mess, int maxlen )
-{
+{
//int maxlen = 80;