From c05395ef9a6f449bd96b4323d308b53d70cede99 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 29 Aug 2009 09:42:21 +0000 Subject: Move code for initializing and handling view extensions to the new class ViewExtensionsFactory. Beside making DolphinView less complex this will allow the column view to share the view extension code instead of (partly) duplicating it as it has been done before. Currently only the tooltips- and filepreview-handling have been moved into ViewExtensionsFactory, a further cleanup will be done later. svn path=/trunk/KDE/kdebase/apps/; revision=1016893 --- src/dolphiniconsview.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/dolphiniconsview.h') diff --git a/src/dolphiniconsview.h b/src/dolphiniconsview.h index f4eb5e260..7a6dda3d4 100644 --- a/src/dolphiniconsview.h +++ b/src/dolphiniconsview.h @@ -34,7 +34,9 @@ class DolphinController; class SelectionManager; class DolphinCategoryDrawer; +class DolphinSortFilterProxyModel; class DolphinViewAutoScroller; +class ViewExtensionsFactory; /** * @brief Represents the view, where each item is shown as an icon. @@ -47,7 +49,9 @@ class LIBDOLPHINPRIVATE_EXPORT DolphinIconsView : public KCategorizedView Q_OBJECT public: - explicit DolphinIconsView(QWidget* parent, DolphinController* controller); + explicit DolphinIconsView(QWidget* parent, + DolphinController* controller, + DolphinSortFilterProxyModel* proxyModel); virtual ~DolphinIconsView(); protected slots: @@ -96,6 +100,7 @@ private: SelectionManager* m_selectionManager; DolphinViewAutoScroller* m_autoScroller; DolphinCategoryDrawer* m_categoryDrawer; + ViewExtensionsFactory* m_extensionsFactory; QFont m_font; QSize m_decorationSize; -- cgit v1.3.1