--- /dev/null
+load(qt_build_config)
+
+MODULE_VERSION = 5.2.0
<RCC>
<qresource prefix="/">
<file>main.qml</file>
- <file>images/mainmenu.png</file>
+ <file alias="icons/mainmenu.png">shared/res/screen-density-xhigh/mainmenu.png</file>
</qresource>
</RCC>
TEMPLATE=app
-tizen {
- QMAKE_LFLAGS+=-pie -rdynamic
- TARGET=QtHelloWorld.exe
-} else {
- TARGET=QtHelloWorld
-}
-
-#under /opt/usr/apps/$APPID application will be installed
-#you also need to add this in tizen/qt.conf file in Prefix entry
-APPID=QtHelloWrl
+TARGET=QtHelloWorld
QT += qml quick
OTHER_FILES += \
main.qml \
- tizen/qt.conf
+ manifest.xml
SOURCES += \
main.cpp
RESOURCES += helloworld-default.qrc
-tizen: RESOURCES += helloworld-tizen.qrc
-
-
-
-
+tizen {
+ tizen_shared.files = shared/res
+ CONFIG += TIZEN_STANDALONE_PACKAGE
+ TIZEN_BUNDLED_QT_LIBS=Qt5Core Qt5DBus Qt5Qml Qt5Quick Qt5Widgets Qt5Gui Qt5Network
+ load(tizen_app)
+}
#include <QGuiApplication>
#include <QQuickWindow>
-#include <QtDebug>
#include <QtGlobal>
#include <QQmlApplicationEngine>
-#include <QScreen>
#include <QQuickItem>
+
extern "C" int OspMain(int argc, char *argv[])
{
+
#ifdef Q_OS_TIZEN_SIMULATOR
- qputenv("QML_BAD_GUI_RENDER_LOOP","1");
+ qputenv("QSG_RENDER_LOOP","windows");
#endif
qputenv("QT_QUICK_CONTROLS_STYLE","Tizen");
QGuiApplication app(argc,argv);
QQmlApplicationEngine engine(QUrl("qrc:///main.qml"));
- QQuickWindow *window = qobject_cast<QQuickWindow *>(engine.rootObjects().at(0));
+ QQuickWindow *window = 0;
+ if (engine.rootObjects().count() > 0)
+ window = qobject_cast<QQuickWindow *>(engine.rootObjects().at(0));
if (window) {
- window->setIcon(QIcon(":/images/mainmenu.png"));
+ window->setIcon(QIcon(":/icons/mainmenu.png"));
window->show();
return app.exec();
} else {
backAction.onTriggered: Qt.quit()
}
-
}
--- /dev/null
+<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>8Gan0fwnPB</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements/>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <Privileges/>
+ <UiApp Main="True" MenuIconVisible="True" Name="QtHelloWorld" LaunchingHistoryVisible="True">
+ <UiScalability CoordinateSystem="Logical" LogicalCoordinate="720" BaseScreenSize="Normal"/>
+ <UiTheme SystemTheme="White"/>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">QtHelloWorld</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu">mainmenu.png</Icon>
+ </Icons>
+ <LaunchConditions/>
+ </UiApp>
+ </Apps>
+</Manifest>
+++ /dev/null
-[Paths]
-Prefix=/opt/usr/apps/QtHelloWrl
-Libraries=lib
-Binaries=bin
-Plugins=data/plugins
-Qml2Imports=data/qml
extern "C" int OspMain(int argc, char *argv[])
{
#ifdef Q_OS_TIZEN_SIMULATOR
- qputenv("QML_BAD_GUI_RENDER_LOOP","1");
+ qputenv("QSG_RENDER_LOOP","windows");
#endif
qputenv("QT_QUICK_CONTROLS_STYLE","Tizen");
QGuiApplication app(argc,argv);
--- /dev/null
+<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>QtSensorsC</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements/>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <Privileges/>
+ <UiApp Main="True" MenuIconVisible="True" Name="QtSensorChecker" LaunchingHistoryVisible="True">
+ <UiScalability CoordinateSystem="Logical" LogicalCoordinate="720" BaseScreenSize="Normal"/>
+ <UiTheme SystemTheme="White"/>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">Qt Sensors</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu">mainmenu.png</Icon>
+ </Icons>
+ <LaunchConditions/>
+ </UiApp>
+ </Apps>
+</Manifest>
<qresource prefix="/">
<file>main.qml</file>
<file>content/SensorInformationItem.qml</file>
- <file>images/mainmenu.png</file>
+ <file alias="images/mainmenu.png">shared/res/screen-density-xhigh/mainmenu.png</file>
</qresource>
</RCC>
TEMPLATE=app
-tizen {
- QMAKE_LFLAGS+=-pie -rdynamic
- TARGET=QtSensorChecker.exe
-} else {
- TARGET=QtSensorChecker
-}
+TARGET=QtSensorChecker
QT += qml quick
OTHER_FILES += \
main.qml \
- tizen/qt.conf \
- content/SensorInformationItem.qml
+ content/SensorInformationItem.qml \
+ manifest.xml
SOURCES += \
main.cpp
-
RESOURCES += sensor-checker-default.qrc
-tizen: RESOURCES += sensor-checker-tizen.qrc
-
+tizen {
+ tizen_shared.files = shared/res
+ CONFIG += TIZEN_STANDALONE_PACKAGE
+ TIZEN_BUNDLED_QT_LIBS=Qt5Core Qt5DBus Qt5Qml Qt5Quick Qt5Widgets Qt5Gui Qt5Network Qt5Sensors
+ load(tizen_app)
+}
+++ /dev/null
-[Paths]
-Prefix=/opt/usr/apps/QtSensorsC
-Libraries=lib
-Binaries=bin
-Plugins=data/plugins
-Qml2Imports=data/qml
extern "C" int OspMain(int argc, char *argv[])
{
#ifdef Q_OS_TIZEN_SIMULATOR
- qputenv("QML_BAD_GUI_RENDER_LOOP","1");
+ qputenv("QSG_RENDER_LOOP","windows");
#endif
qputenv("QT_QUICK_CONTROLS_STYLE","Tizen");
QGuiApplication app(argc,argv);
--- /dev/null
+<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>QtControls</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements/>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <Privileges/>
+ <UiApp Main="True" MenuIconVisible="True" Name="QtControls" LaunchingHistoryVisible="True">
+ <UiScalability CoordinateSystem="Logical" LogicalCoordinate="720" BaseScreenSize="Normal"/>
+ <UiTheme SystemTheme="White"/>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">Qt Controls</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu">mainmenu.png</Icon>
+ </Icons>
+ <LaunchConditions/>
+ </UiApp>
+ </Apps>
+</Manifest>
+++ /dev/null
-[Paths]
-Prefix=/opt/usr/apps/QtControls
-Libraries=lib
-Binaries=bin
-Plugins=data/plugins
-Qml2Imports=data/qml
<file>content/DateTimeEditPage.qml</file>
<file>content/PageCurl.qml</file>
<file>content/ConfigurationPage.qml</file>
- <file>images/mainmenu.png</file>
+ <file alias="images/mainmenu.png">shared/res/screen-density-xhigh/mainmenu.png</file>
</qresource>
</RCC>
TEMPLATE=app
-tizen {
- QMAKE_LFLAGS+=-pie -rdynamic
- TARGET=QtControls.exe
-} else {
- TARGET=QtControls
-}
+TARGET=QtControls
+
QT += qml quick
OTHER_FILES += \
content/DateTimeEditPage.qml\
content/PageCurl.qml \
content/ConfigurationPage.qml \
- tizen/qt.conf
+ tizen/qt.conf \
+ manifest.xml
SOURCES += \
RESOURCES += touch-default.qrc
-tizen: RESOURCES += touch-tizen.qrc
-
+tizen {
+ tizen_shared.files = shared/res
+ CONFIG += TIZEN_STANDALONE_PACKAGE
+ TIZEN_BUNDLED_QT_LIBS=Qt5Core Qt5DBus Qt5Qml Qt5Quick Qt5Widgets Qt5Gui Qt5Network
+ load(tizen_app)
+}
-#load(qt_parts)
-TEMPLATE=subdirs
-SUBDIRS += src examples tools
+load(qt_parts)