Merge branch 'frameworks' of git://anongit.kde.org/kdelibs into frameworks

This commit is contained in:
David Faure 2012-07-20 15:14:37 +02:00
commit 18d587a33d
9 changed files with 18 additions and 22 deletions

View File

@ -87,11 +87,11 @@ class DataEngineManagerSingleton
DataEngineManager self; DataEngineManager self;
}; };
K_GLOBAL_STATIC(DataEngineManagerSingleton, privateDataEngineManagerSelf) Q_GLOBAL_STATIC(DataEngineManagerSingleton, privateDataEngineManagerSelf)
DataEngineManager *DataEngineManager::self() DataEngineManager *DataEngineManager::self()
{ {
return &privateDataEngineManagerSelf->self; return &privateDataEngineManagerSelf()->self;
} }
DataEngineManager::DataEngineManager() DataEngineManager::DataEngineManager()

View File

@ -67,7 +67,7 @@ class AssociatedApplicationManagerSingleton
AssociatedApplicationManager self; AssociatedApplicationManager self;
}; };
K_GLOBAL_STATIC(AssociatedApplicationManagerSingleton, privateAssociatedApplicationManagerSelf) Q_GLOBAL_STATIC(AssociatedApplicationManagerSingleton, privateAssociatedApplicationManagerSelf)
AssociatedApplicationManager::AssociatedApplicationManager(QObject *parent) AssociatedApplicationManager::AssociatedApplicationManager(QObject *parent)
@ -83,7 +83,7 @@ AssociatedApplicationManager::~AssociatedApplicationManager()
AssociatedApplicationManager *AssociatedApplicationManager::self() AssociatedApplicationManager *AssociatedApplicationManager::self()
{ {
return &privateAssociatedApplicationManagerSelf->self; return &privateAssociatedApplicationManagerSelf()->self;
} }
void AssociatedApplicationManager::setApplication(Plasma::Applet *applet, const QString &application) void AssociatedApplicationManager::setApplication(Plasma::Applet *applet, const QString &application)

View File

@ -19,8 +19,6 @@
#include "private/componentinstaller_p.h" #include "private/componentinstaller_p.h"
#include <kglobal.h>
#ifdef PLASMA_ENABLE_PACKAGEKIT_SUPPORT #ifdef PLASMA_ENABLE_PACKAGEKIT_SUPPORT
#include <QSet> #include <QSet>
#include <QDBusInterface> #include <QDBusInterface>
@ -47,11 +45,11 @@ class ComponentInstallerSingleton
ComponentInstaller self; ComponentInstaller self;
}; };
K_GLOBAL_STATIC(ComponentInstallerSingleton, privateComponentInstallerSelf) Q_GLOBAL_STATIC(ComponentInstallerSingleton, privateComponentInstallerSelf)
ComponentInstaller *ComponentInstaller::self() ComponentInstaller *ComponentInstaller::self()
{ {
return &privateComponentInstallerSelf->self; return &privateComponentInstallerSelf()->self;
} }
ComponentInstaller::ComponentInstaller() ComponentInstaller::ComponentInstaller()

View File

@ -43,7 +43,7 @@ public:
StorageThread self; StorageThread self;
}; };
K_GLOBAL_STATIC(StorageThreadSingleton, privateStorageThreadSelf) Q_GLOBAL_STATIC(StorageThreadSingleton, privateStorageThreadSelf)
StorageThread::StorageThread(QObject *parent) StorageThread::StorageThread(QObject *parent)
@ -61,7 +61,7 @@ StorageThread::~StorageThread()
Plasma::StorageThread *StorageThread::self() Plasma::StorageThread *StorageThread::self()
{ {
return &privateStorageThreadSelf->self; return &privateStorageThreadSelf()->self;
} }
void StorageThread::initializeDb(StorageJob *caller) void StorageThread::initializeDb(StorageJob *caller)

View File

@ -28,8 +28,6 @@
#include <fixx11h.h> #include <fixx11h.h>
#endif #endif
#include <kglobal.h>
namespace Plasma namespace Plasma
{ {
@ -67,11 +65,11 @@ class WindowShadowsSingleton
WindowShadows self; WindowShadows self;
}; };
K_GLOBAL_STATIC(WindowShadowsSingleton, privateWindowShadowsSelf) Q_GLOBAL_STATIC(WindowShadowsSingleton, privateWindowShadowsSelf)
WindowShadows *WindowShadows::self() WindowShadows *WindowShadows::self()
{ {
return &privateWindowShadowsSelf->self; return &privateWindowShadowsSelf()->self;
} }
WindowShadows::WindowShadows(QObject *parent) WindowShadows::WindowShadows(QObject *parent)

View File

@ -117,11 +117,11 @@ class AccessManagerSingleton
AccessManager self; AccessManager self;
}; };
K_GLOBAL_STATIC(AccessManagerSingleton, privateAccessManagerSelf) Q_GLOBAL_STATIC(AccessManagerSingleton, privateAccessManagerSelf)
AccessManager *AccessManager::self() AccessManager *AccessManager::self()
{ {
return &privateAccessManagerSelf->self; return &privateAccessManagerSelf()->self;
} }
AccessManager::AccessManager() AccessManager::AccessManager()

View File

@ -60,11 +60,11 @@ class AuthorizationManagerSingleton
AuthorizationManager self; AuthorizationManager self;
}; };
K_GLOBAL_STATIC(AuthorizationManagerSingleton, privateAuthorizationManagerSelf) Q_GLOBAL_STATIC(AuthorizationManagerSingleton, privateAuthorizationManagerSelf)
AuthorizationManager *AuthorizationManager::self() AuthorizationManager *AuthorizationManager::self()
{ {
return &privateAuthorizationManagerSelf->self; return &privateAuthorizationManagerSelf()->self;
} }
AuthorizationManager::AuthorizationManager() AuthorizationManager::AuthorizationManager()

View File

@ -460,11 +460,11 @@ public:
Theme self; Theme self;
}; };
K_GLOBAL_STATIC(ThemeSingleton, privateThemeSelf) Q_GLOBAL_STATIC(ThemeSingleton, privateThemeSelf)
Theme *Theme::defaultTheme() Theme *Theme::defaultTheme()
{ {
return &privateThemeSelf->self; return &privateThemeSelf()->self;
} }
Theme::Theme(QObject *parent) Theme::Theme(QObject *parent)

View File

@ -110,11 +110,11 @@ class ToolTipManagerSingleton
} }
ToolTipManager self; ToolTipManager self;
}; };
K_GLOBAL_STATIC(ToolTipManagerSingleton, privateInstance) Q_GLOBAL_STATIC(ToolTipManagerSingleton, privateInstance)
ToolTipManager *ToolTipManager::self() ToolTipManager *ToolTipManager::self()
{ {
return &privateInstance->self; return &privateInstance()->self;
} }
ToolTipManager::ToolTipManager(QObject *parent) ToolTipManager::ToolTipManager(QObject *parent)