Hide post capture toolbar immediately when we start video playback
[harmattan/cameraplus] / qml / VideoWhiteBalanceButton.qml
index e2f694d..a8003e4 100644 (file)
@@ -29,46 +29,41 @@ CameraToolIcon {
 
     iconId: Data.wbIcon(settings.videoWhiteBalance)
 
-    property list<Item> items: [
+    property CameraToolBarTools tools: CameraToolBarTools {
         CameraLabel {
             height: parent ? parent.height : 0
             text: qsTr("WB")
             verticalAlignment: Text.AlignVCenter
-        },
+        }
+
         CheckButton {
-            normalIcon: "image://theme/" + Data.wbIcon(value)
-            checkedIcon: "image://theme/" + Data.wbSelectedIcon(value)
-            value: WhiteBalance.Auto
-            savedValue: settings.videoWhiteBalance
-            onClicked: settings.videoWhiteBalance = value
-        },
+            iconId: Data.wbIcon(WhiteBalance.Auto)
+            onClicked: settings.videoWhiteBalance = WhiteBalance.Auto
+            checked: settings.videoWhiteBalance == WhiteBalance.Auto
+        }
+
         CheckButton {
-            normalIcon: "image://theme/" + Data.wbIcon(value)
-            checkedIcon: "image://theme/" + Data.wbSelectedIcon(value)
-            value: WhiteBalance.Sunset
-            savedValue: settings.videoWhiteBalance
-            onClicked: settings.videoWhiteBalance = value
-        },
+            iconId: Data.wbIcon(WhiteBalance.Sunset)
+            onClicked: settings.videoWhiteBalance = WhiteBalance.Sunset
+            checked: settings.videoWhiteBalance == WhiteBalance.Sunset
+        }
+
         CheckButton {
-            normalIcon: "image://theme/" + Data.wbIcon(value)
-            checkedIcon: "image://theme/" + Data.wbSelectedIcon(value)
-            value: WhiteBalance.Cloudy
-            savedValue: settings.videoWhiteBalance
-            onClicked: settings.videoWhiteBalance = value
-        },
+            iconId: Data.wbIcon(WhiteBalance.Cloudy)
+            onClicked: settings.videoWhiteBalance = WhiteBalance.Cloudy
+            checked: settings.videoWhiteBalance == WhiteBalance.Cloudy
+        }
+
         CheckButton {
-            normalIcon: "image://theme/" + Data.wbIcon(value)
-            checkedIcon: "image://theme/" + Data.wbSelectedIcon(value)
-            value: WhiteBalance.Flourescent
-            savedValue: settings.videoWhiteBalance
-            onClicked: settings.videoWhiteBalance = value
-        },
+            iconId: Data.wbIcon(WhiteBalance.Flourescent)
+            onClicked: settings.videoWhiteBalance = WhiteBalance.Flourescent
+            checked: settings.videoWhiteBalance == WhiteBalance.Flourescent
+        }
+
         CheckButton {
-            normalIcon: "image://theme/" + Data.wbIcon(value)
-            checkedIcon: "image://theme/" + Data.wbSelectedIcon(value)
-            value: WhiteBalance.Tungsten
-            savedValue: settings.videoWhiteBalance
-            onClicked: settings.videoWhiteBalance = value
+            iconId: Data.wbIcon(WhiteBalance.Tungsten)
+            onClicked: settings.videoWhiteBalance = WhiteBalance.Tungsten
+            checked: settings.videoWhiteBalance == WhiteBalance.Tungsten
         }
-    ]
+    }
 }