Commit da22dfcc authored by Holger Freyther's avatar Holger Freyther
Browse files

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
parent 36a854ef
...@@ -38,7 +38,7 @@ void DolphinSortFilterProxyModel::setSorting(DolphinView::Sorting sorting) ...@@ -38,7 +38,7 @@ void DolphinSortFilterProxyModel::setSorting(DolphinView::Sorting sorting)
{ {
if (sorting != m_sorting) { if (sorting != m_sorting) {
m_sorting = sorting; m_sorting = sorting;
// TODO: how to trigger an update? clear();
} }
} }
...@@ -46,7 +46,7 @@ void DolphinSortFilterProxyModel::setSortOrder(Qt::SortOrder sortOrder) ...@@ -46,7 +46,7 @@ void DolphinSortFilterProxyModel::setSortOrder(Qt::SortOrder sortOrder)
{ {
if (sortOrder != m_sortOrder) { if (sortOrder != m_sortOrder) {
m_sortOrder = sortOrder; m_sortOrder = sortOrder;
// TODO: how to trigger an update? clear();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment