~ubuntu-clock-dev/ubuntu-clock-app/reboot-packaging

« back to all changes in this revision

Viewing changes to app/worldclock/WorldCityList.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2014-07-15 10:47:37 UTC
  • mto: (20.4.1 20-world-clocks)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: krnekhelesh@gmail.com-20140715104737-9bf8dg57zvqnvtwi
Made city search case insensitive and also cleared the textfield properly

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
                iconName: "back"
60
60
                text: i18n.tr("Back")
61
61
                onTriggered: {
62
 
                    sortedTimeZoneModel.filter.pattern = RegExp("")
 
62
                    searchField.text = ""
63
63
                    worldCityList.state = "default"
64
64
                }
65
65
            }
75
75
 
76
76
                onTextChanged: {
77
77
                    sortedTimeZoneModel.filter.property = "city"
78
 
                    sortedTimeZoneModel.filter.pattern = RegExp(searchField.text)
 
78
                    sortedTimeZoneModel.filter.pattern = RegExp(searchField.text, "gi")
79
79
                }
80
80
            }
81
81
        }