on xenial help sign in
sort by City by default
fe7495cLukáš Tinkl
plugins/Wizard/timezonemodel.cpp+4
@@ -99,7 +99,11 @@ void TimeZoneModel::init()
99TimeZoneFilterModel::TimeZoneFilterModel(QObject *parent)
99TimeZoneFilterModel::TimeZoneFilterModel(QObject *parent)
100 : QSortFilterProxyModel(parent)
100 : QSortFilterProxyModel(parent)
101{
101{
102+ setDynamicSortFilter(false);
103+ setSortLocaleAware(true);
104+ setSortRole(TimeZoneModel::City);
102 m_stringMatcher.setCaseSensitivity(Qt::CaseInsensitive);
105 m_stringMatcher.setCaseSensitivity(Qt::CaseInsensitive);
106+ sort(0);
103}
107}
104
108
105bool TimeZoneFilterModel::filterAcceptsRow(int row, const QModelIndex &parentIndex) const
109bool TimeZoneFilterModel::filterAcceptsRow(int row, const QModelIndex &parentIndex) const