Fixed image preview
[harmattan/cameraplus] / qml / CheckButton.qml
index 1fba1b4..08bc01c 100644 (file)
 import QtQuick 1.1
 import com.nokia.meego 1.1
 
-Button {
+ToolIcon {
         id: button
         property string normalIcon: ""
         property string checkedIcon: ""
         property int value: -1
-        property bool doClose: true
         property int savedValue: -1
 
-        width: visible ? 56 : 0
-        height: visible ? 56 : 0
-        iconSource: !visible ? "" : savedValue == value ? checkedIcon : normalIcon
-
-        onClicked: {
-                if (doClose) {
-                        close();
-                }
-        }
+        iconSource: savedValue == value ? checkedIcon : normalIcon
 }