Ubuntu Pastebin

Paste from button_width at Tue, 2 Jun 2015 20:37:21 +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
Row {
        id: row3
        anchors.horizontalCenter: parent.horizontalCenter
        spacing: units.gu(1)
        width: parent.width

        Button {
            text: i18n.tr("1")
            width: (row3.width / 3); height: (units.gu(8))
            color: UbuntuColors.darkGrey
            onClicked: parent.parent.focused.actualValue += 1 * mathPart
        }
        Button {
            text: i18n.tr("2")
            width: (row3.width / 3); height: (units.gu(8))
            color: UbuntuColors.darkGrey
            onClicked: parent.parent.focused.actualValue += 2 * mathPart
        }
        Button {
            text: i18n.tr("3")
            width: (row3.width / 3); height: (units.gu(8))
            color: UbuntuColors.darkGrey
            onClicked: parent.parent.focused.actualValue += 3 * mathPart
        }
    }
Download as text