summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/shared/qmlvisualaids/Button.qml
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-11-19 08:29:11 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-11-19 08:29:11 (GMT)
commit1960713543e2a5fee76df7dbf06ea70cf277d696 (patch)
tree03c83f4775e178f4f16535586baefff28b62488b /tests/auto/declarative/qmlvisual/shared/qmlvisualaids/Button.qml
parentd4cd9c899e705ff01f597f0007def8fbd3ab8b39 (diff)
downloadQt-1960713543e2a5fee76df7dbf06ea70cf277d696.zip
Qt-1960713543e2a5fee76df7dbf06ea70cf277d696.tar.gz
Qt-1960713543e2a5fee76df7dbf06ea70cf277d696.tar.bz2
Initial commit of qmlvisualaids
A tool to make it easier to do the platform visual updating. Needs to be streamlined at least a little in order to make it feasible to stay up to date. Task-number: QTBUG-14792
Diffstat (limited to 'tests/auto/declarative/qmlvisual/shared/qmlvisualaids/Button.qml')
-rw-r--r--tests/auto/declarative/qmlvisual/shared/qmlvisualaids/Button.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/shared/qmlvisualaids/Button.qml b/tests/auto/declarative/qmlvisual/shared/qmlvisualaids/Button.qml
new file mode 100644
index 0000000..600079f
--- /dev/null
+++ b/tests/auto/declarative/qmlvisual/shared/qmlvisualaids/Button.qml
@@ -0,0 +1,19 @@
+import Qt 4.7
+
+Rectangle {
+ width: txt.width + 16
+ height: txt.height + 8
+ radius: 4
+ border.color: "black"
+ property alias caption: txt.text
+ signal triggered
+ Text{
+ id: txt
+ text: "Button"
+ anchors.centerIn: parent
+ }
+ MouseArea{
+ anchors.fill: parent
+ onClicked: parent.triggered()
+ }
+}