diff options
| author | Méven Car <[email protected]> | 2020-12-05 10:19:53 +0100 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2020-12-27 17:18:40 +0000 |
| commit | c1739d5c4d55401a03462467ed446763924be844 (patch) | |
| tree | e45333d7a87a763238f6bb7df5af4c7ae784de82 /src/views/versioncontrol/versioncontrolobserver.h | |
| parent | c6cdf4126afb2d11e0d2621b55e5621b2cf5bab1 (diff) | |
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
Diffstat (limited to 'src/views/versioncontrol/versioncontrolobserver.h')
| -rw-r--r-- | src/views/versioncontrol/versioncontrolobserver.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/views/versioncontrol/versioncontrolobserver.h b/src/views/versioncontrol/versioncontrolobserver.h index 89c047148..f6b4d9b5f 100644 --- a/src/views/versioncontrol/versioncontrolobserver.h +++ b/src/views/versioncontrol/versioncontrolobserver.h @@ -101,7 +101,6 @@ private slots: private: typedef QPair<KFileItem, KVersionControlPlugin::ItemVersion> ItemState; - typedef QPair<KVersionControlPlugin*, QString> VCSPlugin; void updateItemStates(); @@ -133,10 +132,12 @@ private: bool isVersionControlled() const; private: + void initPlugins(); + bool m_pendingItemStatesUpdate; - bool m_versionedDirectory; bool m_silentUpdate; // if true, no messages will be send during the update // of version states + QString m_wcRoot; DolphinView* m_view; KFileItemModel* m_model; @@ -145,7 +146,7 @@ private: bool m_pluginsInitialized; KVersionControlPlugin* m_plugin; - QList<VCSPlugin> m_plugins; + QList<KVersionControlPlugin*> m_plugins; UpdateItemStatesThread* m_updateItemStatesThread; friend class UpdateItemStatesThread; |
