summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Riddell <jr@jriddell.org>2017-03-23 11:20:02 (GMT)
committerJonathan Riddell <jr@jriddell.org>2017-03-23 11:21:56 (GMT)
commitb735dd2b4c0a3c14b61025d091109f8f552dfa20 (patch)
tree99b0e119ab35461ea4cd3bb9b250bbac8d8ec511
parenta9bf49353313e73bf92119f7783f6470701cfa23 (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;