~alan-griffiths/miral/fix-1645284

« back to all changes in this revision

Viewing changes to miral-qt/demos/qml-demo-shell/Button.qml

  • Committer: Alan Griffiths
  • Date: 2016-11-07 17:59:19 UTC
  • mfrom: (436.1.1 miral2)
  • Revision ID: alan@octopull.co.uk-20161107175919-stbb64i7j1htgog2
[miral-qt] delete all as qtmir work on MirAL has shifted to lp:~unity-team/qtmir/miral-qt-integration and this is a needless distration

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import QtQuick 2.0
2
 
 
3
 
Rectangle {
4
 
    id: root
5
 
 
6
 
    signal clicked
7
 
 
8
 
    property alias text: text.text
9
 
 
10
 
    implicitHeight: 40
11
 
    implicitWidth: 150
12
 
 
13
 
    color: (mouseArea.pressed) ? "red" : "lightblue"
14
 
 
15
 
    MouseArea {
16
 
        id: mouseArea
17
 
        anchors.fill: parent
18
 
        onClicked: { root.clicked(); }
19
 
    }
20
 
 
21
 
    Text {
22
 
        id: text
23
 
        anchors.verticalCenter: parent.verticalCenter
24
 
        anchors.horizontalCenter: parent.horizontalCenter
25
 
    }
26
 
}