┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews
diff options
context:
space:
mode:
authorAkseli Lahtinen <[email protected]>2023-12-15 13:01:21 +0000
committerMéven Car <[email protected]>2023-12-15 13:01:21 +0000
commitd98037745fe6b5efbe9b145da7d20fa2f731b6a6 (patch)
treed13e23521cd761fc559599d42a7d5e25619c23cf /src/kitemviews
parenta5fb0524b575597a1e835f601e23bd2ceb9ce11b (diff)
Change resortAllItemsInterval to 50ms
Related to https://invent.kde.org/system/dolphin/-/merge_requests/675 Reduces the delay for sorting items when something changes
Diffstat (limited to 'src/kitemviews')
-rw-r--r--src/kitemviews/kfileitemmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp
index 77d5a319c..4fd1ebd57 100644
--- a/src/kitemviews/kfileitemmodel.cpp
+++ b/src/kitemviews/kfileitemmodel.cpp
@@ -99,7 +99,7 @@ KFileItemModel::KFileItemModel(QObject *parent)
// for a lot of items within a quite small timeslot. To prevent expensive resortings the
// resorting is postponed until the timer has been exceeded.
m_resortAllItemsTimer = new QTimer(this);
- m_resortAllItemsTimer->setInterval(500);
+ m_resortAllItemsTimer->setInterval(50);
m_resortAllItemsTimer->setSingleShot(true);
connect(m_resortAllItemsTimer, &QTimer::timeout, this, &KFileItemModel::resortAllItems);