X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=blobdiff_plain;f=qml%2FFlashButton.qml;h=02029137b628a7beefd2f54f9c6bad295ccd060f;hp=933b21d0a2229369d2f49dafa5e6f89e27c13a8c;hb=HEAD;hpb=aeb9419e5533adab213f17efbc7b504985189772 diff --git a/qml/FlashButton.qml b/qml/FlashButton.qml index 933b21d..0202913 100644 --- a/qml/FlashButton.qml +++ b/qml/FlashButton.qml @@ -26,7 +26,7 @@ import QtCamera 1.0 CameraToolIcon { id: button - iconId: cameraTheme.flashIcon(settings.imageFlashMode) + iconSource: cameraTheme.flashIcon(settings.imageFlashMode) property list toolsModel: [ ToolsModelItem {icon: cameraTheme.flashAutoIconId; value: Flash.Auto }, @@ -46,9 +46,10 @@ CameraToolIcon { model: parent != null && parent.visible ? toolsModel : undefined delegate: CheckButton { - iconId: icon + iconSource: icon onClicked: settings.imageFlashMode = value checked: settings.imageFlashMode == value + visible: !(overlay.cam.quirks.hasQuirk(Quirks.NoRedEyeFlash) && value == Flash.RedEye) } } }