Reduce compiler warnings

Remove unused and deprecated headers
Port some K_GLOBAL_STATIC to Q_GLOBAL_STATIC
This commit is contained in:
Aleix Pol 2013-12-09 16:50:18 +01:00
parent 51fa49f002
commit 6c82a1ee86
19 changed files with 2 additions and 31 deletions

View File

@ -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()
{

View File

@ -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"

View File

@ -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"

View File

@ -28,7 +28,6 @@
#include <QDebug>
#include <kdesktopfile.h>
#include <kservicetypetrader.h>
#include <kstandarddirs.h>
#include <ktar.h>
#include <kzip.h>

View File

@ -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"

View File

@ -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"

View File

@ -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>

View File

@ -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>

View File

@ -32,7 +32,6 @@
#include <QQmlContext>
#include <QQuickItem>
#include <kglobal.h>
#include <klocalizedstring.h>
#include <kdeclarative/kdeclarative.h>

View File

@ -32,7 +32,6 @@
#include <QQmlContext>
#include <QQuickItem>
#include <kglobal.h>
#include <klocalizedstring.h>
#include <kdeclarative/kdeclarative.h>

View File

@ -32,7 +32,6 @@
#include <QQmlContext>
#include <QQuickItem>
#include <kglobal.h>
#include <klocalizedstring.h>
#include <kdeclarative/kdeclarative.h>

View File

@ -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

View File

@ -30,8 +30,6 @@
#include <kconfiggroup.h>
#include <QDebug>
#include <kglobal.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <Plasma/Applet>

View File

@ -29,7 +29,6 @@
#include <kactioncollection.h>
#include <kconfig.h>
#include <kstandarddirs.h>
#include <kwindowsystem.h>
#include <Plasma/Containment>

View File

@ -27,7 +27,6 @@
#include <QQmlContext>
#include <QScreen>
#include <kglobal.h>
#include <klocalizedstring.h>
#include <kwindoweffects.h>

View File

@ -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),

View File

@ -22,9 +22,6 @@
#include <QEventLoop>
#include <QTimer>
#include <kcomponentdata.h>
#include <k4aboutdata.h>
#include <solid/device.h>
#include <Plasma/Containment>

View File

@ -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

View File

@ -35,7 +35,6 @@
#include <kactivities/controller.h>
#include <kactivities/consumer.h>
#include <ksycoca.h>
#include <kcomponentdata.h>
#include <kservicetypetrader.h>