on xenial help sign in
shift some semicolons around
commitd5f1dff54dceaa94d2b360484a2cf4d8de480aad authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 3 Jul 2014, 12:44 (12 years ago) parent19ad31d
1 file changed+19−19
qml/Components/PageHeader.qml+19−19
qml/Components/PageHeader.qml+19−19
@@ -39,7 +39,7 @@ Item {
3939 signal backClicked()
4040
4141 function triggerSearch() {
42− if (searchEntryEnabled) searchTextField.forceActiveFocus()
42+ if (searchEntryEnabled) searchTextField.forceActiveFocus();
4343 }
4444
4545 function resetSearch(keepFocus) {
@@ -61,14 +61,14 @@ Item {
6161
6262 function openSearchHistory() {
6363 if (openSearchAnimation.running) {
64− openSearchAnimation.openSearchHistory = true
64+ openSearchAnimation.openSearchHistory = true;
6565 } else if (root.searchHistory.count > 0 && headerContainer.popover == null) {
6666 headerContainer.popover = PopupUtils.open(popoverComponent, searchTextField,
6767 {
6868 "contentWidth": searchTextField.width,
6969 "edgeMargins": units.gu(1)
7070 }
71− )
71+ );
7272 }
7373 }
7474
@@ -77,7 +77,7 @@ Item {
7777 header.contents = imageComponent.createObject();
7878 } else {
7979 header.contents.destroy();
80− header.contents = null
80+ header.contents = null;
8181 }
8282 }
8383
@@ -85,7 +85,7 @@ Item {
8585 anchors.fill: parent
8686 visible: headerContainer.popover !== null
8787 onPressed: {
88− PopupUtils.close(headerContainer.popover)
88+ PopupUtils.close(headerContainer.popover);
8989 }
9090 }
9191
@@ -110,7 +110,7 @@ Item {
110110 onRunningChanged: {
111111 if (!running && openSearchAnimation.openSearchHistory) {
112112 openSearchAnimation.openSearchHistory = false;
113− root.openSearchHistory()
113+ root.openSearchHistory();
114114 }
115115 }
116116 }
@@ -133,8 +133,8 @@ Item {
133133 backAction: Action {
134134 iconName: "back"
135135 onTriggered: {
136− root.resetSearch()
137− headerContainer.showSearch = false
136+ root.resetSearch();
137+ headerContainer.showSearch = false;
138138 }
139139 }
140140 }
@@ -142,7 +142,7 @@ Item {
142142 id: searchTextField
143143 hasClearButton: false
144144 anchors {
145− fill: parent;
145+ fill: parent
146146 leftMargin: units.gu(1)
147147 topMargin: units.gu(1)
148148 bottomMargin: units.gu(1)
@@ -178,14 +178,14 @@ Item {
178178 }
179179
180180 onClicked: {
181− root.resetSearch(true)
182− root.openSearchHistory()
181+ root.resetSearch(true);
182+ root.openSearchHistory();
183183 }
184184 }
185185
186186 onActiveFocusChanged: {
187187 if (activeFocus) {
188− root.openSearchHistory()
188+ root.openSearchHistory();
189189 }
190190 }
191191 }
@@ -206,7 +206,7 @@ Item {
206206 iconName: "back"
207207 visible: root.showBackButton
208208 onTriggered: {
209− root.backClicked()
209+ root.backClicked();
210210 }
211211 }
212212
@@ -215,8 +215,8 @@ Item {
215215 iconName: "search"
216216 visible: root.searchEntryEnabled
217217 onTriggered: {
218− headerContainer.showSearch = true
219− searchTextField.forceActiveFocus()
218+ headerContainer.showSearch = true;
219+ searchTextField.forceActiveFocus();
220220 }
221221 }
222222 ]
@@ -255,7 +255,7 @@ Item {
255255 autoClose: false
256256
257257 Component.onDestruction: {
258− headerContainer.popover = null
258+ headerContainer.popover = null;
259259 }
260260
261261 Column {
@@ -275,9 +275,9 @@ Item {
275275 showDivider: index < recentSearches.count - 1
276276 text: query
277277 onClicked: {
278− searchHistory.addQuery(text)
279− searchTextField.text = text
280− PopupUtils.close(popover)
278+ searchHistory.addQuery(text);
279+ searchTextField.text = text;
280+ PopupUtils.close(popover);
281281 }
282282 }
283283 }