import QtQuick 1.1
import CameraPlus 1.0
import com.nokia.meego 1.1
+import QtCamera 1.0
Item {
property bool pressed: view.currentItem ? view.currentItem.playing : false
- property int policyMode: CameraResources.None
+ property int policyMode: view.currentItem && view.currentItem.playing ?
+ CameraResources.Player : settings.mode == Camera.VideoMode ? CameraResources.Video :
+ CameraResources.Image
property bool available: view.currentItem ? view.currentItem.itemData.available : false
Component.onCompleted: postCaptureModel.reload()
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; }
}