Ubuntu Pastebin

Paste from didrocks at Wed, 5 Aug 2015 06:48:28 +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
33
34
35
36
import QtQuick 2.4
import Ubuntu.Components 1.2

MainView {
    id: mainview
    objectName: "mainView"
    applicationName: "foo.bar"

    width: units.gu(40)
    height: units.gu(75)

    Page {
        title: "Settings"
        Flickable {
            anchors.fill: parent
            contentHeight: childrenRect.height

            Column {
                anchors.left: parent.left
                anchors.right: parent.right

                /*Label {
                    text: "foo"
                }*/

                OptionSelector {
                    text: i18n.tr("Label")
                    model: [i18n.tr("Value 1"),
                            i18n.tr("Value 2"),
                            i18n.tr("Value 3"),
                            i18n.tr("Value 4")]
                }
            }
        }
    }
}
Download as text