┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-03-25 22:56:13 +0200
committerPeter Penz <[email protected]>2012-03-25 22:58:16 +0200
commite70c2f8aa472c01433f9416c363c698677c5b45f (patch)
tree46ae0ce49bf98749ce3a3d6a4b06e6129a7c706d /src/kitemviews/kitemlistview.h
parent1cbe55b97c3b8fd9265ad6b40ce6cc169d4451c1 (diff)
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.
Diffstat (limited to 'src/kitemviews/kitemlistview.h')
-rw-r--r--src/kitemviews/kitemlistview.h4
1 files changed, 2 insertions, 2 deletions
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.