Add missing capability.cpp
[harmattan/cameraplus] / qml / TextSwitch.qml
index 784c8c5..4d95d8b 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 QtQuick 2.0
 
 Item {
-        property alias text: label.text
-        property alias checked: switchComponent.checked
-        width: parent.width
-        height: switchComponent.height
+    property alias text: label.text
+    property alias checked: switchComponent.checked
+    width: parent.width
+    height: switchComponent.height
 
-        Text {
-                property Style platformStyle: LabelStyle {}
+    CameraLabel {
+        id: label
+        anchors.left: parent.left
+        wrapMode: Text.Wrap
+    }
 
-                id: label
-                anchors.left: parent.left
-                font.family: platformStyle.fontFamily
-                font.pixelSize: platformStyle.fontPixelSize
-                color: platformStyle.textColor
-                wrapMode: Text.Wrap
-        }
-
-        Switch {
-                id: switchComponent
-                anchors.right: parent.right
-        }
+    CameraSwitch {
+        id: switchComponent
+        anchors.right: parent.right
+    }
 }