diff options
| author | Peter Penz <[email protected]> | 2009-08-29 09:42:21 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-08-29 09:42:21 +0000 |
| commit | c05395ef9a6f449bd96b4323d308b53d70cede99 (patch) | |
| tree | ee8b6db0d0b07a7439b95395cbce0429c17ef635 /src/dolphiniconsview.h | |
| parent | e1c74b05fdae664aa9211cba3afb7993b51ec23b (diff) | |
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
Diffstat (limited to 'src/dolphiniconsview.h')
| -rw-r--r-- | src/dolphiniconsview.h | 7 |
1 files changed, 6 insertions, 1 deletions
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; |
