┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistheader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kitemviews/kitemlistheader.h')
-rw-r--r--src/kitemviews/kitemlistheader.h5
1 files changed, 5 insertions, 0 deletions
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<QByteArray, qreal>& 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