summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2017-01-11 02:33:27 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2017-01-11 02:34:47 (GMT)
commita655f87bd4ccfd72d8a1e5e109a8321747f396bf (patch)
treea9559fbde9f9b4b78fc1b12769a9091c20915837
parent1053124565b006a11434e3807048561ae9bba7c3 (diff)
Update to KDevplatform API change
-rw-r--r--plasmate/app/plasmateapp.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/plasmate/app/plasmateapp.cpp b/plasmate/app/plasmateapp.cpp
index 508ddf9..7c78328 100644
--- a/plasmate/app/plasmateapp.cpp
+++ b/plasmate/app/plasmateapp.cpp
@@ -34,6 +34,8 @@
#include <interfaces/idocumentcontroller.h>
#include <interfaces/iprojectcontroller.h>
+#include <kdevplatform_version.h>
+
#include <QMenuBar>
#include <QDockWidget>
@@ -58,12 +60,15 @@ PlasmateApp::~PlasmateApp()
void PlasmateApp::init()
{
- QObject *splash = 0;
-
QString session;
PlasmateExtension::init();
+#if KDEVPLATFORM_VERSION >= QT_VERSION_CHECK(5, 1, 40)
+ KDevelop::Core::initialize(KDevelop::Core::Default, session);
+#else
+ QObject *splash = 0;
KDevelop::Core::initialize(splash, KDevelop::Core::Default, session);
+#endif
m_core = KDevelop::Core::self();
m_uiControllerInternal = m_core->uiControllerInternal();