summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2024-11-27 20:18:37 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2024-11-28 22:35:13 +0100
commitbf714c246b5e45d259a07cf19b668f091fa396a4 (patch)
tree9e1a46d9056030bd0efccc7d418dd9a7e2d28946 /src
parent312717d821aea191bd61285b2bf21ef11c509318 (diff)
QFileSystemModel::sort(): emit layoutChanged with VerticalSortHint
It's good to give a hint about what changed, and it helps behavior of QQmlDelegateModel when that is used in the view. Pick-to: 6.8 Fixes: QTBUG-131487 Change-Id: I8478eaf1e8294e101f3fedc285e44f83e600c566 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/gui/itemmodels/qfilesystemmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemmodels/qfilesystemmodel.cpp b/src/gui/itemmodels/qfilesystemmodel.cpp
index 6bb2761b8af..76bcb8fada3 100644
--- a/src/gui/itemmodels/qfilesystemmodel.cpp
+++ b/src/gui/itemmodels/qfilesystemmodel.cpp
@@ -1178,7 +1178,7 @@ void QFileSystemModel::sort(int column, Qt::SortOrder order)
newList.append(d->index(node, col));
changePersistentIndexList(oldList, newList);
- emit layoutChanged();
+ emit layoutChanged({}, VerticalSortHint);
}
/*!