┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistheader.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-03-24 23:46:44 +0100
committerPeter Penz <[email protected]>2012-03-24 23:47:42 +0100
commit1cbe55b97c3b8fd9265ad6b40ce6cc169d4451c1 (patch)
tree24d4017240ee701701d13d9c20bc4cc78e9bb3cb /src/kitemviews/kitemlistheader.h
parent3f88f79f862a570b68fe64781955cf7d14124127 (diff)
Cleanup and minor fixes for column-handling
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