Move QuillItem to harmattan specific components.
authorMohammed Sameer <msameer@foolab.org>
Mon, 22 Jul 2013 22:38:01 +0000 (01:38 +0300)
committerMohammed Sameer <msameer@foolab.org>
Mon, 22 Jul 2013 22:38:01 +0000 (01:38 +0300)
qml/PostCaptureItem.qml
qml/harmattan/FullScreenThumbnail.qml [new file with mode: 0644]
qml/harmattan/harmattan.qrc

index 7152eee..4d925b0 100644 (file)
@@ -57,12 +57,14 @@ Item {
     }
 
 // TODO: rotation
-    QuillItem {
+    FullScreenThumbnail {
         id: image
+        source: itemData.url
+        mimeType: itemData.mimeType
+
         width: parent.width - 10
         height: parent.height
         anchors.centerIn: parent
-        Component.onCompleted: initialize(itemData.url, itemData.mimetype)
         visible: loader.source == ""
 
         MouseArea {
diff --git a/qml/harmattan/FullScreenThumbnail.qml b/qml/harmattan/FullScreenThumbnail.qml
new file mode 100644 (file)
index 0000000..fb6def1
--- /dev/null
@@ -0,0 +1,31 @@
+// -*- qml -*-
+
+/*!
+ * This file is part of CameraPlus.
+ *
+ * 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
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+import QtQuick 1.1
+import com.nokia.meego 1.1
+import CameraPlus 1.0
+
+QuillItem {
+    property url source
+    property string mimeType
+    Component.onCompleted: initialize(source, mimeType)
+}
index ad84166..0c58291 100644 (file)
@@ -14,5 +14,6 @@
        <file>CameraButtonStyle.qml</file>
        <file>CameraMenu.qml</file>
        <file>CameraMenuAction.qml</file>
+       <file>FullScreenThumbnail.qml</file>
     </qresource>
 </RCC>