diff options
author | Andrew O'Doherty <andrew.odoherty@qt.io> | 2017-11-01 13:25:47 +0100 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2017-11-15 08:46:34 +0000 |
commit | 514c3404213629814387949f277889c72bb3283f (patch) | |
tree | 03d4d9da9806bd4d579400e0dc7e2f0f39dda097 /tradeshow/iot-sensortag/main.cpp | |
parent | b4092a5ff3120e9472bcb0fb9fe22aa5576c172e (diff) |
iot-sensortag: Adapt demo to the screen size of a smartwatch
mainSmall.qml requires a SwipeView since the smartwatch screen is too small too
display all the charts. The charts have been scaled to smaller size and
some alignment adjustments have been made
Change-Id: I229b6150135c8a1a65bc8114f430904a15397b1e
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Diffstat (limited to 'tradeshow/iot-sensortag/main.cpp')
-rw-r--r-- | tradeshow/iot-sensortag/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tradeshow/iot-sensortag/main.cpp b/tradeshow/iot-sensortag/main.cpp index ba5324b..34cdcfc 100644 --- a/tradeshow/iot-sensortag/main.cpp +++ b/tradeshow/iot-sensortag/main.cpp @@ -167,9 +167,13 @@ int main(int argc, char *argv[]) addressString.append(QLatin1Char('/')); } } +#ifdef UI_WATCH + mainFile = namingScheme + QStringLiteral("/resources/watch/MainWatch.qml"); + styleFile = namingScheme + QStringLiteral("/resources/watch/StyleWatch.qml"); +#else mainFile = namingScheme + QStringLiteral("/resources/small/MainSmall.qml"); styleFile = namingScheme + QStringLiteral("/resources/small/StyleSmall.qml"); - +#endif qmlRegisterSingletonType(styleFile, "Style", 1,0, "Style"); if (qEnvironmentVariableIsSet("QT_IOS_DEMO_NO_FULLSCREEN")) { |