-rw-r--r-- | microkde/kglobal.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/microkde/kglobal.cpp b/microkde/kglobal.cpp index 53edd08..9cc5835 100644 --- a/microkde/kglobal.cpp +++ b/microkde/kglobal.cpp | |||
@@ -1,24 +1,25 @@ | |||
1 | #include "kglobal.h" | 1 | #include "kglobal.h" |
2 | #include "kstandarddirs.h" | 2 | #include "kstandarddirs.h" |
3 | #include <qkeycode.h> | 3 | #include <qnamespace.h> |
4 | #include <qapplication.h> | 4 | #include <qapplication.h> |
5 | #include <QDesktopWidget> | ||
5 | 6 | ||
6 | KLocale *KGlobal::mLocale = 0; | 7 | KLocale *KGlobal::mLocale = 0; |
7 | KConfig *KGlobal::mConfig = 0; | 8 | KConfig *KGlobal::mConfig = 0; |
8 | KIconLoader *KGlobal::mIconLoader = 0; | 9 | KIconLoader *KGlobal::mIconLoader = 0; |
9 | KStandardDirs *KGlobal::mDirs = 0; | 10 | KStandardDirs *KGlobal::mDirs = 0; |
10 | 11 | ||
11 | QString KGlobal::mAppName = "godot"; | 12 | QString KGlobal::mAppName = "godot"; |
12 | 13 | ||
13 | KLocale *KGlobal::locale() | 14 | KLocale *KGlobal::locale() |
14 | { | 15 | { |
15 | if ( !mLocale ) { | 16 | if ( !mLocale ) { |
16 | ASSERT(mAppName); | 17 | Q_ASSERT(!mAppName.isEmpty()); |
17 | 18 | ||
18 | mLocale = new KLocale();//mAppName); | 19 | mLocale = new KLocale();//mAppName); |
19 | } | 20 | } |
20 | 21 | ||
21 | return mLocale; | 22 | return mLocale; |
22 | } | 23 | } |
23 | 24 | ||
24 | //US | 25 | //US |