From c1739d5c4d55401a03462467ed446763924be844 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Sat, 5 Dec 2020 10:19:53 +0100 Subject: Version Control plugin: allow plugins to return repository root Currently plugins `fileName()` only return path file extension. This changes allows plugins to return the absolute file path to their repository root. CCBUG: 430024 --- src/views/versioncontrol/kversioncontrolplugin.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/views/versioncontrol/kversioncontrolplugin.cpp') diff --git a/src/views/versioncontrol/kversioncontrolplugin.cpp b/src/views/versioncontrol/kversioncontrolplugin.cpp index 2e1a4468b..9cbf0eb5b 100644 --- a/src/views/versioncontrol/kversioncontrolplugin.cpp +++ b/src/views/versioncontrol/kversioncontrolplugin.cpp @@ -15,3 +15,8 @@ KVersionControlPlugin::KVersionControlPlugin(QObject* parent) : KVersionControlPlugin::~KVersionControlPlugin() { } + +QString KVersionControlPlugin::localRepositoryRoot(const QString &/*directory*/) const +{ + return QString(); +} -- cgit v1.3