diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-10-01 14:02:32 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-10-01 14:10:25 +0300 |
commit | 6a85b7fa00626c544103c48099260d7a36778686 (patch) | |
tree | bb227f5c8d4dff71b9ba9c5de42a56fd96fc29a5 /examples/qmlsurface/qml/qmlsurface/newbutton.qml | |
parent | 1d6a370a2c6c727e5957fa63b9a516ac0227e54d (diff) |
Android QtQuick.Controls button fix
Change-Id: If72aa627515978cd30cbb159eb9a6a5dddbb8f52
Change-Id: If72aa627515978cd30cbb159eb9a6a5dddbb8f52
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/qmlsurface/qml/qmlsurface/newbutton.qml')
-rw-r--r-- | examples/qmlsurface/qml/qmlsurface/newbutton.qml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/examples/qmlsurface/qml/qmlsurface/newbutton.qml b/examples/qmlsurface/qml/qmlsurface/newbutton.qml new file mode 100644 index 00000000..895db183 --- /dev/null +++ b/examples/qmlsurface/qml/qmlsurface/newbutton.qml @@ -0,0 +1,43 @@ +/**************************************************************************** +** +** Copyright (C) 2013 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() + } +} |