~lukas-kde/miral/shellchrome-windowinfo

« back to all changes in this revision

Viewing changes to miral-qt/demos/qml-demo-client/qml-demo-client.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
 
    onWidthChanged: print("WIDTH", width)
5
 
    onHeightChanged: print("HEIGHT", height)
6
 
    width: 600
7
 
    height: 80*6
8
 
    color: "blue"
9
 
 
10
 
    Column {
11
 
        anchors.fill: parent
12
 
        MovingRect {}
13
 
        MovingRect {}
14
 
        MovingRect {}
15
 
        MovingRect {}
16
 
        MovingRect {}
17
 
        MovingRect {}
18
 
    }
19
 
 
20
 
    Rectangle {
21
 
        id: flasher
22
 
        width: 100
23
 
        height: 100
24
 
        anchors.bottom: parent.bottom
25
 
        anchors.right: parent.right
26
 
        color: (on) ? "yellow" : "green"
27
 
        property bool on: false
28
 
        Timer {
29
 
            interval: 1000
30
 
            repeat: true
31
 
            running: true
32
 
            onTriggered: flasher.on = !flasher.on
33
 
        }
34
 
    }
35
 
}