diff options
author | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2017-09-25 14:20:09 +0200 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2017-09-27 06:35:33 +0000 |
commit | 231b31ebec86078df293fbf9e265c5223d9e703b (patch) | |
tree | 52ffacf75dd822a139ab10e63978ea88f544b69e | |
parent | a5e5b43bbedf11fea87a96d4d1635b94e08a6446 (diff) |
iot-sensortag: Show fullscreen on Android
Change-Id: I14a2e55adea3072c23cd25b27d5f65c08a176857
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r-- | tradeshow/iot-sensortag/main.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tradeshow/iot-sensortag/main.cpp b/tradeshow/iot-sensortag/main.cpp index 555d1a8..5dd9a7e 100644 --- a/tradeshow/iot-sensortag/main.cpp +++ b/tradeshow/iot-sensortag/main.cpp @@ -129,10 +129,15 @@ int main(int argc, char *argv[]) QString mainFile; QUrl styleFile; - QString uiVariant; - bool fullScreen; - int appWidth = 0; - int appHeight = 0; + QString uiVariant = QStringLiteral("small"); + bool fullScreen = +#ifdef Q_OS_ANDROID + true; +#else + false; +#endif + int appWidth = 1920; + int appHeight = 1080; QScreen* scr = qApp->screens().at(0); @@ -151,11 +156,6 @@ int main(int argc, char *argv[]) mainFile = namingScheme + QStringLiteral("/resources/small/MainSmall.qml"); styleFile = namingScheme + QStringLiteral("/resources/small/StyleSmall.qml"); - uiVariant = "small"; - fullScreen = false; - appWidth = 1920; - appHeight = 1080; - qmlRegisterSingletonType(styleFile, "Style", 1,0, "Style"); if (qEnvironmentVariableIsSet("QT_IOS_DEMO_NO_FULLSCREEN")) { |