OSDN Git Service

QtQuickApp: Tweak template to enable Meego booster
authorKai Koehne <kai.koehne@nokia.com>
Wed, 17 Aug 2011 10:27:24 +0000 (12:27 +0200)
committerEike Ziller <eike.ziller@nokia.com>
Thu, 1 Sep 2011 11:15:12 +0000 (13:15 +0200)
commitd687d11240877f848f3d1c28e2ec70ed4ff555f4
tree94fc34a5b11c46192e82ef2faeb23473299f30cd
parent4848be6fe806f2f0602db4c0414316c387bb2aff
QtQuickApp: Tweak template to enable Meego booster

Add support for the meego booster. This requires
 - Telling qmake to link to right libraries
 - Exporting main method
 - using QApplication, QDeclarativeView objects from cache
 - avoiding QCoreApplication::applicationDirPath()

To keep compatibility, QmlApplicationViewer is still derived from QDeclarativeView.
However, if the app booster is used it merely acts as a proxy to the view from the
cache.

Change-Id: I83e285d9ca3c2cfd86d1711e1fb93c72589ba14d
Reviewed-on: http://codereview.qt.nokia.com/3730
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
share/qtcreator/templates/qtquickapp/app.pro
share/qtcreator/templates/qtquickapp/main.cpp
share/qtcreator/templates/qtquickapp/qmlapplicationviewer/qmlapplicationviewer.cpp
share/qtcreator/templates/qtquickapp/qmlapplicationviewer/qmlapplicationviewer.h
share/qtcreator/templates/qtquickapp/qmlapplicationviewer/qmlapplicationviewer.pri
src/plugins/qt4projectmanager/wizards/qtquickapp.cpp