From 5ce01c864f4ab9848a54ee982f6ac18e63f04773 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Sat, 29 Aug 2015 21:50:16 +0200 Subject: 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 --- src/kitemviews/kitemlistheader.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/kitemviews/kitemlistheader.h') diff --git a/src/kitemviews/kitemlistheader.h b/src/kitemviews/kitemlistheader.h index cc2b74793..76c420559 100644 --- a/src/kitemviews/kitemlistheader.h +++ b/src/kitemviews/kitemlistheader.h @@ -79,6 +79,13 @@ signals: qreal currentWidth, 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); + private: KItemListHeader(KItemListView* listView); -- cgit v1.3.1