summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2017-02-14 06:40:24 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2017-02-14 06:40:24 (GMT)
commitad6e3b7f937a846ec8a5532bb62f6bf2e923b49b (patch)
tree19a4f04a437e076d0f11f8a6ce2cf3a4d8699d90
parenta18d9d32455a82be1dd5001dcffb78583fa27906 (diff)
Update to KDevplatform API change
-rw-r--r--plasmate/app/plasmateextention.cpp4
-rw-r--r--plasmate/app/plasmateextention.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/plasmate/app/plasmateextention.cpp b/plasmate/app/plasmateextention.cpp
index d333466..ccde17f 100644
--- a/plasmate/app/plasmateextention.cpp
+++ b/plasmate/app/plasmateextention.cpp
@@ -39,7 +39,11 @@ QString PlasmateExtension::xmlFile()
return "plasmateui.rc";
}
+#if KDEVPLATFORM_VERSION >= QT_VERSION_CHECK(5, 1, 40)
+QString PlasmateExtension::executableFilePath()
+#else
QString PlasmateExtension::binaryPath()
+#endif
{
return QApplication::applicationDirPath() + "/plasmate";
}
diff --git a/plasmate/app/plasmateextention.h b/plasmate/app/plasmateextention.h
index 4aa2979..a789291 100644
--- a/plasmate/app/plasmateextention.h
+++ b/plasmate/app/plasmateextention.h
@@ -21,6 +21,7 @@
#define PLASMATEEXTENSION_H
#include <shell/shellextension.h>
+#include <kdevplatform_version.h>
class PlasmateExtension : public KDevelop::ShellExtension {
@@ -28,7 +29,11 @@ public:
static void init();
virtual QString xmlFile();
+#if KDEVPLATFORM_VERSION >= QT_VERSION_CHECK(5, 1, 40)
+ virtual QString executableFilePath();
+#else
virtual QString binaryPath();
+#endif
virtual KDevelop::AreaParams defaultArea();
virtual QString projectFileExtension();
virtual QString projectFileDescription();