on xenial help sign in
filter only by city name
794674bLukáš Tinkl
plugins/Wizard/timezonemodel.cpp+2−2
@@ -123,9 +123,9 @@ bool TimeZoneFilterModel::filterAcceptsRow(int row, const QModelIndex &parentInd
123
123
124 if (!m_filter.isEmpty()) { // filtering by freeform text input, cf setFilter(QString)
124 if (!m_filter.isEmpty()) { // filtering by freeform text input, cf setFilter(QString)
125 const QString city = sourceModel()->index(row, 0, parentIndex).data(TimeZoneModel::City).toString();
125 const QString city = sourceModel()->index(row, 0, parentIndex).data(TimeZoneModel::City).toString();
126− const QString country = sourceModel()->index(row, 0, parentIndex).data(TimeZoneModel::Country).toString();
126+ //const QString country = sourceModel()->index(row, 0, parentIndex).data(TimeZoneModel::Country).toString();
127
127
128− if (m_stringMatcher.indexIn(city) == 0 || m_stringMatcher.indexIn(country) == 0) { // match at the beginning of the city/country name
128+ if (m_stringMatcher.indexIn(city) == 0 /*|| m_stringMatcher.indexIn(country) == 0*/) { // match at the beginning of the city name
129 return true;
129 return true;
130 }
130 }
131 } else if (!m_country.isEmpty()) { // filter by country code
131 } else if (!m_country.isEmpty()) { // filter by country code
qml/Wizard/Pages/75-report-check.qml+1−1
@@ -75,7 +75,7 @@ LocalComponents.Page {
75 id: forwardButton
75 id: forwardButton
76 LocalComponents.StackButton {
76 LocalComponents.StackButton {
77 text: i18n.tr("Next")
77 text: i18n.tr("Next")
78− onClicked: pageStack.next();
78+ onClicked: pageStack.next(); // TODO save that info somewhere
79 }
79 }
80 }
80 }
81}
81}