summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@nokia.com>2010-08-18 07:52:05 -0400
committerZeno Albisser <zeno.albisser@nokia.com>2010-08-18 07:52:05 -0400
commitdff53cfc7966ad2c8a48a214f65827da5f8bea50 (patch)
treee15b274e211ea76a056fd12be6d4e597d6464790
parent69863ddafed9f262b08f5ba46cdf6ca652e4ad0b (diff)
added back button for stroke list
-rw-r--r--multilayer-dashboard/RowTwo.qml30
1 files changed, 29 insertions, 1 deletions
diff --git a/multilayer-dashboard/RowTwo.qml b/multilayer-dashboard/RowTwo.qml
index c713669..5975264 100644
--- a/multilayer-dashboard/RowTwo.qml
+++ b/multilayer-dashboard/RowTwo.qml
@@ -57,7 +57,35 @@ Rectangle {
widget: StrokeList {
GestureArea {
anchors.fill: parent
- Tap { onFinished: firstWidget.fullScreen = !firstWidget.fullScreen }
+ Tap {
+ when: firstWidget.fullScreen != true
+ onFinished: {
+ backButton.visible = true
+ firstWidget.fullScreen = !firstWidget.fullScreen
+
+ }
+ }
+ }
+ Image {
+ id: backButton
+ width: 80
+ height: 80
+ anchors.right: parent.right
+ anchors.bottom: parent.bottom
+ visible: false
+ opacity: 1
+ source: "images/back.png"
+ fillMode: Image.PreserveAspectFit
+ GestureArea {
+ anchors.fill: parent
+ Tap {
+ when: firstWidget.fullScreen == true
+ onFinished: {
+ backButton.visible = false
+ firstWidget.fullScreen = !firstWidget.fullScreen
+ }
+ }
+ }
}
}
fullScreenWidget: myRow.reparentWidget