diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-02-11 08:57:06 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2014-02-11 09:01:46 +0200 |
commit | 67bdad6bd13cc74b59425230b3eff0898b44701e (patch) | |
tree | c6138d6925a4d152c31476db97b9e4b25c9ab73d /examples/qmlsurfacelayers/qml/qmlsurfacelayers/NewButton.qml | |
parent | b86e535d839643298ba610da9789e9c4bc9149db (diff) |
Added surface multiseries example
Task-number: QTRD-2839
Change-Id: I8f9960339040218f8962c074b1e33dc3b4d95363
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/qmlsurfacelayers/qml/qmlsurfacelayers/NewButton.qml')
-rw-r--r-- | examples/qmlsurfacelayers/qml/qmlsurfacelayers/NewButton.qml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/examples/qmlsurfacelayers/qml/qmlsurfacelayers/NewButton.qml b/examples/qmlsurfacelayers/qml/qmlsurfacelayers/NewButton.qml new file mode 100644 index 00000000..e4fb99d2 --- /dev/null +++ b/examples/qmlsurfacelayers/qml/qmlsurfacelayers/NewButton.qml @@ -0,0 +1,52 @@ +/**************************************************************************** +** +** 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 +import QtQuick.Controls.Styles 1.0 + +Item { + id: newbutton + + property alias text: buttonText.text + + signal clicked + + implicitWidth: buttonText.implicitWidth + 5 + implicitHeight: buttonText.implicitHeight + 10 + + Button { + id: buttonText + width: parent.width + height: parent.height + + style: ButtonStyle { + label: Component { + Text { + text: buttonText.text + clip: true + wrapMode: Text.WordWrap + verticalAlignment: Text.AlignVCenter + horizontalAlignment: Text.AlignHCenter + anchors.fill: parent + } + } + } + onClicked: newbutton.clicked() + } +} |