Merge lp:~nik90/unav/search-page-visual-improvements into lp:unav

Proposed by Nekhelesh Ramananthan
Status: Merged
Merged at revision: 35
Proposed branch: lp:~nik90/unav/search-page-visual-improvements
Merge into: lp:unav
Diff against target: 27 lines (+17/-0)
1 file modified
qml/SearchPage.qml (+17/-0)
To merge this branch: bzr merge lp:~nik90/unav/search-page-visual-improvements
Reviewer Review Type Date Requested Status
costales Approve
Review via email: mp+291380@code.launchpad.net

Description of the change

*Merge for uNav 0.59 only*

Added icons to the search page history list model results

To post a comment you must log in.
Revision history for this message
costales (costales) wrote :

So nice improvement ;)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/SearchPage.qml'
2--- qml/SearchPage.qml 2016-04-06 21:37:07 +0000
3+++ qml/SearchPage.qml 2016-04-08 14:18:16 +0000
4@@ -289,6 +289,23 @@
5 subtitle.visible: model.title !== i18n.tr("Nearby history") && mainPageStack.currentLat !== "null" && mainPageStack.currentLng !== "null"
6
7 Icon {
8+ id: resultTypeIcon
9+ height: units.gu(2.5)
10+ name: {
11+ if (model.title === i18n.tr("Search history"))
12+ return "history"
13+ else if (model.title === i18n.tr("Favorite history"))
14+ return "starred"
15+ else
16+ return "location"
17+ }
18+
19+ SlotsLayout.position: SlotsLayout.First
20+ SlotsLayout.overrideVerticalPositioning: true
21+ anchors.verticalCenter: parent.verticalCenter
22+ }
23+
24+ Icon {
25 id: progressionIcon
26 height: units.gu(2.5)
27 name: "next"

Subscribers

People subscribed via source and target branches