Kill com.nokia.meego importing in the ui.
[harmattan/cameraplus] / qml / ImageEvCompButton.qml
index 9450e02..02b0f0d 100644 (file)
@@ -3,7 +3,7 @@
 /*!
  * This file is part of CameraPlus.
  *
- * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-import QtQuick 1.1
-import com.nokia.meego 1.1
+@IMPORT_QT_QUICK@
 import QtCamera 1.0
 
-ToolIcon {
-        id: button
+CameraToolIcon {
+    id: button
 
-        iconSource: settings.imageEvComp == 0 ? "image://theme/icon-m-camera-manual-exposure" : ""
+    iconSource: settings.imageEvComp == 0 ? "image://theme/icon-m-camera-manual-exposure" : ""
 
-        Label {
-                anchors.fill: parent
-                verticalAlignment: Text.AlignVCenter
-                visible: settings.imageEvComp != 0
-                text: settings.imageEvComp == 0 ? "" : settings.imageEvComp.toFixed(1);
-        }
+    CameraLabel {
+        anchors.fill: parent
+        verticalAlignment: Text.AlignVCenter
+        visible: settings.imageEvComp != 0
+        text: settings.imageEvComp == 0 ? "" : settings.imageEvComp.toFixed(1)
+    }
 
-        property list<Item> items: [
-                Label {
-                        height: parent ? parent.height : 0
-                        text: qsTr("EV");
-                        verticalAlignment: Text.AlignVCenter
-                },
-                Slider {
-                        id: slider
-                        width: 500
-                        orientation: Qt.Horizontal
-                        minimumValue: cam.evComp.minimum
-                        maximumValue: cam.evComp.maximum
-                        value: settings.imageEvComp
-                        valueIndicatorVisible: true
-                        stepSize: 0.1
-                        onValueChanged: settings.imageEvComp = value.toFixed(1);
-                        Component.onCompleted: { slider.value = settings.imageEvComp.toFixed(1); }
-                }]
+    property list<Item> items: [
+        CameraLabel {
+            height: parent ? parent.height : 0
+            text: qsTr("EV")
+            verticalAlignment: Text.AlignVCenter
+        },
+        CameraSlider {
+            id: slider
+            width: 500
+            orientation: Qt.Horizontal
+            minimumValue: cam ? cam.evComp.minimum : 0
+            maximumValue: cam ? cam.evComp.maximum : 0
+            value: settings.imageEvComp
+            valueIndicatorVisible: true
+            stepSize: 0.1
+            onValueChanged: settings.imageEvComp = value.toFixed(1)
+            Component.onCompleted: { slider.value = settings.imageEvComp.toFixed(1) }
+        }
+    ]
 }