~ubuntu-weather-dev/ubuntu-weather-app/reboot

« back to all changes in this revision

Viewing changes to app/ui/AddLocationPage.qml

  • Committer: Tarmac
  • Author(s): Andrew Hayzen
  • Date: 2015-11-26 03:07:11 UTC
  • mfrom: (153.1.13 weather-uc1.3)
  • Revision ID: tarmac-20151126030711-6mnc3xolq6g1ni81
* Update app to use the Ubuntu Components version 1.3. Fixes: https://bugs.launchpad.net/bugs/1508363.

Approved by Victor Thompson, Jenkins Bot, Bartosz Kosiorek, Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 */
18
18
 
19
19
import QtQuick 2.4
20
 
import Ubuntu.Components 1.2
21
 
import Ubuntu.Components.Popups 1.0
 
20
import Ubuntu.Components 1.3
 
21
import Ubuntu.Components.Popups 1.3
22
22
import "../components"
23
23
import "../data/CitiesList.js" as Cities
24
24
import "../data/WeatherApi.js" as WeatherApi
180
180
 
181
181
    ListView {
182
182
        id: locationList
 
183
        anchors {
 
184
            fill: parent
 
185
            rightMargin: fastScroll.showing ? fastScroll.width - units.gu(1) : 0
 
186
            topMargin: units.gu(2)
 
187
        }
 
188
 
183
189
        objectName: "locationList"
184
 
 
185
190
        clip: true
186
191
        currentIndex: -1
187
 
        anchors.fill: parent
188
 
        anchors.rightMargin: fastScroll.showing ? fastScroll.width - units.gu(1)
189
 
                                                : 0
190
192
 
191
193
        function getSectionText(index) {
192
194
            return citiesModel.get(index).name.substring(0,1)