From f9554d6457b1439fb0a139a86aa91a94d525e653 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 4 Sep 2010 16:59:47 +0000 Subject: Use the size-hint provided by the item-delegate to calculate the required width of the columns. This assures that columns like "Path" are not clipped. svn path=/trunk/KDE/kdebase/apps/; revision=1171601 --- src/views/dolphindetailsview.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/views/dolphindetailsview.h') diff --git a/src/views/dolphindetailsview.h b/src/views/dolphindetailsview.h index 3ac08d337..8b76cbc36 100644 --- a/src/views/dolphindetailsview.h +++ b/src/views/dolphindetailsview.h @@ -88,6 +88,10 @@ protected: virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); virtual void scrollTo(const QModelIndex& index, ScrollHint hint = EnsureVisible); + +protected slots: + virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end); + private slots: /** * Sets the sort indicator section of the header view @@ -147,6 +151,11 @@ private slots: */ void updateColumnVisibility(); + /** + * Resizes all columns in a way to use the whole available width of the view. + */ + void resizeColumns(); + /** * Saves order of the columns as global setting. */ @@ -193,10 +202,6 @@ private slots: void slotExpanded(const QModelIndex& index); void slotCollapsed(const QModelIndex& index); -protected slots: - - virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end); - private: /** * Removes the URLs corresponding to the children of \a index in the rows @@ -214,11 +219,6 @@ private: KFileItemDelegate::Information infoForColumn(int columnIndex) const; - /** - * Resizes all columns in a way to use the whole available width of the view. - */ - void resizeColumns(); - /** * Returns true, if \a pos is within the expanding toggle of a tree. */ -- cgit v1.3.1