diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-05-21 12:27:16 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-05-21 12:28:21 +0300 |
commit | 37a82fbeb7aa59260fe5f31b62228914ee4a44a3 (patch) | |
tree | 35f5c03b5a0019315846de6c584534662666aa99 /examples/datavisualization/qmlaxisdrag/qml/qmlaxisdrag/NewButton.qml | |
parent | fdae1424df750bd02913b9ceec1716b1187b2ae7 (diff) |
Added an example about QML axis dragging
Task-number: QTRD-3128
To be documented
Change-Id: I044a890c8ef4814274b97be68cf7582c07a77247
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/datavisualization/qmlaxisdrag/qml/qmlaxisdrag/NewButton.qml')
-rw-r--r-- | examples/datavisualization/qmlaxisdrag/qml/qmlaxisdrag/NewButton.qml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/examples/datavisualization/qmlaxisdrag/qml/qmlaxisdrag/NewButton.qml b/examples/datavisualization/qmlaxisdrag/qml/qmlaxisdrag/NewButton.qml new file mode 100644 index 00000000..ce946ed8 --- /dev/null +++ b/examples/datavisualization/qmlaxisdrag/qml/qmlaxisdrag/NewButton.qml @@ -0,0 +1,44 @@ +/**************************************************************************** +** +** 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 { + opacity: 0.5 + width: parent.width + height: parent.height + Text { + id: buttonText + wrapMode: Text.WordWrap + verticalAlignment: Text.AlignVCenter + horizontalAlignment: Text.AlignHCenter + anchors.fill: parent + } + onClicked: newbutton.clicked() + } +} |