From 1cbe55b97c3b8fd9265ad6b40ce6cc169d4451c1 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 24 Mar 2012 23:46:44 +0100 Subject: Cleanup and minor fixes for column-handling --- src/kitemviews/kitemlistheader.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/kitemviews/kitemlistheader.h') diff --git a/src/kitemviews/kitemlistheader.h b/src/kitemviews/kitemlistheader.h index d0aae7fc1..fe2d0ac10 100644 --- a/src/kitemviews/kitemlistheader.h +++ b/src/kitemviews/kitemlistheader.h @@ -65,6 +65,11 @@ public: */ void setColumnWidths(const QHash& columnWidths); + /** + * @return The column width that is required to show the role unclipped. + */ + qreal preferredColumnWidth(const QByteArray& role) const; + signals: /** * Is emitted if the width of a column has been adjusted by the user with the mouse -- cgit v1.3.1