From b1536a43422d80300afe48172444dced06e03a70 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 29 Aug 2009 12:16:02 +0000 Subject: move the DolphinFileItemDelegate creation into ViewExtensionsFactory svn path=/trunk/KDE/kdebase/apps/; revision=1016949 --- src/dolphinview.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 3637df444..08fe70e5f 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -44,7 +44,6 @@ typedef KIO::FileUndoManager::CommandType CommandType; class DolphinController; class DolphinColumnViewContainer; class DolphinDetailsView; -class DolphinFileItemDelegate; class DolphinIconsView; class DolphinMainWindow; class DolphinModel; @@ -768,8 +767,15 @@ private: void createView(QWidget* parent, DolphinController* controller, Mode mode); void deleteView(); - bool prepareUrlChange(const KUrl& url); + + /** + * Must be invoked before the URL has been changed and allows view implementations + * like the column view to create a new column. + */ + void prepareUrlChange(const KUrl& url); + QAbstractItemView* itemView() const; + KFileItemDelegate* itemDelegate() const; /** * Returns the widget that should be added to the layout as target. Usually @@ -817,7 +823,6 @@ private: QVBoxLayout* m_topLayout; DolphinController* m_controller; - DolphinFileItemDelegate* m_fileItemDelegate; ViewAccessor m_viewAccessor; QItemSelectionModel* m_selectionModel; -- cgit v1.3.1