~cemil-azizoglu/miral/mir-0.26.1-compat

« back to all changes in this revision

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

  • Committer: Larry Price
  • Date: 2016-09-13 16:19:29 UTC
  • mto: (330.4.1 miral)
  • mto: This revision was merged to the branch mainline in revision 352.
  • Revision ID: larry.price@canonical.com-20160913161929-vs9ka1capmljq1es
Removing miral-qt from release branch, updating copyright file, and adding GPL3 license to root dir

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
 
}