on xenial help sign in
sort by City by default
commitfe7495ce72050f42b25bc24979bd2bdfcb30a19f authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 22 Jun 2015, 23:01 (11 years ago) parent060b5ed
1 file changed+4
plugins/Wizard/timezonemodel.cpp+4
plugins/Wizard/timezonemodel.cpp+4
@@ -99,7 +99,11 @@ void TimeZoneModel::init()
9999TimeZoneFilterModel::TimeZoneFilterModel(QObject *parent)
100100 : QSortFilterProxyModel(parent)
101101{
102+ setDynamicSortFilter(false);
103+ setSortLocaleAware(true);
104+ setSortRole(TimeZoneModel::City);
102105 m_stringMatcher.setCaseSensitivity(Qt::CaseInsensitive);
106+ sort(0);
103107}
104108
105109bool TimeZoneFilterModel::filterAcceptsRow(int row, const QModelIndex &parentIndex) const