From b8c718a6fd9810f9e91303ed50402de4ab417a49 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 6 Sep 2011 23:42:42 +0200 Subject: First step to reactivate version control plugin functionality - Add a DolphinFileItemListWidget that provides icon-overlays and colored text for the version state (implementation is missing yet) - Allow KFileItemListWidget to have custom text colors - Update interface of VersionControlObserver to work with KFileItemModel instead of the old model-interface. --- src/views/dolphinview.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/views/dolphinview.h') diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index 49da948d6..65bd77529 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -44,8 +44,10 @@ class DolphinItemListContainer; class KAction; class KActionCollection; class KFileItemModel; +class KItemModelBase; class KUrl; class ToolTipManager; +class VersionControlObserver; class ViewProperties; class QGraphicsSceneDragDropEvent; class QRegExp; @@ -560,6 +562,7 @@ private slots: void slotItemHovered(int index); void slotItemUnhovered(int index); void slotItemDropEvent(int index, QGraphicsSceneDragDropEvent* event); + void slotModelChanged(KItemModelBase* current, KItemModelBase* previous); /** * Emits the signal \a selectionChanged() with a small delay. This is @@ -755,6 +758,8 @@ private: QPoint m_restoredContentsPosition; KUrl m_createdItemUrl; // URL for a new item that got created by the "Create New..." menu KFileItemList m_selectedItems; // this is used for making the View to remember selections after F5 + + VersionControlObserver* m_versionControlObserver; // For unit tests friend class TestBase; -- cgit v1.3.1