From a58ce6d0b7494982a7dbc37a8a3e3ef849af323e Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 15 Jan 2007 06:43:17 +0000 Subject: Use a QTreeView for the representation of the details view (previously a QListView has been used). svn path=/trunk/playground/utils/dolphin/; revision=623643 --- src/dolphinview.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index cd3df38b3..c28a47e6e 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -46,6 +46,7 @@ class Q3IconViewItem; class Q3ListViewItem; class Q3VBoxLayout; class DolphinMainWindow; +class DolphinDetailsView; class DolphinDirLister; class DolphinStatusBar; class DolphinIconsView; @@ -54,6 +55,7 @@ class DolphinSortFilterProxyModel; class ViewProperties; class KProgress; class KDirModel; +class KMimeTypeResolver; class FilterBar; class QModelIndex; @@ -456,10 +458,10 @@ private: QString renameIndexPresentation(int index, int itemCount) const; /** - * Applies the current view mode m_mode to the - * view implementation. + * Creates a new view representing the given view mode (DolphinView::viewMode()). + * The current view will get deleted. */ - void applyModeToView(); + void createView(); /** * Returns the column index used in the KDirModel depending on \a sorting. @@ -472,6 +474,12 @@ private: */ void selectAll(QItemSelectionModel::SelectionFlags flags); + /** + * Returns a pointer to the currently used item view, which is either + * a ListView or a TreeView. + */ + QAbstractItemView* itemView() const; + private: bool m_refreshing; bool m_showProgress; @@ -484,13 +492,17 @@ private: DolphinMainWindow* m_mainWindow; QVBoxLayout* m_topLayout; UrlNavigator* m_urlNavigator; + DolphinIconsView* m_iconsView; + DolphinDetailsView* m_detailsView; + FilterBar *m_filterBar; DolphinStatusBar* m_statusBar; KDirModel* m_dirModel; DolphinDirLister* m_dirLister; DolphinSortFilterProxyModel* m_proxyModel; + KMimeTypeResolver* m_mimeTypeResolver; }; -- cgit v1.3