summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Riddell <[email protected]>2017-03-23 11:20:02 +0000
committerJonathan Riddell <[email protected]>2017-03-23 11:20:02 +0000
commit4a24c7d3ca1044c56a1ff4b6d07aefa8eac2d2ef (patch)
treefefce8a94347521dd200ad771c1ef0fca7b19ebb
parent71f241840d2f129016889609037ddafd336ca16b (diff)
Switch to newer KDevelop API
Summary: KDevelop API changed Test Plan: check compiles Reviewers: #plasma Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D5127
-rw-r--r--plasmate/plugins/savesystemview/git.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/plasmate/plugins/savesystemview/git.cpp b/plasmate/plugins/savesystemview/git.cpp
index 924a733..90ab58e 100644
--- a/plasmate/plugins/savesystemview/git.cpp
+++ b/plasmate/plugins/savesystemview/git.cpp
@@ -38,6 +38,7 @@
#include <vcs/dvcs/dvcsjob.h>
#include <vcs/models/brancheslistmodel.h>
#include <vcs/models/vcseventmodel.h>
+#include <kdevplatform_version.h>
#include <KLocalizedString>
#include <KMessageBox>
@@ -108,7 +109,11 @@ bool Git::initGit()
m_branchesModel->initialize(m_branching, m_repositoryPath);
KDevelop::VcsRevision rev = KDevelop::VcsRevision::createSpecialRevision(KDevelop::VcsRevision::Base);
+#if KDEVPLATFORM_VERSION >= QT_VERSION_CHECK(5, 1, 40)
+ KDevelop::VcsEventLogModel *vcsEventModel = new KDevelop::VcsEventLogModel(basicVersionControl, rev, m_repositoryPath, this);
+#else
KDevelop::VcsEventModel *vcsEventModel = new KDevelop::VcsEventModel(basicVersionControl, rev, m_repositoryPath, this);
+#endif
m_commitsModel->setSourceModel(vcsEventModel);
return true;