mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-04 17:30:55 +00:00
The answer is either clear() or filterChanged(). Anyone knows this better?
I have decided to use clar as this is the most conservative choiche I could make. Actually I would love to call QSortFilterProxyModelPrivate::sort as the mapping does not change, as we do not filter rows ATM... svn path=/trunk/playground/utils/dolphin/; revision=615959
This commit is contained in:
parent
b0b162135d
commit
e3b47dc731
|
@ -38,7 +38,7 @@ void DolphinSortFilterProxyModel::setSorting(DolphinView::Sorting sorting)
|
|||
{
|
||||
if (sorting != m_sorting) {
|
||||
m_sorting = sorting;
|
||||
// TODO: how to trigger an update?
|
||||
clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ void DolphinSortFilterProxyModel::setSortOrder(Qt::SortOrder sortOrder)
|
|||
{
|
||||
if (sortOrder != m_sortOrder) {
|
||||
m_sortOrder = sortOrder;
|
||||
// TODO: how to trigger an update?
|
||||
clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user