Fix compilation after kservice framework extraction

This commit is contained in:
David Faure 2012-09-17 18:56:56 +02:00
parent e23f57ef9e
commit 72c4428b03
6 changed files with 6 additions and 1 deletions

View File

@ -33,6 +33,7 @@
#include <QGraphicsSceneWheelEvent> #include <QGraphicsSceneWheelEvent>
#include <kdebug.h> #include <kdebug.h>
#include <klocalizedstring.h>
#include <kservicetypetrader.h> #include <kservicetypetrader.h>

View File

@ -451,7 +451,7 @@ CoronaBasePrivate::CoronaBasePrivate(CoronaBase *corona)
config(0), config(0),
actions(corona) actions(corona)
{ {
if (KGlobal::hasMainComponent()) { if (QCoreApplication::instance()) {
configName = QCoreApplication::instance()->applicationName() + "-appletsrc"; configName = QCoreApplication::instance()->applicationName() + "-appletsrc";
} else { } else {
configName = "plasma-appletsrc"; configName = "plasma-appletsrc";

View File

@ -45,6 +45,7 @@
#include <kaction.h> #include <kaction.h>
#include <kkeysequencewidget.h> #include <kkeysequencewidget.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <kaboutdata.h>
#include <qstandardpaths.h> #include <qstandardpaths.h>
namespace Plasma namespace Plasma

View File

@ -25,6 +25,7 @@
#include <QFile> #include <QFile>
#include <qstandardpaths.h> #include <qstandardpaths.h>
#include <klocalizedstring.h>
#include <kiconloader.h> #include <kiconloader.h>
#if !PLASMA_NO_KIO #if !PLASMA_NO_KIO

View File

@ -30,6 +30,7 @@
#include <QSet> #include <QSet>
#include <kplugininfo.h> #include <kplugininfo.h>
#include <klocalizedstring.h>
#include <dnssd/publicservice.h> #include <dnssd/publicservice.h>
#include <dnssd/servicebrowser.h> #include <dnssd/servicebrowser.h>

View File

@ -22,6 +22,7 @@
#include <kconfig.h> #include <kconfig.h>
#include <kconfiggroup.h> #include <kconfiggroup.h>
#include <kdebug.h> #include <kdebug.h>
#include <klocalizedstring.h>
#include "applet.h" #include "applet.h"
#include "pluginloader.h" #include "pluginloader.h"