X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=blobdiff_plain;f=qml%2FVideoWhiteBalanceButton.qml;h=33ab5eb4707e0f415ebe83a3b8c7b9d82c3cf47f;hp=5e107206d4404eb091459208d9071b0907688e9e;hb=8828a801c6a29497e298ef0587424bef10beeaa0;hpb=896d397cb4c88deb70a34d0e757d635c3dcd4c91 diff --git a/qml/VideoWhiteBalanceButton.qml b/qml/VideoWhiteBalanceButton.qml index 5e10720..33ab5eb 100644 --- a/qml/VideoWhiteBalanceButton.qml +++ b/qml/VideoWhiteBalanceButton.qml @@ -3,7 +3,7 @@ /*! * This file is part of CameraPlus. * - * Copyright (C) 2012 Mohammed Sameer + * Copyright (C) 2012-2013 Mohammed Sameer * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -26,49 +26,50 @@ import QtCamera 1.0 import "data.js" as Data ToolIcon { - id: button + id: button - iconSource: "image://theme/" + Data.wbIcon(settings.videoWhiteBalance); + iconSource: "image://theme/" + Data.wbIcon(settings.videoWhiteBalance) - property list items: [ - Label { - 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; - }, - CheckButton { - normalIcon: "image://theme/" + Data.wbIcon(value); - checkedIcon: "image://theme/" + Data.wbSelectedIcon(value); - value: WhiteBalance.Sunset - savedValue: settings.videoWhiteBalance - onClicked: settings.videoWhiteBalance = value; - }, - CheckButton { - normalIcon: "image://theme/" + Data.wbIcon(value); - checkedIcon: "image://theme/" + Data.wbSelectedIcon(value); - value: WhiteBalance.Cloudy - savedValue: settings.videoWhiteBalance - onClicked: settings.videoWhiteBalance = value; - }, - CheckButton { - normalIcon: "image://theme/" + Data.wbIcon(value); - checkedIcon: "image://theme/" + Data.wbSelectedIcon(value); - value: WhiteBalance.Flourescent - savedValue: settings.videoWhiteBalance - onClicked: settings.videoWhiteBalance = value; - }, - CheckButton { - normalIcon: "image://theme/" + Data.wbIcon(value); - checkedIcon: "image://theme/" + Data.wbSelectedIcon(value); - value: WhiteBalance.Tungsten - savedValue: settings.videoWhiteBalance - onClicked: settings.videoWhiteBalance = value; - }] + property list items: [ + Label { + 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 + }, + CheckButton { + normalIcon: "image://theme/" + Data.wbIcon(value) + checkedIcon: "image://theme/" + Data.wbSelectedIcon(value) + value: WhiteBalance.Sunset + savedValue: settings.videoWhiteBalance + onClicked: settings.videoWhiteBalance = value + }, + CheckButton { + normalIcon: "image://theme/" + Data.wbIcon(value) + checkedIcon: "image://theme/" + Data.wbSelectedIcon(value) + value: WhiteBalance.Cloudy + savedValue: settings.videoWhiteBalance + onClicked: settings.videoWhiteBalance = value + }, + CheckButton { + normalIcon: "image://theme/" + Data.wbIcon(value) + checkedIcon: "image://theme/" + Data.wbSelectedIcon(value) + value: WhiteBalance.Flourescent + savedValue: settings.videoWhiteBalance + onClicked: settings.videoWhiteBalance = value + }, + CheckButton { + normalIcon: "image://theme/" + Data.wbIcon(value) + checkedIcon: "image://theme/" + Data.wbSelectedIcon(value) + value: WhiteBalance.Tungsten + savedValue: settings.videoWhiteBalance + onClicked: settings.videoWhiteBalance = value + } + ] }