I've reimplemented compare in this way:
int KMListViewItem::compare(QListViewItem * i, int col, bool ascending) const
{
qDebug("compare()");
Q_UNUSED(i);
Q_UNUSED(col);
Q_UNUSED(ascending);
return 0;
}
int KMListViewItem::compare(QListViewItem * i, int col, bool ascending) const
{
qDebug("compare()");
Q_UNUSED(i);
Q_UNUSED(col);
Q_UNUSED(ascending);
return 0;
}
To copy to clipboard, switch view to plain text mode
It should work but it doesn't (items are moved). I think the only solution is to use setSorting(-1) and then use QHeader's setSortIndicator.
Bookmarks