From 14bae32f371663d172e1dd39d98080fd8695d991 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 15 Apr 2011 20:35:25 +0200 Subject: Details view: Fix jumping column-widths If the view has a width where a horizontal scrollbar is required to show all columns, an endless loop might get triggered that results in a periodic jumping of the column-widths. BUG: 270954 FIXED-IN: 4.7.0 --- src/views/dolphindetailsview.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/views/dolphindetailsview.h') diff --git a/src/views/dolphindetailsview.h b/src/views/dolphindetailsview.h index 640181274..305035dd5 100644 --- a/src/views/dolphindetailsview.h +++ b/src/views/dolphindetailsview.h @@ -195,6 +195,12 @@ private: */ void adjustMaximumSizeForEditing(const QModelIndex& index); + /** + * Helper method for DolphinDetailsView::resizeColumns(): Returns the + * string representation of the size-value for the given index. + */ + QString itemSizeString(const QModelIndex& index, const KFileItem& item) const; + private: bool m_autoResize; // if true, the columns are resized automatically to the available width -- cgit v1.3