Reworked CameraToolIcon to not use meego bits
authorMohammed Sameer <msameer@foolab.org>
Sun, 15 Sep 2013 16:24:09 +0000 (19:24 +0300)
committerMohammed Sameer <msameer@foolab.org>
Sun, 15 Sep 2013 16:24:09 +0000 (19:24 +0300)
qml/harmattan/CameraToolIcon.qml

index 1385924..29bc3ba 100644 (file)
  */
 
 import QtQuick 1.1
-import com.nokia.meego 1.1
 
-ToolIcon {
+Item {
+    signal clicked
+    width: 80
+    height: 64
 
+    property url iconSource
+
+    MouseArea {
+        anchors.fill: parent
+        onClicked: parent.clicked()
+    }
+
+    Image {
+        anchors.centerIn: parent
+        asynchronous: true
+        source: parent.iconSource
+    }
 }