summaryrefslogtreecommitdiffstats
path: root/tests/qmldynamicdata/qml/qmldynamicdata/NewButton.qml
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-02-03 09:08:35 +0200
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-02-03 09:09:06 +0200
commit20945586166c9e5804de24d79ae0e998e21a088c (patch)
treecc7671a77bcad4f345b3b9877d260e1b4fd6c4be /tests/qmldynamicdata/qml/qmldynamicdata/NewButton.qml
parente95504804eb5eadafaed1253e7d56284a8758ae9 (diff)
QML filename corrections
Change-Id: I3f24a75fd59e342a0dcb9d4cf325e3cf735ae653 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'tests/qmldynamicdata/qml/qmldynamicdata/NewButton.qml')
-rw-r--r--tests/qmldynamicdata/qml/qmldynamicdata/NewButton.qml43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/qmldynamicdata/qml/qmldynamicdata/NewButton.qml b/tests/qmldynamicdata/qml/qmldynamicdata/NewButton.qml
new file mode 100644
index 00000000..0b792dbf
--- /dev/null
+++ b/tests/qmldynamicdata/qml/qmldynamicdata/NewButton.qml
@@ -0,0 +1,43 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc
+** All rights reserved.
+** For any questions to Digia, please use contact form at http://qt.digia.com
+**
+** This file is part of the QtDataVisualization module.
+**
+** Licensees holding valid Qt Enterprise licenses may use this file in
+** accordance with the Qt Enterprise License Agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia.
+**
+** If you have questions regarding the use of this file, please use
+** contact form at http://qt.digia.com
+**
+****************************************************************************/
+
+import QtQuick 2.1
+import QtQuick.Controls 1.0
+
+Item {
+ id: newbutton
+
+ property alias text: buttonText.text
+
+ signal clicked
+
+ height: 80
+
+ Button {
+ width: parent.width
+ height: parent.height
+ Text {
+ id: buttonText
+ wrapMode: Text.WordWrap
+ verticalAlignment: Text.AlignVCenter
+ horizontalAlignment: Text.AlignHCenter
+ anchors.fill: parent
+ }
+ onClicked: newbutton.clicked()
+ }
+}