From e70c2f8aa472c01433f9416c363c698677c5b45f Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 25 Mar 2012 22:56:13 +0200 Subject: Details view: Don't reset to automatic resizing when adding columns Until now when a new column is added in the case where custom column widths are used, the automatic resizing has been turned on again. The patch fixes this so that the current widths stay and the new column gets a proper default width. --- src/kitemviews/kitemlistview.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kitemviews/kitemlistview.h') diff --git a/src/kitemviews/kitemlistview.h b/src/kitemviews/kitemlistview.h index e1433f684..a3c2059d1 100644 --- a/src/kitemviews/kitemlistview.h +++ b/src/kitemviews/kitemlistview.h @@ -543,7 +543,7 @@ private: /** * Convenience method for - * updateColumnWidthsCache(KItemRangeList() << KItemRange(0, m_model->count()). + * updatePreferredColumnWidths(KItemRangeList() << KItemRange(0, m_model->count()). */ void updatePreferredColumnWidths(); @@ -551,7 +551,7 @@ private: * Resizes the column-widths of m_headerWidget based on the preferred widths * and the vailable view-size. */ - void resizeColumnWidths(); + void applyAutomaticColumnWidths(); /** * @return Sum of the widths of all columns. -- cgit v1.3.1