Reduce compiler warnings
Remove unused and deprecated headers Port some K_GLOBAL_STATIC to Q_GLOBAL_STATIC
This commit is contained in:
parent
51fa49f002
commit
6c82a1ee86
@ -27,7 +27,6 @@
|
||||
|
||||
#include <ksharedconfig.h>
|
||||
#include <QDebug>
|
||||
#include <kglobal.h>
|
||||
|
||||
#include <kdeclarative/kdeclarative.h>
|
||||
|
||||
@ -44,7 +43,7 @@ class BKSingleton
|
||||
public:
|
||||
EngineBookKeeping self;
|
||||
};
|
||||
K_GLOBAL_STATIC(BKSingleton, privateBKSelf)
|
||||
Q_GLOBAL_STATIC(BKSingleton, privateBKSelf)
|
||||
|
||||
EngineBookKeeping::EngineBookKeeping()
|
||||
{
|
||||
|
@ -30,10 +30,8 @@
|
||||
#include <QDebug>
|
||||
#include <kplugininfo.h>
|
||||
#include <kservicetypetrader.h>
|
||||
#include <kstandarddirs.h>
|
||||
#include <klocalizedstring.h>
|
||||
#include <kiconloader.h>
|
||||
#include <kglobal.h>
|
||||
#include <qstandardpaths.h>
|
||||
|
||||
#include "package.h"
|
||||
|
@ -29,10 +29,8 @@
|
||||
|
||||
#include <QDebug>
|
||||
#include <kplugininfo.h>
|
||||
#include <kglobal.h>
|
||||
#include <kservice.h>
|
||||
#include <kservicetypetrader.h>
|
||||
#include <kstandarddirs.h>
|
||||
#include <klocalizedstring.h>
|
||||
|
||||
#include "datacontainer.h"
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include <QDebug>
|
||||
#include <kdesktopfile.h>
|
||||
#include <kservicetypetrader.h>
|
||||
#include <kstandarddirs.h>
|
||||
#include <ktar.h>
|
||||
#include <kzip.h>
|
||||
|
||||
|
@ -24,8 +24,6 @@
|
||||
#include <QDebug>
|
||||
#include <kservice.h>
|
||||
#include <kservicetypetrader.h>
|
||||
#include <kglobal.h>
|
||||
#include <kplugininfo.h>
|
||||
#include <kplugintrader.h>
|
||||
|
||||
#include "config-plasma.h"
|
||||
|
@ -33,8 +33,6 @@
|
||||
#include <klocale.h>
|
||||
#include <klocalizedstring.h>
|
||||
#include <kkeysequencewidget.h>
|
||||
#include <kstandarddirs.h>
|
||||
#include <kglobal.h>
|
||||
#include <kglobalaccel.h>
|
||||
|
||||
#include "containment.h"
|
||||
|
@ -32,11 +32,9 @@
|
||||
#include "config-plasma.h"
|
||||
|
||||
#include <kcolorscheme.h>
|
||||
#include <kcomponentdata.h>
|
||||
#include <kconfiggroup.h>
|
||||
#include <QDebug>
|
||||
#include <kdirwatch.h>
|
||||
#include <kglobal.h>
|
||||
#include <kmanagerselection.h>
|
||||
#include <kimagecache.h>
|
||||
#include <ksharedconfig.h>
|
||||
|
@ -30,8 +30,6 @@
|
||||
#include <plasma/packagestructure.h>
|
||||
#include <plasma/package.h>
|
||||
#include <plasma/pluginloader.h>
|
||||
#include <kglobal.h>
|
||||
#include <klocale.h>
|
||||
#include <kjob.h>
|
||||
|
||||
#include <qcommandlineparser.h>
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include <QQmlContext>
|
||||
#include <QQuickItem>
|
||||
|
||||
#include <kglobal.h>
|
||||
#include <klocalizedstring.h>
|
||||
#include <kdeclarative/kdeclarative.h>
|
||||
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include <QQmlContext>
|
||||
#include <QQuickItem>
|
||||
|
||||
#include <kglobal.h>
|
||||
#include <klocalizedstring.h>
|
||||
#include <kdeclarative/kdeclarative.h>
|
||||
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include <QQmlContext>
|
||||
#include <QQuickItem>
|
||||
|
||||
#include <kglobal.h>
|
||||
#include <klocalizedstring.h>
|
||||
#include <kdeclarative/kdeclarative.h>
|
||||
|
||||
|
@ -34,7 +34,6 @@
|
||||
#include <klocalizedstring.h>
|
||||
#include <kurlmimedata.h>
|
||||
#include <QMimeDatabase>
|
||||
#include <ktemporaryfile.h>
|
||||
|
||||
#ifndef PLASMA_NO_KIO
|
||||
#include "kio/jobclasses.h" // for KIO::JobFlags
|
||||
|
@ -30,8 +30,6 @@
|
||||
|
||||
#include <kconfiggroup.h>
|
||||
#include <QDebug>
|
||||
#include <kglobal.h>
|
||||
#include <klocale.h>
|
||||
#include <klocalizedstring.h>
|
||||
|
||||
#include <Plasma/Applet>
|
||||
|
@ -29,7 +29,6 @@
|
||||
|
||||
#include <kactioncollection.h>
|
||||
#include <kconfig.h>
|
||||
#include <kstandarddirs.h>
|
||||
#include <kwindowsystem.h>
|
||||
|
||||
#include <Plasma/Containment>
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include <QQmlContext>
|
||||
#include <QScreen>
|
||||
|
||||
#include <kglobal.h>
|
||||
#include <klocalizedstring.h>
|
||||
#include <kwindoweffects.h>
|
||||
|
||||
|
@ -30,7 +30,6 @@
|
||||
#endif
|
||||
|
||||
#include <qdebug.h>
|
||||
#include <kglobal.h>
|
||||
|
||||
class PanelShadows::Private
|
||||
{
|
||||
@ -94,7 +93,7 @@ public:
|
||||
PanelShadows self;
|
||||
};
|
||||
|
||||
K_GLOBAL_STATIC(DialogShadowsSingleton, privateDialogShadowsSelf)
|
||||
Q_GLOBAL_STATIC(DialogShadowsSingleton, privateDialogShadowsSelf)
|
||||
|
||||
PanelShadows::PanelShadows(QObject *parent, const QString &prefix)
|
||||
: Plasma::Svg(parent),
|
||||
|
@ -22,9 +22,6 @@
|
||||
#include <QEventLoop>
|
||||
#include <QTimer>
|
||||
|
||||
#include <kcomponentdata.h>
|
||||
#include <k4aboutdata.h>
|
||||
|
||||
#include <solid/device.h>
|
||||
|
||||
#include <Plasma/Containment>
|
||||
|
@ -29,12 +29,10 @@
|
||||
#include <QStandardPaths>
|
||||
|
||||
#include <QDebug>
|
||||
#include <kglobal.h>
|
||||
#include <klocalizedstring.h>
|
||||
#include <kmimetypetrader.h>
|
||||
#include <kservicetypetrader.h>
|
||||
#include <kshell.h>
|
||||
#include <kcomponentdata.h>
|
||||
|
||||
// KIO
|
||||
//#include <kemailsettings.h> // no camelcase include
|
||||
|
@ -35,7 +35,6 @@
|
||||
#include <kactivities/controller.h>
|
||||
#include <kactivities/consumer.h>
|
||||
#include <ksycoca.h>
|
||||
#include <kcomponentdata.h>
|
||||
#include <kservicetypetrader.h>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user