Replace @IMPORT_QT_QUICK@ with "import QtQuick 2.0"
authorMohammed Sameer <msameer@foolab.org>
Fri, 26 Jul 2013 17:36:12 +0000 (20:36 +0300)
committerMohammed Sameer <msameer@foolab.org>
Fri, 26 Jul 2013 17:36:12 +0000 (20:36 +0300)
QFSFileEngine and QAbstractFileEngineHandler are not available in Qt5
We will hardcode import QtQuick 2.0 to make Qt5 happy and will replace
it with QtQuick 1.1 when not using Qt5

42 files changed:
qml/CameraSettings.qml
qml/CameraToolBar.qml
qml/CameraView.qml
qml/CaptureButton.qml
qml/CheckButton.qml
qml/FlashButton.qml
qml/FocusReticle.qml
qml/ImageColorFilterButton.qml
qml/ImageEvCompButton.qml
qml/ImageIsoButton.qml
qml/ImageOverlay.qml
qml/ImageResolutionSettings.qml
qml/ImageSceneButton.qml
qml/ImageSettings.qml
qml/ImageWhiteBalanceButton.qml
qml/Indicator.qml
qml/ModeButton.qml
qml/ModeController.qml
qml/PipelineManager.qml
qml/PostCaptureItem.qml
qml/PostCaptureView.qml
qml/PreviewImage.qml
qml/RecordingDurationLabel.qml
qml/SectionHeader.qml
qml/SettingsView.qml
qml/Standby.qml
qml/TextSwitch.qml
qml/VideoColorFilterButton.qml
qml/VideoEvCompButton.qml
qml/VideoMuteButton.qml
qml/VideoOverlay.qml
qml/VideoPlayerPage.qml
qml/VideoResolutionSettings.qml
qml/VideoSceneButton.qml
qml/VideoSettings.qml
qml/VideoTorchButton.qml
qml/VideoWhiteBalanceButton.qml
qml/ZoomCaptureButton.qml
qml/ZoomCaptureCancel.qml
qml/ZoomSlider.qml
qml/main.qml
src/qmlfileengine.cpp

index 062044c..44c86ee 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 
 Column {
     id: col
index f75a789..a31de13 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import "CameraToolBar.js" as Layout
 
 Rectangle {
index ac4c778..813a098 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import CameraPlus 1.0
 
index 9f0dde5..090bb64 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 
 Item {
     id: button
index f00fff8..b2ab3dc 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 
 CameraToolIcon {
     id: button
index b6ae252..ba62c21 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import "data.js" as Data
 
index c086ec7..bf37899 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import CameraPlus 1.0
 
index 2b9eb5a..7d35ad7 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import "data.js" as Data
 
index 02b0f0d..3761a70 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 
 CameraToolIcon {
index a4d5f2f..099f9d6 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import "data.js" as Data
 
index 7589e53..b744fdb 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import CameraPlus 1.0
 import "data.js" as Data
index 17ad2cf..63ce485 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 
 Column {
     spacing: 10
index 5750f58..2393e6e 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import "data.js" as Data
 
index a5b07fb..3fb37ed 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 
 Flickable {
index 2cbf7c5..808b854 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import "data.js" as Data
 
index da59619..192afff 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 
 Image {
         anchors.left: parent.left
index 0063e7e..ea959bd 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 
 CaptureButton {
index faa80db..e751ef0 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 
 Item {
index 04294ba..f6b82d9 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import CameraPlus 1.0
 
index 4d925b0..824f851 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import CameraPlus 1.0
 
 Item {
index ea5b700..75f4371 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import CameraPlus 1.0
 import QtCamera 1.0
 
index 4850bd2..e3f7880 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 
 Image {
index 4bd5cb7..8362195 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 
 Rectangle {
     property int duration
index 0fc9e47..59a46f8 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 
 Row {
     id: root
index 40ac8fd..0176027 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import CameraPlus 1.0
 
index 845b489..f3f0229 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 
 Rectangle {
     id: standby
index c19665d..4d95d8b 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 
 Item {
     property alias text: label.text
index 46a5bb4..60f702a 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import "data.js" as Data
 
index 6721b4d..5306a3b 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 
 CameraToolIcon {
index a5728ce..f698dcb 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 
 CameraToolIcon {
     iconSource: settings.videoMuted ? "image://theme/icon-m-toolbar-volume-off-white-selected" :
index 07e55f8..d5d2ab0 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import CameraPlus 1.0
 import "data.js" as Data
index 2b700c0..535510e 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import CameraPlus 1.0
 import QtCamera 1.0
 import QtCameraExtras 1.0
index 9be1a10..5100116 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 
 Column {
     spacing: 10
index 4d59a24..2ab0bc8 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import "data.js" as Data
 
index 7df57e0..7b740e3 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 
 Flickable {
index 05d8290..dda5a2b 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 
 CameraToolIcon {
index d5e73d3..7e8eca0 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import "data.js" as Data
 
index 54ef205..b3e531e 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import CameraPlus 1.0
 
 Item {
index 25fc786..b17d1a5 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import CameraPlus 1.0
 
 MouseArea {
index 92fd688..0f0b74a 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 
 CameraSlider {
index efae4d4..47cc439 100644 (file)
@@ -20,7 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-@IMPORT_QT_QUICK@
+import QtQuick 2.0
 import QtCamera 1.0
 import CameraPlus 1.0
 import QtMobility.location 1.2
index 1656f42..223c75a 100644 (file)
@@ -55,7 +55,7 @@ bool QmlFileEngine::open(QIODevice::OpenMode flags) {
     m_data = QByteArray::fromRawData((const char *)m_res->data(), m_res->size());
   }
 
-  m_data.replace("@IMPORT_QT_QUICK@", "import QtQuick 1.1");
+  m_data.replace("import QtQuick 2.0", "import QtQuick 1.1");
 
   return true;
 }