Change-Id: I8b4a01cfcca59103f2616b72645994a22bff40dd
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
*/
void QStringListModel::sort(int, Qt::SortOrder order)
{
- emit layoutAboutToBeChanged();
+ emit layoutAboutToBeChanged(QList<QPersistentModelIndex>(), VerticalSortHint);
QList<QPair<QString, int> > list;
for (int i = 0; i < lst.count(); ++i)
newList.append(index(forwarding.at(oldList.at(i).row()), 0));
changePersistentIndexList(oldList, newList);
- emit layoutChanged();
+ emit layoutChanged(QList<QPersistentModelIndex>(), VerticalSortHint);
}
/*!