diff --git a/containmentactions.cpp b/containmentactions.cpp index 3fc17162a..71eb6d172 100644 --- a/containmentactions.cpp +++ b/containmentactions.cpp @@ -33,6 +33,7 @@ #include #include +#include #include diff --git a/coronabase.cpp b/coronabase.cpp index 18032ea9d..318194d71 100644 --- a/coronabase.cpp +++ b/coronabase.cpp @@ -451,7 +451,7 @@ CoronaBasePrivate::CoronaBasePrivate(CoronaBase *corona) config(0), actions(corona) { - if (KGlobal::hasMainComponent()) { + if (QCoreApplication::instance()) { configName = QCoreApplication::instance()->applicationName() + "-appletsrc"; } else { configName = "plasma-appletsrc"; diff --git a/private/applet_p.cpp b/private/applet_p.cpp index c89cfce06..dd0989108 100644 --- a/private/applet_p.cpp +++ b/private/applet_p.cpp @@ -45,6 +45,7 @@ #include #include #include +#include #include namespace Plasma diff --git a/private/associatedapplicationmanager.cpp b/private/associatedapplicationmanager.cpp index 8e93cd77f..cbb6e5ce2 100644 --- a/private/associatedapplicationmanager.cpp +++ b/private/associatedapplicationmanager.cpp @@ -25,6 +25,7 @@ #include #include +#include #include #if !PLASMA_NO_KIO diff --git a/private/service_p.h b/private/service_p.h index 64ab0edc8..5d02b092c 100644 --- a/private/service_p.h +++ b/private/service_p.h @@ -30,6 +30,7 @@ #include #include +#include #include #include diff --git a/tests/packagestructuretest.cpp b/tests/packagestructuretest.cpp index c3530d550..3701afd21 100644 --- a/tests/packagestructuretest.cpp +++ b/tests/packagestructuretest.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include "applet.h" #include "pluginloader.h"