Ubuntu Pastebin

Paste from uCycle at Thu, 30 Jun 2016 18:03:38 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Settings.qml

  Column {
        anchors {
            fill: parent
            top: aboutPage.bottom
            topMargin: units.gu(6)
        }

        ListItem {
            ListItemLayout {
                TextField { id: searchLocation; placeholderText: "hellooooo" }
                Button { text: "enter"
                    onClicked: requestWeaCity() }
            }
        }
        Repeater {
            model: ListModel {
                id: locationModel
                property int selectedIndex: -1
            }
            ListItem {
                ListItemLayout {
                    title.text: model.name + " " + model.weather
                }
                onClicked: {
                    print("user clicked on", model.id, model.name, model.weather)
                    locationModel.selectedIndex = index
                }
            }
        }
    }
Download as text