From a9ef4bd96a6aa7f4b730bc0b4ff676c56e382507 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 22 Jul 2009 19:26:25 +0000 Subject: show the actions of a revision control plugin in the context menu svn path=/trunk/KDE/kdebase/apps/; revision=1001270 --- src/dolphinview.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/dolphinview.cpp') diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index c454d65a5..a979ecdd2 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -105,6 +105,7 @@ DolphinView::DolphinView(QWidget* parent, m_proxyModel(proxyModel), m_previewGenerator(0), m_toolTipManager(0), + m_revisionControlObserver(0), m_rootUrl(), m_activeItemUrl(), m_createdItemUrl(), @@ -608,6 +609,11 @@ QString DolphinView::statusBarText() const return text; } +QList DolphinView::revisionControlActions(const KFileItemList& items) const +{ + return m_revisionControlObserver->contextMenuActions(items); +} + void DolphinView::setUrl(const KUrl& url) { m_newFileNames.clear(); @@ -1461,7 +1467,7 @@ void DolphinView::createView() m_previewGenerator = new KFilePreviewGenerator(view); m_previewGenerator->setPreviewShown(m_showPreview); - new RevisionControlObserver(view); + m_revisionControlObserver = new RevisionControlObserver(view); if (DolphinSettings::instance().generalSettings()->showToolTips()) { m_toolTipManager = new ToolTipManager(view, m_proxyModel); -- cgit v1.3