hide back button in toolbar. Not needed or used
authorMohammed Sameer <msameer@foolab.org>
Mon, 15 Jul 2013 20:27:06 +0000 (23:27 +0300)
committerMohammed Sameer <msameer@foolab.org>
Mon, 15 Jul 2013 20:28:48 +0000 (23:28 +0300)
qml/PostCaptureView.qml
qml/VideoPlayerPage.qml

index 2cae714..e82d861 100644 (file)
@@ -85,22 +85,19 @@ Item {
     CameraToolBar {
         id: toolBar
         expanded: true
-        manualBack: true
+        hideBack: true
         anchors.bottom: parent.bottom
         anchors.bottomMargin: show ? 20 : -1 * (height + 20)
         anchors.left: parent.left
         anchors.leftMargin: 20
         opacity: 0.8
-// TODO: hide back button
+
         property bool show: deleteDialog.status == DialogStatus.Open ||
             deleteDialog.status == DialogStatus.Opening ||
             hideTimer.running || menu.status == DialogStatus.Open ||
             menu.status == DialogStatus.Opening ||
             (view.currentItem && view.currentItem.error) && !view.currentItem.playing
 
-// TODO:
-//        onClicked: pageStack.pop()
-
         Behavior on anchors.bottomMargin {
             PropertyAnimation { duration: 200; }
         }
index 490e6b6..fce5101 100644 (file)
@@ -82,7 +82,7 @@ Item {
 
         property bool show: true
 
-        manualBack: true
+        hideBack: true
         expanded: true
         anchors.bottom: parent.bottom
         anchors.bottomMargin: show ? 20 : -1 * (height + 20)
@@ -124,7 +124,8 @@ Item {
             },
             ToolIcon {
                 id: control
-                iconId: !video.paused ? "icon-m-toolbar-mediacontrol-pause-white" : "icon-m-toolbar-mediacontrol-play-white"
+                iconId: !video.paused ? "icon-m-toolbar-mediacontrol-pause-white"
+                    : "icon-m-toolbar-mediacontrol-play-white"
                 onClicked: {
                     video.toggle()
                     hideTimer.restart()