summaryrefslogtreecommitdiff
path: root/qml/Square.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/Square.qml')
-rw-r--r--qml/Square.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/qml/Square.qml b/qml/Square.qml
new file mode 100644
index 0000000..de61de4
--- /dev/null
+++ b/qml/Square.qml
@@ -0,0 +1,11 @@
+import QtQuick 2.0
+
+Rectangle {
+ height: this.width
+ border.color: "yellow"
+ border.width: 0
+ MouseArea {
+ anchors.fill: parent
+ onClicked: parent.border.width ^= 3
+ }
+}