┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/private/kitemlistheaderwidget.h
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2015-08-29 21:50:16 +0200
committerFrank Reininghaus <[email protected]>2015-09-03 20:26:12 +0200
commit5ce01c864f4ab9848a54ee982f6ac18e63f04773 (patch)
tree65d9b148516c57609a728ca50e1d787804b2af17 /src/kitemviews/private/kitemlistheaderwidget.h
parent31f0acc72653972845f83abd60eaffde511801f1 (diff)
Only store modified columns widths after the mouse button was released
This prevents that the new widths are written to disk multiple times in quick succession, which can make column resizing quite slow. BUG: 351846 REVIEW: 351846 FIXED-IN: 15.08.1
Diffstat (limited to 'src/kitemviews/private/kitemlistheaderwidget.h')
-rw-r--r--src/kitemviews/private/kitemlistheaderwidget.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kitemviews/private/kitemlistheaderwidget.h b/src/kitemviews/private/kitemlistheaderwidget.h
index 307def74d..2a80c205d 100644
--- a/src/kitemviews/private/kitemlistheaderwidget.h
+++ b/src/kitemviews/private/kitemlistheaderwidget.h
@@ -76,6 +76,13 @@ signals:
qreal previousWidth);
/**
+ * Is emitted if the user has released the mouse button after adjusting the
+ * width of a visible role.
+ */
+ void columnWidthChangeFinished(const QByteArray& role,
+ qreal currentWidth);
+
+ /**
* Is emitted if the position of the column has been changed.
*/
void columnMoved(const QByteArray& role, int currentIndex, int previousIndex);