diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-06-04 11:53:38 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-06-04 13:09:09 +0300 |
commit | 5aa53579156a5234a660999c876f17339542113a (patch) | |
tree | 8228a4b742da524ee33ba37ddea116181a87c64f /basicsuite/Controls Touch/content/ButtonPage.qml | |
parent | 1fd1f0d7c0906be8960ce6a7b9246d9e594af806 (diff) |
Update controls to work with latest API
Change-Id: Ib2d71f1b81aa5d4befbf8f61dbfbb0f92ddc00fa
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'basicsuite/Controls Touch/content/ButtonPage.qml')
-rw-r--r-- | basicsuite/Controls Touch/content/ButtonPage.qml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/basicsuite/Controls Touch/content/ButtonPage.qml b/basicsuite/Controls Touch/content/ButtonPage.qml index cc5925c..f431a52 100644 --- a/basicsuite/Controls Touch/content/ButtonPage.qml +++ b/basicsuite/Controls Touch/content/ButtonPage.qml @@ -86,7 +86,7 @@ Item { anchors.margins: 20 style: touchStyle text: "Dont press me" - onClicked: if (pageStack) pageStack.pop() + onClicked: if (stackView) stackView.pop() } } @@ -94,7 +94,7 @@ Item { Component { id: touchStyle ButtonStyle { - background: Item { + panel: Item { implicitHeight: 50 implicitWidth: 320 BorderImage { @@ -106,10 +106,15 @@ Item { border.right: 8 anchors.margins: control.pressed ? -4 : 0 source: control.pressed ? "../images/button_pressed.png" : "../images/button_default.png" + Text { + text: control.text + anchors.centerIn: parent + color: "white" + font.pixelSize: 23 + renderType: Text.NativeRendering + } } } - foregroundColor: "white" - font.pixelSize: 23 } } } |