From 8a3b1e7e658ab0aa0288b1501b09f534e660c9ae Mon Sep 17 00:00:00 2001 From: Mohammed Sameer Date: Tue, 23 Jul 2013 01:38:01 +0300 Subject: [PATCH] Move QuillItem to harmattan specific components. --- qml/PostCaptureItem.qml | 6 ++++-- qml/harmattan/FullScreenThumbnail.qml | 31 +++++++++++++++++++++++++++ qml/harmattan/harmattan.qrc | 1 + 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 qml/harmattan/FullScreenThumbnail.qml diff --git a/qml/PostCaptureItem.qml b/qml/PostCaptureItem.qml index 7152eee..4d925b0 100644 --- a/qml/PostCaptureItem.qml +++ b/qml/PostCaptureItem.qml @@ -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 index 0000000..fb6def1 --- /dev/null +++ b/qml/harmattan/FullScreenThumbnail.qml @@ -0,0 +1,31 @@ +// -*- qml -*- + +/*! + * This file is part of CameraPlus. + * + * Copyright (C) 2012-2013 Mohammed Sameer + * + * 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) +} diff --git a/qml/harmattan/harmattan.qrc b/qml/harmattan/harmattan.qrc index ad84166..0c58291 100644 --- a/qml/harmattan/harmattan.qrc +++ b/qml/harmattan/harmattan.qrc @@ -14,5 +14,6 @@ CameraButtonStyle.qml CameraMenu.qml CameraMenuAction.qml + FullScreenThumbnail.qml -- 2.25.1