aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/wearable
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2021-08-12 14:39:51 +0200
committerMitch Curtis <mitch.curtis@qt.io>2021-08-16 12:52:59 +0200
commit809339d1484cf556512534367b8170bc26baf072 (patch)
tree12871313b658f36d058b5ef25af1e247e9c46ce9 /examples/quickcontrols2/wearable
parentb01b4f00eae8022c6a97d90f54dac395144ae095 (diff)
Remove qtquickcontrols2 sources and explain where they wentHEADdev
Now that qtquickcontrols2 has been merged into qtdeclarative, we should make it obvious that this repo should no longer be used, by preventing it from being built. Task-number: QTBUG-95173 Pick-to: 6.2 Change-Id: I95bd6a214f3d75a865ab163ee0a1f9ffbeb7a051 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/quickcontrols2/wearable')
-rw-r--r--examples/quickcontrols2/wearable/CMakeLists.txt210
-rw-r--r--examples/quickcontrols2/wearable/doc/images/qtquickcontrols2-wearable.pngbin108926 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/doc/src/qtquickcontrols2-wearable.qdoc191
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36/alarms.pngbin510 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36/fitness.pngbin443 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36/navigation.pngbin474 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36/notifications.pngbin559 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36/settings.pngbin544 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36/weather.pngbin427 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36/worldclock.pngbin470 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36@2/alarms.pngbin871 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36@2/fitness.pngbin743 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36@2/navigation.pngbin803 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36@2/notifications.pngbin1016 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36@2/settings.pngbin802 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36@2/weather.pngbin747 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36@2/worldclock.pngbin817 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/index.theme14
-rw-r--r--examples/quickcontrols2/wearable/images/back.pngbin834 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/back@2x.pngbin528 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/back@3x.pngbin788 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/back@4x.pngbin1002 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/background-dark.pngbin28157 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/background-light.pngbin343879 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/home.pngbin856 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/home@2x.pngbin653 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/home@3x.pngbin909 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/home@4x.pngbin1167 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Alarms/AlarmsPage.qml114
-rw-r--r--examples/quickcontrols2/wearable/qml/DemoMode.qml258
-rw-r--r--examples/quickcontrols2/wearable/qml/DemoModeIndicator.qml94
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml131
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/fitness.js65
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark.pngbin1400 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark@2x.pngbin2260 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light.pngbin1216 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light@2x.pngbin2473 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark.pngbin1408 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark@2x.pngbin2215 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light.pngbin1231 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light@2x.pngbin2308 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/LauncherPage.qml189
-rw-r--r--examples/quickcontrols2/wearable/qml/NaviButton.qml83
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/NavigationPage.qml120
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/RouteElement.qml95
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/end.pngbin1515 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/end@2x.pngbin1383 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark.pngbin1670 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark@2x.pngbin1191 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light.pngbin1280 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light@2x.pngbin1191 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/marker.pngbin1515 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark.pngbin474 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark@2x.pngbin802 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light.pngbin474 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light@2x.pngbin803 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark.pngbin1670 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark@2x.pngbin1176 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light.pngbin1246 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light@2x.pngbin1176 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/start.pngbin1515 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/start@2x.pngbin1364 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark.pngbin1112 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark@2x.pngbin654 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/straight-light.pngbin896 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/straight-light@2x.pngbin654 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/uturn.pngbin1833 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/uturn@2x.pngbin4780 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/navigation.js131
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/walk_route.json1
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/NotificationsPage.qml112
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark.pngbin1848 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark@2x.pngbin1540 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light.pngbin1565 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light@2x.pngbin1540 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark.pngbin1622 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark@2x.pngbin1367 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light.pngbin1367 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light@2x.pngbin1367 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark.pngbin1994 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark@2x.pngbin1374 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light.pngbin1976 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light@2x.pngbin1374 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/notifications.js72
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/SettingsPage.qml176
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark.pngbin793 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark@2x.pngbin2668 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light.pngbin1678 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light@2x.pngbin2718 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark.pngbin1276 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark@2x.pngbin1127 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/brightness-light.pngbin1277 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/brightness-light@2x.pngbin1127 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark.pngbin797 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark@2x.pngbin1154 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light.pngbin797 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light@2x.pngbin1150 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white.pngbin576 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white@2x.pngbin1069 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/demo-mode.svg93
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/theme-dark.pngbin1129 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/theme-dark@2x.pngbin2002 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/theme-light.pngbin1138 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/theme-light@2x.pngbin2004 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/theme.svg84
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark.pngbin1476 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark@2x.pngbin1072 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/wifi-light.pngbin1477 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/wifi-light@2x.pngbin1072 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Style/PageIndicator.qml89
-rw-r--r--examples/quickcontrols2/wearable/qml/Style/Slider.qml86
-rw-r--r--examples/quickcontrols2/wearable/qml/Style/Switch.qml86
-rw-r--r--examples/quickcontrols2/wearable/qml/Style/UIStyle.qml107
-rw-r--r--examples/quickcontrols2/wearable/qml/Style/qmldir1
-rw-r--r--examples/quickcontrols2/wearable/qml/SwipeViewPage.qml60
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml297
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark.pngbin1673 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark@2x.pngbin1440 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/humidity-light.pngbin1619 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/humidity-light@2x.pngbin1440 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark.pngbin1506 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark@2x.pngbin1542 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/pressure-light.pngbin1508 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/pressure-light@2x.pngbin1543 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark.pngbin1813 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark@2x.pngbin1235 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light.pngbin1703 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light@2x.pngbin1235 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark.pngbin1809 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark@2x.pngbin1267 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunset-light.pngbin1755 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunset-light@2x.pngbin1267 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark.pngbin1232 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark@2x.pngbin939 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/temperature-light.pngbin1147 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/temperature-light@2x.pngbin939 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/wind-dark.pngbin1715 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/wind-dark@2x.pngbin1106 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/wind-light.pngbin1609 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/wind-light@2x.pngbin1106 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/weather.js77
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/weather.json1
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/Clock.qml188
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/WorldClockPage.qml107
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/center.pngbin691 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/center@2x.pngbin1796 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night.pngbin24236 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night@2x.pngbin64764 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/clock.pngbin11173 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/second.pngbin158 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/second@2x.pngbin115 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial.pngbin5078 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial@2x.pngbin10146 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour.pngbin181 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour@2x.pngbin269 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute.pngbin187 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute@2x.pngbin371 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial.pngbin4970 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial@2x.pngbin13594 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour.pngbin260 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour@2x.pngbin492 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute.pngbin187 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute@2x.pngbin365 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissseconds.pngbin1120 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/wearable.cpp75
-rw-r--r--examples/quickcontrols2/wearable/wearable.pro12
-rw-r--r--examples/quickcontrols2/wearable/wearable.qml140
-rw-r--r--examples/quickcontrols2/wearable/wearable.qrc155
168 files changed, 0 insertions, 3714 deletions
diff --git a/examples/quickcontrols2/wearable/CMakeLists.txt b/examples/quickcontrols2/wearable/CMakeLists.txt
deleted file mode 100644
index 1b9ad7ff..00000000
--- a/examples/quickcontrols2/wearable/CMakeLists.txt
+++ /dev/null
@@ -1,210 +0,0 @@
-# Generated from wearable.pro.
-
-cmake_minimum_required(VERSION 3.14)
-project(wearable LANGUAGES CXX)
-
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTORCC ON)
-set(CMAKE_AUTOUIC ON)
-
-if(NOT DEFINED INSTALL_EXAMPLESDIR)
- set(INSTALL_EXAMPLESDIR "examples")
-endif()
-
-set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/quickcontrols2/wearable")
-
-find_package(Qt6 COMPONENTS Core)
-find_package(Qt6 COMPONENTS Gui)
-find_package(Qt6 COMPONENTS Quick)
-find_package(Qt6 COMPONENTS QuickControls2)
-
-qt_add_executable(wearable
- wearable.cpp
-)
-set_target_properties(wearable PROPERTIES
- WIN32_EXECUTABLE TRUE
- MACOSX_BUNDLE TRUE
-)
-target_link_libraries(wearable PUBLIC
- Qt::Core
- Qt::Gui
- Qt::Quick
- Qt::QuickControls2
-)
-# special case begin
-if(UNIX AND NOT APPLE AND CMAKE_CROSSCOMPILING)
- find_package(Qt6 COMPONENTS QuickTemplates2)
- # Work around QTBUG-86533
- target_link_libraries(wearable PRIVATE Qt::QuickTemplates2)
-endif()
-# special case end
-
-# Resources:
-set(wearable_resource_files
- "icons/wearable/36x36/alarms.png"
- "icons/wearable/36x36/fitness.png"
- "icons/wearable/36x36/navigation.png"
- "icons/wearable/36x36/notifications.png"
- "icons/wearable/36x36/settings.png"
- "icons/wearable/36x36/weather.png"
- "icons/wearable/36x36/worldclock.png"
- "icons/wearable/36x36@2/alarms.png"
- "icons/wearable/36x36@2/fitness.png"
- "icons/wearable/36x36@2/navigation.png"
- "icons/wearable/36x36@2/notifications.png"
- "icons/wearable/36x36@2/settings.png"
- "icons/wearable/36x36@2/weather.png"
- "icons/wearable/36x36@2/worldclock.png"
- "icons/wearable/index.theme"
- "images/back.png"
- "images/back@2x.png"
- "images/background-dark.png"
- "images/background-light.png"
- "images/home.png"
- "images/home@2x.png"
- "qml/Alarms/AlarmsPage.qml"
- "qml/DemoMode.qml"
- "qml/DemoModeIndicator.qml"
- "qml/Fitness/FitnessPage.qml"
- "qml/Fitness/fitness.js"
- "qml/Fitness/images/man-running-dark.png"
- "qml/Fitness/images/man-running-dark@2x.png"
- "qml/Fitness/images/man-running-light.png"
- "qml/Fitness/images/man-running-light@2x.png"
- "qml/Fitness/images/man-walking-dark.png"
- "qml/Fitness/images/man-walking-dark@2x.png"
- "qml/Fitness/images/man-walking-light.png"
- "qml/Fitness/images/man-walking-light@2x.png"
- "qml/LauncherPage.qml"
- "qml/NaviButton.qml"
- "qml/Navigation/NavigationPage.qml"
- "qml/Navigation/RouteElement.qml"
- "qml/Navigation/images/end.png"
- "qml/Navigation/images/end@2x.png"
- "qml/Navigation/images/leftturn-dark.png"
- "qml/Navigation/images/leftturn-dark@2x.png"
- "qml/Navigation/images/leftturn-light.png"
- "qml/Navigation/images/leftturn-light@2x.png"
- "qml/Navigation/images/navigation-dark.png"
- "qml/Navigation/images/navigation-dark@2x.png"
- "qml/Navigation/images/navigation-light.png"
- "qml/Navigation/images/navigation-light@2x.png"
- "qml/Navigation/images/rightturn-dark.png"
- "qml/Navigation/images/rightturn-dark@2x.png"
- "qml/Navigation/images/rightturn-light.png"
- "qml/Navigation/images/rightturn-light@2x.png"
- "qml/Navigation/images/start.png"
- "qml/Navigation/images/start@2x.png"
- "qml/Navigation/images/straight-dark.png"
- "qml/Navigation/images/straight-dark@2x.png"
- "qml/Navigation/images/straight-light.png"
- "qml/Navigation/images/straight-light@2x.png"
- "qml/Navigation/images/uturn.png"
- "qml/Navigation/images/uturn@2x.png"
- "qml/Navigation/navigation.js"
- "qml/Navigation/walk_route.json"
- "qml/Notifications/NotificationsPage.qml"
- "qml/Notifications/images/avatarf-dark.png"
- "qml/Notifications/images/avatarf-dark@2x.png"
- "qml/Notifications/images/avatarf-light.png"
- "qml/Notifications/images/avatarf-light@2x.png"
- "qml/Notifications/images/avatarm-dark.png"
- "qml/Notifications/images/avatarm-dark@2x.png"
- "qml/Notifications/images/avatarm-light.png"
- "qml/Notifications/images/avatarm-light@2x.png"
- "qml/Notifications/images/missedcall-dark.png"
- "qml/Notifications/images/missedcall-dark@2x.png"
- "qml/Notifications/images/missedcall-light.png"
- "qml/Notifications/images/missedcall-light@2x.png"
- "qml/Notifications/notifications.js"
- "qml/Settings/SettingsPage.qml"
- "qml/Settings/images/bluetooth-dark.png"
- "qml/Settings/images/bluetooth-dark@2x.png"
- "qml/Settings/images/bluetooth-light.png"
- "qml/Settings/images/bluetooth-light@2x.png"
- "qml/Settings/images/brightness-dark.png"
- "qml/Settings/images/brightness-dark@2x.png"
- "qml/Settings/images/brightness-light.png"
- "qml/Settings/images/brightness-light@2x.png"
- "qml/Settings/images/demo-mode-dark.png"
- "qml/Settings/images/demo-mode-dark@2x.png"
- "qml/Settings/images/demo-mode-light.png"
- "qml/Settings/images/demo-mode-light@2x.png"
- "qml/Settings/images/demo-mode-white.png"
- "qml/Settings/images/demo-mode-white@2x.png"
- "qml/Settings/images/theme-dark.png"
- "qml/Settings/images/theme-dark@2x.png"
- "qml/Settings/images/theme-light.png"
- "qml/Settings/images/theme-light@2x.png"
- "qml/Settings/images/wifi-dark.png"
- "qml/Settings/images/wifi-dark@2x.png"
- "qml/Settings/images/wifi-light.png"
- "qml/Settings/images/wifi-light@2x.png"
- "qml/Style/PageIndicator.qml"
- "qml/Style/Slider.qml"
- "qml/Style/Switch.qml"
- "qml/Style/UIStyle.qml"
- "qml/Style/qmldir"
- "qml/SwipeViewPage.qml"
- "qml/Weather/WeatherPage.qml"
- "qml/Weather/images/humidity-dark.png"
- "qml/Weather/images/humidity-dark@2x.png"
- "qml/Weather/images/humidity-light.png"
- "qml/Weather/images/humidity-light@2x.png"
- "qml/Weather/images/pressure-dark.png"
- "qml/Weather/images/pressure-dark@2x.png"
- "qml/Weather/images/pressure-light.png"
- "qml/Weather/images/pressure-light@2x.png"
- "qml/Weather/images/sunrise-dark.png"
- "qml/Weather/images/sunrise-dark@2x.png"
- "qml/Weather/images/sunrise-light.png"
- "qml/Weather/images/sunrise-light@2x.png"
- "qml/Weather/images/sunset-dark.png"
- "qml/Weather/images/sunset-dark@2x.png"
- "qml/Weather/images/sunset-light.png"
- "qml/Weather/images/sunset-light@2x.png"
- "qml/Weather/images/temperature-dark.png"
- "qml/Weather/images/temperature-dark@2x.png"
- "qml/Weather/images/temperature-light.png"
- "qml/Weather/images/temperature-light@2x.png"
- "qml/Weather/images/wind-dark.png"
- "qml/Weather/images/wind-dark@2x.png"
- "qml/Weather/images/wind-light.png"
- "qml/Weather/images/wind-light@2x.png"
- "qml/Weather/weather.js"
- "qml/Weather/weather.json"
- "qml/WorldClock/Clock.qml"
- "qml/WorldClock/WorldClockPage.qml"
- "qml/WorldClock/images/center.png"
- "qml/WorldClock/images/center@2x.png"
- "qml/WorldClock/images/second.png"
- "qml/WorldClock/images/second@2x.png"
- "qml/WorldClock/images/swissdaydial.png"
- "qml/WorldClock/images/swissdaydial@2x.png"
- "qml/WorldClock/images/swissdayhour.png"
- "qml/WorldClock/images/swissdayhour@2x.png"
- "qml/WorldClock/images/swissdayminute.png"
- "qml/WorldClock/images/swissdayminute@2x.png"
- "qml/WorldClock/images/swissnightdial.png"
- "qml/WorldClock/images/swissnightdial@2x.png"
- "qml/WorldClock/images/swissnighthour.png"
- "qml/WorldClock/images/swissnighthour@2x.png"
- "qml/WorldClock/images/swissnightminute.png"
- "qml/WorldClock/images/swissnightminute@2x.png"
- "wearable.qml"
-)
-
-qt6_add_resources(wearable "wearable"
- PREFIX
- "/"
- FILES
- ${wearable_resource_files}
-)
-
-install(TARGETS wearable
- RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
- BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
- LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
-)
diff --git a/examples/quickcontrols2/wearable/doc/images/qtquickcontrols2-wearable.png b/examples/quickcontrols2/wearable/doc/images/qtquickcontrols2-wearable.png
deleted file mode 100644
index c6105534..00000000
--- a/examples/quickcontrols2/wearable/doc/images/qtquickcontrols2-wearable.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/doc/src/qtquickcontrols2-wearable.qdoc b/examples/quickcontrols2/wearable/doc/src/qtquickcontrols2-wearable.qdoc
deleted file mode 100644
index 7e4edea4..00000000
--- a/examples/quickcontrols2/wearable/doc/src/qtquickcontrols2-wearable.qdoc
+++ /dev/null
@@ -1,191 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \example wearable
- \keyword Qt Quick Controls - Wearable Demo
- \title Qt Quick Controls - Wearable Demo
- \keyword Qt Quick Controls 2 - Wearable Demo
- \ingroup qtquickcontrols2-examples
- \brief Demonstrates an application launcher designed for wearable devices.
-
- \image qtquickcontrols2-wearable.png
-
- The \e {Wearable Demo} consists of an application launcher and a collection
- of small and simple example applications aimed at wearable devices.
-
- \section1 Structure
-
- The main .qml file, \c wearable.qml, consists of an ApplicationWindow, a StackView
- for a stack-based navigation model, and buttons for interactive navigation.
-
- \quotefromfile wearable/wearable.qml
- \skipuntil import "qml/Style"
- \printuntil id: window
- \dots
- \skipto header
- \printuntil id: homeButton
- \dots 8
- \skipto onClicked
- \printuntil }
- \printuntil id: backButton
- \dots 8
- \skipto onClicked
- \printuntil id: stackView
- \dots 8
- \skipuntil initialItem
- \printuntil /^\}/
-
- \section1 Styling
-
- The demo uses a custom \l {Styling Qt Quick Controls}{Qt Quick Controls 2 style}
- embedded into the demo's resources. The custom style is implemented for a
- few controls only, as it is specific to this particular demo. It uses a
- singleton type for various styling attributes, such as fonts and colors.
-
- \list
- \li \c qml/Style/PageIndicator.qml
- \li \c qml/Style/Slider.qml
- \li \c qml/Style/Switch.qml
- \li \c qml/Style/UIStyle.qml
- \endlist
-
- The style is applied in \c main() in \c wearable.cpp:
-
- \snippet wearable/wearable.cpp style
-
- The main benefit of using the built-in styling system is that the style selection
- is fully transparent to the application code. There is no need to import a specific
- folder that contains the styled controls. This way, the application can be run with
- other styles too.
-
- \section1 Custom Type
-
- The demo application contains a custom button type implemented in
- \c qml/NaviButton.qml. The navigation button is used as a home and back
- button in \c wearable.qml. \c NaviButton extends the AbstractButton type
- with properties that control the slide in and slide out transitions and
- the button image.
-
- \quotefromfile wearable/qml/NaviButton.qml
- \skipuntil import "Style"
- \printuntil id: image
- \dots 8
- \skipuntil }
- \printuntil background:
- \dots 8
- \skipto }
- \printuntil /^\}/
-
- \section1 Icons
-
- The demo ships a custom icon theme. The icons are bundled into the \c :/icons
- folder in the application's resources. The \c index.theme file lists the contents
- of the icon theme:
-
- \quotefile wearable/icons/wearable/index.theme
-
- Finally, the icon theme is selected in \c main():
-
- \snippet wearable/wearable.cpp icons
-
- The icons are used on the Launcher Page, which is presented below. See
- \l {Icons in Qt Quick Controls} for more details about icons and themes.
-
- \section1 Launcher Page
-
- The application launcher is implemented using a circular PathView in
- \c LauncherPage.qml. Each application is in a separate .qml file,
- which is added to the ListModel on the launcher page.
-
- \quotefromfile wearable/qml/LauncherPage.qml
- \skipto PathView
- \printuntil signal launched
- \dots
- \skipto ListModel
- \printuntil }
- \dots 8
- \printline ListElement
- \skipto "Settings"
- \printuntil delegate:
- \dots 8
- \skipto icon.width
- \printuntil icon.name
- \dots 8
- \skipto onClicked:
- \printto path:
- \dots
- \skipto /^\}/
- \printline }
-
- \section1 Applications
-
- The applications are designed for touch input based on what input methods
- or communication means are typically offered by wearable devices.
-
- Most applications have their own JavaScript files that act as dummy
- application backends. They illustrate fetching external data and help
- manipulating or converting the data. In the \c Navigation and \c Weather
- applications, data acquisition is implemented using \l XMLHttpRequest to
- read from local files. These files were generated by storing responses from
- remote servers in JSON format. This code can be easily modified to acquire
- data from remote servers.
-
- \section2 Navigation
-
- This application displays a walking route from source to destination. This
- route information is obtained using the REST API provided by
- \l {https://www.openstreetmap.org/}. The API response is in JSON format, which
- is parsed using JavaScript by the application. Currently, it is not possible
- to specify the source and destination from within the application, but it can
- be added based on the device's capabilities. For example, user input
- could be implemented as screens with input fields, or can be communicated
- over Bluetooth/Wifi from a paired application running on another device
- such as a smart phone or PC.
-
- \section2 Weather
-
- This application displays weather information such as temperature, sunrise
- and sunset times, air pressure, and so on. This information is obtained
- from \l {https://openweathermap.org/} using its REST API. The API response is
- in JSON format, which is parsed using JavaScript by the application. This
- application can also be modified by adding screens to obtain weather data for
- a given location.
-
- \section2 World Clock
-
- This application displays a world clock for different cities. As of now, the
- list of cities is hard-coded in the application, but that can be changed based
- on the input capabilities of the device.
-
- \section2 Others
-
- The remaining applications return static data for now, but they can be
- modified to process response data obtained from respective services.
-
- \include examples-run.qdocinc
-*/
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/alarms.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/alarms.png
deleted file mode 100644
index 252dcf93..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36/alarms.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/fitness.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/fitness.png
deleted file mode 100644
index 4b0679e2..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36/fitness.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/navigation.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/navigation.png
deleted file mode 100644
index 08e73005..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36/navigation.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/notifications.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/notifications.png
deleted file mode 100644
index 63093121..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36/notifications.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/settings.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/settings.png
deleted file mode 100644
index c1552fb3..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36/settings.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/weather.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/weather.png
deleted file mode 100644
index 61be79a2..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36/weather.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/worldclock.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/worldclock.png
deleted file mode 100644
index d23e32e5..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36/worldclock.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/alarms.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/alarms.png
deleted file mode 100644
index 6047e231..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/alarms.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/fitness.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/fitness.png
deleted file mode 100644
index 1d2caa33..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/fitness.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/navigation.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/navigation.png
deleted file mode 100644
index 7d4a62b9..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/navigation.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/notifications.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/notifications.png
deleted file mode 100644
index 8d3b3333..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/notifications.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/settings.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/settings.png
deleted file mode 100644
index e8918874..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/settings.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/weather.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/weather.png
deleted file mode 100644
index 0a2ae7d5..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/weather.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/worldclock.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/worldclock.png
deleted file mode 100644
index ca6eb879..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/worldclock.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/index.theme b/examples/quickcontrols2/wearable/icons/wearable/index.theme
deleted file mode 100644
index da702d4a..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/index.theme
+++ /dev/null
@@ -1,14 +0,0 @@
-[Icon Theme]
-Name=Wearable
-Comment=Qt Quick Controls 2 Wearable Demo Icon Theme
-
-Directories=36x36,36x36@2
-
-[36x36]
-Size=36
-Type=Fixed
-
-[36x36@2]
-Size=36
-Scale=2
-Type=Fixed
diff --git a/examples/quickcontrols2/wearable/images/back.png b/examples/quickcontrols2/wearable/images/back.png
deleted file mode 100644
index cf80aa65..00000000
--- a/examples/quickcontrols2/wearable/images/back.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/back@2x.png b/examples/quickcontrols2/wearable/images/back@2x.png
deleted file mode 100644
index 02f27981..00000000
--- a/examples/quickcontrols2/wearable/images/back@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/back@3x.png b/examples/quickcontrols2/wearable/images/back@3x.png
deleted file mode 100644
index 6d2d6cf1..00000000
--- a/examples/quickcontrols2/wearable/images/back@3x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/back@4x.png b/examples/quickcontrols2/wearable/images/back@4x.png
deleted file mode 100644
index 03193681..00000000
--- a/examples/quickcontrols2/wearable/images/back@4x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/background-dark.png b/examples/quickcontrols2/wearable/images/background-dark.png
deleted file mode 100644
index 6a8c0761..00000000
--- a/examples/quickcontrols2/wearable/images/background-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/background-light.png b/examples/quickcontrols2/wearable/images/background-light.png
deleted file mode 100644
index 913befab..00000000
--- a/examples/quickcontrols2/wearable/images/background-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/home.png b/examples/quickcontrols2/wearable/images/home.png
deleted file mode 100644
index b6ee1459..00000000
--- a/examples/quickcontrols2/wearable/images/home.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/home@2x.png b/examples/quickcontrols2/wearable/images/home@2x.png
deleted file mode 100644
index d5595b23..00000000
--- a/examples/quickcontrols2/wearable/images/home@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/home@3x.png b/examples/quickcontrols2/wearable/images/home@3x.png
deleted file mode 100644
index 9a5188d2..00000000
--- a/examples/quickcontrols2/wearable/images/home@3x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/home@4x.png b/examples/quickcontrols2/wearable/images/home@4x.png
deleted file mode 100644
index c4d2eb51..00000000
--- a/examples/quickcontrols2/wearable/images/home@4x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Alarms/AlarmsPage.qml b/examples/quickcontrols2/wearable/qml/Alarms/AlarmsPage.qml
deleted file mode 100644
index eda81e1f..00000000
--- a/examples/quickcontrols2/wearable/qml/Alarms/AlarmsPage.qml
+++ /dev/null
@@ -1,114 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls as QQC2
-import ".."
-import "../Style"
-
-Item {
- QQC2.SwipeView {
- id: svAlarmsContainer
-
- anchors.fill: parent
-
- Repeater {
- model: ListModel {
- ListElement { name: qsTr("Week Days"); state: true; time: "06:00 AM" }
- ListElement { name: qsTr("Week Ends"); state: false; time: "07:30 AM" }
- }
-
- SwipeViewPage {
- property alias stateSwitch: stateSwitch
-
- Column {
- spacing: 30
- anchors.centerIn: parent
-
- QQC2.Switch {
- id: stateSwitch
- checked: model.state
- anchors.left: nameLabel.right
- }
-
- Text {
- text: model.time
- anchors.horizontalCenter: parent.horizontalCenter
- verticalAlignment: Text.AlignVCenter
- height: UIStyle.fontSizeXL
- font.bold: stateSwitch.checked
- font.pixelSize: stateSwitch.checked ? UIStyle.fontSizeXL : UIStyle.fontSizeL
- font.letterSpacing: 4
- color: UIStyle.themeColorQtGray1
- }
-
- Text {
- id: nameLabel
- text: model.name
- anchors.horizontalCenter: parent.horizontalCenter
- font.pixelSize: UIStyle.fontSizeS
- font.italic: true
- font.bold: true
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray2
- }
- }
- }
- }
- }
-
- QQC2.PageIndicator {
- count: svAlarmsContainer.count
- currentIndex: svAlarmsContainer.currentIndex
-
- anchors.bottom: svAlarmsContainer.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/DemoMode.qml b/examples/quickcontrols2/wearable/qml/DemoMode.qml
deleted file mode 100644
index 17b1ea3c..00000000
--- a/examples/quickcontrols2/wearable/qml/DemoMode.qml
+++ /dev/null
@@ -1,258 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-import "Style"
-
-Item {
- property StackView stackView
-
- SequentialAnimation {
- id: demoModeAnimation
- running: settings.demoMode
-
- // Set brightness back to normal.
- ScriptAction { script: settings.brightness = 0 }
-
- // Go back to the launcher page.
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.pop(null) }
- PauseAnimation { duration: 2000 }
-
- // Open the world clock page.
- ScriptAction { script: stackView.currentItem.launched(Qt.resolvedUrl("WorldClock/WorldClockPage.qml")) }
- PauseAnimation { duration: 2000 }
-
- // Swipe across a few times.
- SequentialAnimation {
- loops: 6
-
- ScriptAction { script: stackView.currentItem.children[0].incrementCurrentIndex() }
- PauseAnimation { duration: 2500 }
- }
-
-
- // Go back to the launcher page.
- ScriptAction { script: stackView.pop(null) }
- PauseAnimation { duration: 2000 }
-
- // Open the navigation page.
- ScriptAction { script: stackView.currentItem.incrementCurrentIndex() }
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.currentItem.launched(Qt.resolvedUrl("Navigation/NavigationPage.qml")) }
- PauseAnimation { duration: 2000 }
-
- // Flick down a few times.
- SequentialAnimation {
- loops: 6
-
- ScriptAction { script: stackView.currentItem.routeListView.incrementCurrentIndex() }
- PauseAnimation { duration: 2000 }
- }
-
-
- // Go back to the launcher page.
- ScriptAction { script: stackView.pop(null) }
- PauseAnimation { duration: 2000 }
-
- // Open the weather page.
- ScriptAction { script: stackView.currentItem.incrementCurrentIndex() }
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.currentItem.launched(Qt.resolvedUrl("Weather/WeatherPage.qml")) }
- PauseAnimation { duration: 2000 }
-
- // Swipe across a few times.
- SequentialAnimation {
- loops: 4
-
- ScriptAction { script: stackView.currentItem.children[0].incrementCurrentIndex() }
- PauseAnimation { duration: 2000 }
- }
-
-
- // Go back to the launcher page.
- ScriptAction { script: stackView.pop(null) }
- PauseAnimation { duration: 2000 }
-
- // Open the fitness page.
- ScriptAction { script: stackView.currentItem.incrementCurrentIndex() }
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.currentItem.launched(Qt.resolvedUrl("Fitness/FitnessPage.qml")) }
- PauseAnimation { duration: 2000 }
-
- // Swipe across a few times.
- SequentialAnimation {
- loops: 2
-
- ScriptAction { script: stackView.currentItem.children[0].incrementCurrentIndex() }
- PauseAnimation { duration: 2000 }
- }
-
-
- // Go back to the launcher page.
- ScriptAction { script: stackView.pop(null) }
- PauseAnimation { duration: 2000 }
-
- // Open the notifications page.
- ScriptAction { script: stackView.currentItem.incrementCurrentIndex() }
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.currentItem.launched(Qt.resolvedUrl("Notifications/NotificationsPage.qml")) }
-
- // Flick down a few times.
- SequentialAnimation {
- loops: 3
-
- PauseAnimation { duration: 2000 }
- ScriptAction { script: stackView.currentItem.incrementCurrentIndex() }
- }
-
-
- // Go back to the launcher page.
- ScriptAction { script: stackView.pop(null) }
- PauseAnimation { duration: 2000 }
-
- // Open the alarms page.
- ScriptAction { script: stackView.currentItem.incrementCurrentIndex() }
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.currentItem.launched(Qt.resolvedUrl("Alarms/AlarmsPage.qml")) }
- PauseAnimation { duration: 2000 }
-
- // Toggle the switch.
- ScriptAction { script: stackView.currentItem.children[0].currentItem.stateSwitch.toggle() }
- PauseAnimation { duration: 2000 }
-
- // Go to the next alarm.
- ScriptAction { script: stackView.currentItem.children[0].incrementCurrentIndex() }
- PauseAnimation { duration: 2000 }
-
- // Toggle the switch there too.
- ScriptAction { script: stackView.currentItem.children[0].currentItem.stateSwitch.toggle() }
- PauseAnimation { duration: 2000 }
-
-
- // Go back to the launcher page.
- ScriptAction { script: stackView.pop(null) }
- PauseAnimation { duration: 2000 }
-
- // Open the settings page.
- ScriptAction { script: stackView.currentItem.incrementCurrentIndex() }
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.currentItem.launched(Qt.resolvedUrl("Settings/SettingsPage.qml")) }
- PauseAnimation { duration: 3000 }
-
- // Toggle the switches.
- ScriptAction { script: stackView.currentItem.children[0].currentItem.bluetoothSwitch.toggle() }
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.currentItem.children[0].currentItem.wirelessSwitch.toggle() }
- PauseAnimation { duration: 3000 }
-
- // Go to the next page.
- ScriptAction { script: stackView.currentItem.children[0].incrementCurrentIndex() }
-
- // Play with the brightness slider.
- // First, set it to full brightness so we start in the correct state.
- ScriptAction {
- script: {
- var brightnessSlider = stackView.currentItem.children[0].currentItem.brightnessSlider
- brightnessSlider.value = 0
- // increase()/decrease() are not a result of user interaction and
- // hence moved() will not be emitted, so we do it ourselves.
- brightnessSlider.moved()
- }
- }
-
- // Decrease the brightness.
- SequentialAnimation {
- loops: 3
-
- PauseAnimation { duration: 1000 }
- ScriptAction {
- script: {
- var brightnessSlider = stackView.currentItem.children[0].currentItem.brightnessSlider
- brightnessSlider.decrease()
- brightnessSlider.moved()
- }
- }
- }
-
- // Increase the brightness back to full.
- PauseAnimation { duration: 3000 }
- SequentialAnimation {
- loops: 3
-
- PauseAnimation { duration: 1000 }
- ScriptAction {
- script: {
- var brightnessSlider = stackView.currentItem.children[0].currentItem.brightnessSlider
- brightnessSlider.increase()
- brightnessSlider.moved()
- }
- }
- }
-
- // Toggle the dark theme switch.
- PauseAnimation { duration: 2000 }
- ScriptAction {
- script: {
- var darkThemeSwitch = stackView.currentItem.children[0].currentItem.darkThemeSwitch
- darkThemeSwitch.toggle()
- // As above, only proper user interaction results in toggled() being emitted,
- // so we do it ourselves.
- darkThemeSwitch.toggled()
- }
- }
- PauseAnimation { duration: 4000 }
-
- // Go back to the launcher page.
- ScriptAction { script: stackView.pop(null) }
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/DemoModeIndicator.qml b/examples/quickcontrols2/wearable/qml/DemoModeIndicator.qml
deleted file mode 100644
index a264a79b..00000000
--- a/examples/quickcontrols2/wearable/qml/DemoModeIndicator.qml
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls as QQC2
-import "Style"
-
-Item {
- id: root
- width: row.implicitWidth + margins * 2
-
- readonly property int topMargin: 24
- readonly property int margins: 12
-
- Behavior on y {
- NumberAnimation {}
- }
-
- Rectangle {
- id: demoModeIndicatorBg
- anchors.fill: parent
- anchors.topMargin: -topMargin
- radius: 20
- color: UIStyle.colorRed
- }
-
- Row {
- id: row
- spacing: 8
- anchors.fill: parent
- anchors.leftMargin: margins
- anchors.rightMargin: margins
-
- Image {
- source: "Settings/images/demo-mode-white.png"
- width: height
- height: instructionLabel.height * 2
- anchors.verticalCenter: parent.verticalCenter
- }
- QQC2.Label {
- id: instructionLabel
- text: "Tap screen to use"
- color: UIStyle.colorQtGray10
- anchors.verticalCenter: parent.verticalCenter
- }
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml b/examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml
deleted file mode 100644
index 81bad761..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml
+++ /dev/null
@@ -1,131 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls as QQC2
-import ".."
-import "../Style"
-import "fitness.js" as FitnessData
-
-Item {
- QQC2.SwipeView {
- id: svFitnessContainer
-
- anchors.fill: parent
-
- SwipeViewPage {
- id: fitnessPage1
-
- Column {
- anchors.centerIn: parent
- spacing: 15
-
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: qsTr("Steps: ") + FitnessData.getSteps()
- font.italic: true
- font.pixelSize: UIStyle.fontSizeM
- color: UIStyle.themeColorQtGray1
- }
- Image {
- anchors.horizontalCenter: parent.horizontalCenter
- source: UIStyle.themeImagePath("images/man-walking")
- }
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: qsTr("Calories: ") + FitnessData.getCalories()
- font.pixelSize: UIStyle.fontSizeS
- font.italic: true
- color: UIStyle.themeColorQtGray3
- }
- }
- }
-
- SwipeViewPage {
- id: fitnessPage2
-
- Column {
- anchors.centerIn: parent
- spacing: 15
-
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: qsTr("Distance: ")
- + FitnessData.getDistance()
- + qsTr(" miles")
- font.italic: true
- font.pixelSize: UIStyle.fontSizeM
- color: UIStyle.themeColorQtGray1
- }
- Image {
- anchors.horizontalCenter: parent.horizontalCenter
- source: UIStyle.themeImagePath("images/man-running")
- }
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: qsTr("Time: ")
- + FitnessData.getTime()
- + qsTr(" mins")
- font.pixelSize: UIStyle.fontSizeS
- font.italic: true
- color: UIStyle.themeColorQtGray3
- }
- }
- }
- }
-
- QQC2.PageIndicator {
- count: svFitnessContainer.count
- currentIndex: svFitnessContainer.currentIndex
-
- anchors.bottom: svFitnessContainer.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/fitness.js b/examples/quickcontrols2/wearable/qml/Fitness/fitness.js
deleted file mode 100644
index 7e159e2a..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/fitness.js
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-function getSteps() {
- return 105;
-}
-
-function getCalories() {
- return 150;
-}
-
-function getDistance() {
- return 10;
-}
-
-function getTime() {
- return "00:30";
-}
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark.png
deleted file mode 100644
index 6c791d61..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark@2x.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark@2x.png
deleted file mode 100644
index e9abae9d..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light.png
deleted file mode 100644
index e7eef12c..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light@2x.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light@2x.png
deleted file mode 100644
index 79861f57..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark.png
deleted file mode 100644
index 6d455b49..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark@2x.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark@2x.png
deleted file mode 100644
index a3ac08ba..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light.png
deleted file mode 100644
index f963f889..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light@2x.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light@2x.png
deleted file mode 100644
index 1b4d7592..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/LauncherPage.qml b/examples/quickcontrols2/wearable/qml/LauncherPage.qml
deleted file mode 100644
index e0de97c3..00000000
--- a/examples/quickcontrols2/wearable/qml/LauncherPage.qml
+++ /dev/null
@@ -1,189 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls as QQC2
-import "Style"
-
-PathView {
- id: circularView
-
- signal launched(string page)
-
- readonly property int cX: width / 2
- readonly property int cY: height / 2
- readonly property int itemSize: size / 4
- readonly property int size: Math.min(width - 80, height)
- readonly property int radius: size / 2 - itemSize / 3
-
- snapMode: PathView.SnapToItem
-
- model: ListModel {
- ListElement {
- title: qsTr("World Clock")
- icon: "worldclock"
- page: "WorldClock/WorldClockPage.qml"
- }
- ListElement {
- title: qsTr("Navigation")
- icon: "navigation"
- page: "Navigation/NavigationPage.qml"
- }
- ListElement {
- title: qsTr("Weather")
- icon: "weather"
- page: "Weather/WeatherPage.qml"
- }
- ListElement {
- title: qsTr("Fitness")
- icon: "fitness"
- page: "Fitness/FitnessPage.qml"
- }
- ListElement {
- title: qsTr("Notifications")
- icon: "notifications"
- page: "Notifications/NotificationsPage.qml"
- }
- ListElement {
- title: qsTr("Alarm")
- icon: "alarms"
- page: "Alarms/AlarmsPage.qml"
- }
- ListElement {
- title: qsTr("Settings")
- icon: "settings"
- page: "Settings/SettingsPage.qml"
- }
- }
-
- delegate: QQC2.RoundButton {
- width: circularView.itemSize
- height: circularView.itemSize
-
- property string title: model.title
-
- icon.width: 36
- icon.height: 36
- icon.name: model.icon
- opacity: PathView.itemOpacity
- padding: 12
-
- background: Rectangle {
- radius: width / 2
- border.width: 3
- border.color: parent.PathView.isCurrentItem ? UIStyle.colorQtPrimGreen : UIStyle.themeColorQtGray4
- }
-
- onClicked: {
- if (PathView.isCurrentItem)
- circularView.launched(Qt.resolvedUrl(page))
- else
- circularView.currentIndex = index
- }
- }
-
- path: Path {
- startX: circularView.cX
- startY: circularView.cY
- PathAttribute {
- name: "itemOpacity"
- value: 1.0
- }
- PathLine {
- x: circularView.cX + circularView.radius
- y: circularView.cY
- }
- PathAttribute {
- name: "itemOpacity"
- value: 0.7
- }
- PathArc {
- x: circularView.cX - circularView.radius
- y: circularView.cY
- radiusX: circularView.radius
- radiusY: circularView.radius
- useLargeArc: true
- direction: PathArc.Clockwise
- }
- PathAttribute {
- name: "itemOpacity"
- value: 0.5
- }
- PathArc {
- x: circularView.cX + circularView.radius
- y: circularView.cY
- radiusX: circularView.radius
- radiusY: circularView.radius
- useLargeArc: true
- direction: PathArc.Clockwise
- }
- PathAttribute {
- name: "itemOpacity"
- value: 0.3
- }
- }
-
- Text {
- id: appTitle
-
- property Item currentItem: circularView.currentItem
-
- visible: currentItem ? currentItem.PathView.itemOpacity === 1.0 : 0
-
- text: currentItem ? currentItem.title : ""
- anchors.centerIn: parent
- anchors.verticalCenterOffset: (circularView.itemSize + height) / 2
-
- font.bold: true
- font.pixelSize: circularView.itemSize / 3
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/NaviButton.qml b/examples/quickcontrols2/wearable/qml/NaviButton.qml
deleted file mode 100644
index 1d4dc552..00000000
--- a/examples/quickcontrols2/wearable/qml/NaviButton.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls as QQC2
-import "Style"
-
-QQC2.AbstractButton {
- id: button
-
- property int edge: Qt.TopEdge
- property alias imageSource: image.source
-
- contentItem: Image {
- id: image
- fillMode: Image.Pad
- sourceSize { width: 40; height: 40 } // ### TODO: resize the image
- }
-
- background: Rectangle {
- height: button.height * 4
- width: height
- radius: width / 2
-
- anchors.horizontalCenter: button.horizontalCenter
- anchors.top: edge === Qt.BottomEdge ? button.top : undefined
- anchors.bottom: edge === Qt.TopEdge ? button.bottom : undefined
-
- color: UIStyle.colorQtGray2
- }
-
- transform: Translate {
- Behavior on y { NumberAnimation { } }
- y: enabled ? 0 : edge === Qt.TopEdge ? -button.height : button.height
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/NavigationPage.qml b/examples/quickcontrols2/wearable/qml/Navigation/NavigationPage.qml
deleted file mode 100644
index 06c9909e..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/NavigationPage.qml
+++ /dev/null
@@ -1,120 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import "../Style"
-import "navigation.js" as NavigationData
-
-Item {
- property alias routeListView: routeView
-
- Column {
- anchors.fill: parent
- anchors.margins: 2
- spacing: 2
-
- Rectangle {
- anchors.horizontalCenter: parent.horizontalCenter
- width: parent.width
- height: titleRow.height
-
- color: UIStyle.themeColorQtGray9
-
- Row {
- id: titleRow
- spacing: 10
- anchors.centerIn: parent
-
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/navigation")
- fillMode: Image.PreserveAspectCrop
- }
- Text {
- anchors.verticalCenter: parent.verticalCenter
- text: qsTr("Walking")
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 2
- color: UIStyle.themeColorQtGray2
- }
- }
- }
-
- ListModel {
- id: routeModel
- }
-
- ListView {
- id: routeView
-
- width: parent.width
- height: parent.height - titleRow.height - parent.spacing
- property var imageList: [UIStyle.themeImagePath("images/straight"),
- UIStyle.themeImagePath("images/leftturn"),
- UIStyle.themeImagePath("images/rightturn"),
- "images/uturn.png",
- "images/start.png",
- "images/end.png"]
-
- clip: true
- focus: true
- boundsBehavior: Flickable.StopAtBounds
- snapMode: ListView.SnapToItem
- model: routeModel
- delegate: RouteElement {
- width: routeView.width
- height: routeView.height
- }
- }
- }
- Component.onCompleted: {
- NavigationData.requestNavigationRoute(routeModel)
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/RouteElement.qml b/examples/quickcontrols2/wearable/qml/Navigation/RouteElement.qml
deleted file mode 100644
index 4f5262f1..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/RouteElement.qml
+++ /dev/null
@@ -1,95 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import "../Style"
-
-Rectangle {
- color: UIStyle.themeColorQtGray8
-
- Row {
- spacing: 5
- width: parent.width - 80
- anchors.centerIn: parent
-
- Image {
- id: img
- anchors.verticalCenter: parent.verticalCenter
- source: navImage
- fillMode: Image.PreserveAspectFit
- }
-
- Column {
- spacing: 5
- width: parent.width - img.width
- anchors.verticalCenter: parent.verticalCenter
-
- Text {
- width: parent.width
- wrapMode: Text.WordWrap
- text: navInstruction
- font.pixelSize: UIStyle.fontSizeS
- verticalAlignment: Text.AlignVCenter
- padding: 1
- color: UIStyle.themeColorQtGray1
- }
-
- Text {
- width: parent.width
- wrapMode: Text.WordWrap
- text: navAuxInfo
- font.pixelSize: UIStyle.fontSizeXS
- verticalAlignment: Text.AlignVCenter
- padding: 1
- color: UIStyle.themeColorQtGray2
- }
- }
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/end.png b/examples/quickcontrols2/wearable/qml/Navigation/images/end.png
deleted file mode 100644
index 4805ad82..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/end.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/end@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/end@2x.png
deleted file mode 100644
index e91d5374..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/end@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark.png b/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark.png
deleted file mode 100644
index 66d258f5..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark@2x.png
deleted file mode 100644
index 639deb81..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light.png b/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light.png
deleted file mode 100644
index 1346e8ea..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light@2x.png
deleted file mode 100644
index 268a6283..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/marker.png b/examples/quickcontrols2/wearable/qml/Navigation/images/marker.png
deleted file mode 100644
index 4805ad82..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/marker.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark.png b/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark.png
deleted file mode 100644
index b80b7b61..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark@2x.png
deleted file mode 100644
index b198aa3d..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light.png b/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light.png
deleted file mode 100644
index 08e73005..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light@2x.png
deleted file mode 100644
index 7d4a62b9..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark.png b/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark.png
deleted file mode 100644
index 6a779dad..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark@2x.png
deleted file mode 100644
index 13143c2e..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light.png b/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light.png
deleted file mode 100644
index a6be08c1..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light@2x.png
deleted file mode 100644
index 58f04b50..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/start.png b/examples/quickcontrols2/wearable/qml/Navigation/images/start.png
deleted file mode 100644
index 41de60e6..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/start.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/start@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/start@2x.png
deleted file mode 100644
index 6fe3ba9d..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/start@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark.png b/examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark.png
deleted file mode 100644
index 3f4ab664..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark@2x.png
deleted file mode 100644
index f5baa6da..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-light.png b/examples/quickcontrols2/wearable/qml/Navigation/images/straight-light.png
deleted file mode 100644
index 1321b97a..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-light@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/straight-light@2x.png
deleted file mode 100644
index a2d3c4c2..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/uturn.png b/examples/quickcontrols2/wearable/qml/Navigation/images/uturn.png
deleted file mode 100644
index 596046ca..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/uturn.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/uturn@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/uturn@2x.png
deleted file mode 100644
index 659f1035..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/uturn@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/navigation.js b/examples/quickcontrols2/wearable/qml/Navigation/navigation.js
deleted file mode 100644
index 0414731d..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/navigation.js
+++ /dev/null
@@ -1,131 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-function requestNavigationRoute(rModel) {
- var xhr = new XMLHttpRequest;
- xhr.open("GET", "walk_route.json");
- xhr.onreadystatechange = function () {
- if (xhr.readyState === XMLHttpRequest.DONE) {
- var a = JSON.parse(xhr.responseText);
- var steps = a.routes[0].legs[0].steps;
-
- for (var step in steps) {
- var maneuver = steps[step].maneuver;
- var duration = steps[step].duration;
- var distance = steps[step].distance;
-
- rModel.append({
- navInstruction: maneuver.instruction,
- navImage: getNavigationImage(
- maneuver.type,
- maneuver.modifier,
- routeView.imageList),
- navAuxInfo: getAuxInfo(distance,
- duration)
- });
- }
- }
- }
- xhr.send();
-}
-
-function getNavigationImage(maneuverType, maneuverModifier, imageList) {
- var imageToReturn;
- if (maneuverType === "depart") {
- imageToReturn = imageList[4];
- } else if (maneuverType === "arrive") {
- imageToReturn = imageList[5];
- } else if (maneuverType === "turn") {
- if (maneuverModifier.search("left") >= 0)
- imageToReturn = imageList[1];
- else if (maneuverModifier.search("right") >= 0)
- imageToReturn = imageList[2];
- else
- imageToReturn = imageList[0];
- } else {
- if (maneuverModifier === "uturn") {
- imageToReturn = imageList[3];
- } else {
- imageToReturn = imageList[0];
- }
- }
-
- return imageToReturn;
-}
-
-function getAuxInfo(distInMeters, timeInSecs) {
- var distance = convertDistance(distInMeters);
- if (distance.length > 0)
- return "Distance: " + distance + "\nTime: " + formatSeconds(
- timeInSecs);
- else
- return "";
-}
-
-function convertDistance(meter) {
- var dist = "";
- var feet = (meter * 0.3048).toPrecision(6);
- var miles = (meter * 0.000621371).toPrecision(6);
-
- if (Math.floor(miles) > 1) {
- dist += Math.floor(miles) + " mi";
- feet = ((miles - Math.floor(miles)) * 0.3048).toPrecision(6);
- }
- if (Math.floor(feet) > 1)
- dist += Math.floor(feet) + " ft";
-
- return dist
-}
-
-function formatSeconds(seconds) {
- var date = new Date(1970, 0, 1);
- date.setSeconds(seconds);
- return date.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1");
-}
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/walk_route.json b/examples/quickcontrols2/wearable/qml/Navigation/walk_route.json
deleted file mode 100644
index e69b5cc1..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/walk_route.json
+++ /dev/null
@@ -1 +0,0 @@
-{"routes":[{"legs":[{"steps":[{"intersections":[{"out":0,"entry":[true],"bearings":[144],"location":[-122.394553,37.795984]},{"out":1,"location":[-122.393896,37.795268],"bearings":[60,150,225,330],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.393179,37.79453],"bearings":[60,135,180,225,315],"entry":[true,true,true,true,false],"in":4},{"out":1,"location":[-122.393072,37.79443],"bearings":[45,135,225,315],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.392787,37.79415],"bearings":[60,135,315],"entry":[true,true,false],"in":2},{"out":1,"location":[-122.392537,37.793915],"bearings":[45,135,225,315],"entry":[true,true,true,false],"in":3},{"out":0,"location":[-122.392448,37.793831],"bearings":[135,225,315],"entry":[true,true,false],"in":2}],"geometry":"{_ueF|d`jVRQdB}ARQh@g@XUVWVW^a@RUv@w@l@q@PQNQ","maneuver":{"bearing_after":144,"location":[-122.394553,37.795984],"bearing_before":0,"type":"depart","instruction":"Head southeast on The Embarcadero"},"duration":230.8,"distance":314.8,"name":"The Embarcadero","mode":"walking"},{"intersections":[{"out":2,"location":[-122.392361,37.793748],"bearings":[45,135,225,315],"entry":[true,true,true,false],"in":3}],"geometry":"}qteFfw_jVHJBDHJ","maneuver":{"bearing_after":225,"type":"turn","modifier":"right","bearing_before":140,"location":[-122.392361,37.793748],"instruction":"Turn right"},"duration":13.2,"distance":18.5,"name":"","mode":"walking"},{"intersections":[{"out":1,"location":[-122.39251,37.793631],"bearings":[45,135,225,315],"entry":[false,true,true,true],"in":0},{"out":1,"location":[-122.391284,37.792459],"bearings":[45,150,225,330],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.391217,37.792342],"bearings":[45,165,225,330],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.391165,37.792231],"bearings":[45,165,225,345],"entry":[true,true,true,false],"in":3},{"out":0,"location":[-122.390884,37.791536],"bearings":[150,285,345],"entry":[true,true,false],"in":2},{"out":1,"location":[-122.390254,37.790827],"bearings":[45,135,210,315],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.390144,37.790745],"bearings":[45,135,225,315],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.390038,37.790665],"bearings":[45,135,240,315],"entry":[true,true,true,false],"in":3},{"out":0,"location":[-122.389245,37.790036],"bearings":[135,225,315],"entry":[true,true,false],"in":2},{"out":1,"location":[-122.38871,37.789596],"bearings":[45,150,210,315],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.388618,37.789494],"bearings":[45,150,225,330],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.388527,37.789394],"bearings":[45,150,225,330],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.388005,37.787907],"bearings":[0,180,270],"entry":[false,true,true],"in":0},{"out":1,"location":[-122.387985,37.787622],"bearings":[0,180,240],"entry":[false,true,true],"in":0},{"out":2,"location":[-122.388005,37.787197],"bearings":[0,90,180,270],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.388015,37.787093],"bearings":[0,90,180,270],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.388022,37.786994],"bearings":[0,90,180,285],"entry":[false,true,true,true],"in":0},{"out":1,"location":[-122.388163,37.785186],"bearings":[0,180,315],"entry":[false,true,true],"in":0},{"out":1,"location":[-122.388184,37.784944],"bearings":[0,180,315],"entry":[false,true,true],"in":0},{"out":2,"location":[-122.388191,37.784855],"bearings":[0,90,180,270],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.388198,37.784748],"bearings":[0,90,180,270],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.388207,37.784633],"bearings":[0,90,180,270],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.388309,37.783373],"bearings":[0,60,180,270],"entry":[false,true,true,true],"in":0},{"out":1,"location":[-122.388376,37.782545],"bearings":[0,180,315],"entry":[false,true,true],"in":0},{"out":1,"location":[-122.388394,37.782316],"bearings":[0,180,315],"entry":[false,true,true],"in":0}],"geometry":"eqteFdx_jVf@k@\\a@|@iAV[FGJMPOTOPKDAPITItAa@r@WXOXQXSTUTWRYNUNS|B}CdAwAPSTQRQ\\W^Q\\KZIrB]^EPCH?\\CZ?Z?\\?XBT@R?~IZF?H@f@@N@T@V@zFRbDLl@@pADV@","maneuver":{"bearing_after":139,"type":"turn","modifier":"left","bearing_before":226,"location":[-122.39251,37.793631],"instruction":"Turn left onto The Embarcadero"},"duration":1055.9,"distance":1450.3,"name":"The Embarcadero","mode":"walking"},{"intersections":[{"out":2,"location":[-122.388431,37.781791],"bearings":[0,90,180,285],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.389672,37.779922],"bearings":[45,135,225,315],"entry":[false,true,true,true],"in":0},{"out":1,"location":[-122.390803,37.77905],"bearings":[45,225,315],"entry":[false,true,true],"in":0},{"out":2,"location":[-122.391916,37.778155],"bearings":[45,135,225,315],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.393073,37.777251],"bearings":[45,75,225,315],"entry":[false,true,true,true],"in":0}],"geometry":"egreFt~~iVR@bABXDVDXHVNXNXVVZp@|@z@hAnCvDLRNTHLFJbArAzApBdB`CTZZb@\\b@@@pCvD","maneuver":{"bearing_after":183,"type":"new name","modifier":"straight","bearing_before":183,"location":[-122.388431,37.781791],"instruction":"Continue straight onto King Street"},"duration":567.4,"distance":782.5,"name":"King Street","mode":"walking"},{"intersections":[{"out":3,"location":[-122.394003,37.776513],"bearings":[45,135,225,300],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.394218,37.776486],"bearings":[45,135,225,315],"entry":[false,true,true,true],"in":0}],"geometry":"efqeFna`jVGJ?NJNNR","maneuver":{"bearing_after":313,"type":"turn","modifier":"straight","bearing_before":225,"location":[-122.394003,37.776513],"instruction":"Go straight"},"duration":26.1,"distance":36.2,"name":"","mode":"walking"},{"intersections":[{"out":2,"location":[-122.394321,37.776405],"bearings":[45,180,315],"entry":[false,true,true],"in":0},{"out":1,"location":[-122.394729,37.776487],"bearings":[45,180],"entry":[false,true],"in":0}],"geometry":"qeqeFnc`jVe@p@A@V\\DF","maneuver":{"bearing_after":315,"type":"turn","modifier":"right","bearing_before":225,"location":[-122.394321,37.776405],"instruction":"Turn right"},"duration":39.9,"distance":55.6,"name":"","mode":"walking"},{"intersections":[{"in":0,"entry":[true],"bearings":[45],"location":[-122.394768,37.776455]}],"geometry":"{eqeFhf`jV","maneuver":{"bearing_after":0,"type":"arrive","modifier":"straight","bearing_before":225,"location":[-122.394729,37.776487],"instruction":"You have arrived at your destination, straight ahead"},"duration":0,"distance":0,"name":"","mode":"walking"}],"summary":"The Embarcadero, King Street","duration":1933.3,"distance":2657.8}],"geometry":"{_ueF|d`jV|LuLV\\`EyElHaD~I_LvB_AdGk@he@|AbBd@bZl`@R~@g@r@\\d@","duration":1933.3,"distance":2657.8}],"waypoints":[{"name":"The Embarcadero","location":[-122.394553,37.795984]},{"name":"","location":[-122.394768,37.776455]}],"code":"Ok"}
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/NotificationsPage.qml b/examples/quickcontrols2/wearable/qml/Notifications/NotificationsPage.qml
deleted file mode 100644
index 45f0dcb2..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/NotificationsPage.qml
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls as QQC2
-import "../Style"
-import "notifications.js" as NotificationData
-
-ListView {
- id: missedCallsView
-
- clip: true
- focus: true
- boundsBehavior: Flickable.StopAtBounds
- snapMode: ListView.SnapToItem
-
- model: ListModel {
- id: missedCallsList
- }
-
- Image {
- id: missedCallIcon
- width: parent.width / 2
- anchors.right: parent.horizontalCenter
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/missedcall")
- fillMode: Image.Pad
- }
-
- delegate: Item {
- height: missedCallsView.height
- width: missedCallsView.width / 2
- anchors.left: missedCallsView.contentItem.horizontalCenter
-
- Column {
- spacing: 15
- anchors.verticalCenter: parent.verticalCenter
-
- Image {
- anchors.horizontalCenter: parent.horizontalCenter
- source: qsTr("images/avatar%1-%2.png").arg(model.gender).arg(UIStyle.darkTheme ? "dark" : "light")
- }
-
- Text {
- text: model.name
- anchors.horizontalCenter: parent.horizontalCenter
- font.bold: true
- font.pixelSize: UIStyle.fontSizeS
- color: UIStyle.themeColorQtGray1
- }
-
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: date + " " + time
- font.pixelSize: UIStyle.fontSizeXS
- font.italic: true
- color: UIStyle.themeColorQtGray2
- }
- }
- }
-
- Component.onCompleted: {
- NotificationData.populateData(missedCallsList)
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark.png
deleted file mode 100644
index 37bc1f29..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark@2x.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark@2x.png
deleted file mode 100644
index efcd7cba..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light.png
deleted file mode 100644
index e38b2607..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light@2x.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light@2x.png
deleted file mode 100644
index 1f28beac..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark.png
deleted file mode 100644
index 5a2a394d..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark@2x.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark@2x.png
deleted file mode 100644
index 1a19b0fc..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light.png
deleted file mode 100644
index f0fc7a96..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light@2x.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light@2x.png
deleted file mode 100644
index 64a0f1f9..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark.png b/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark.png
deleted file mode 100644
index 26bcf98a..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark@2x.png b/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark@2x.png
deleted file mode 100644
index 5eb54ce8..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light.png b/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light.png
deleted file mode 100644
index 641e1f0c..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light@2x.png b/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light@2x.png
deleted file mode 100644
index e8d2d81c..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/notifications.js b/examples/quickcontrols2/wearable/qml/Notifications/notifications.js
deleted file mode 100644
index 8716c56f..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/notifications.js
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-function populateData(listData) {
- listData.append({
- name: "John Doe",
- gender: "m",
- date: "02/15/2017",
- time: "09:20 am"
- });
-
- listData.append({
- name: "Jane Worldege",
- gender: "f",
- date: "02/06/2017",
- time: "10:15 am"
- });
-
- listData.append({
- name: "Jennifer Wang",
- gender: "f",
- date: "02/03/2017",
- time: "05:16 pm"
- });
-}
diff --git a/examples/quickcontrols2/wearable/qml/Settings/SettingsPage.qml b/examples/quickcontrols2/wearable/qml/Settings/SettingsPage.qml
deleted file mode 100644
index 347ad417..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/SettingsPage.qml
+++ /dev/null
@@ -1,176 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls as QQC2
-import ".."
-import "../Style"
-
-Item {
-
- QQC2.SwipeView {
- id: svSettingsContainer
-
- anchors.fill: parent
-
- SwipeViewPage {
- id: settingsPage1
-
- property alias bluetoothSwitch: bluetoothSwitch
- property alias wirelessSwitch: wirelessSwitch
-
- Column {
- anchors.centerIn: parent
- spacing: 25
-
- Row {
- spacing: 50
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/bluetooth")
- }
- QQC2.Switch {
- id: bluetoothSwitch
- anchors.verticalCenter: parent.verticalCenter
- checked: settings.bluetooth
- onToggled: settings.bluetooth = checked
- }
- }
- Row {
- spacing: 50
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/wifi")
- }
- QQC2.Switch {
- id: wirelessSwitch
- anchors.verticalCenter: parent.verticalCenter
- checked: settings.wireless
- onToggled: settings.wireless = checked
- }
- }
- }
- }
-
- SwipeViewPage {
- id: settingsPage2
-
- property alias brightnessSlider: brightnessSlider
- property alias darkThemeSwitch: darkThemeSwitch
-
- Column {
- anchors.centerIn: parent
- spacing: 2
-
- Column {
- Image {
- anchors.horizontalCenter: parent.horizontalCenter
- source: UIStyle.themeImagePath("images/brightness")
- }
- QQC2.Slider {
- id: brightnessSlider
- anchors.horizontalCenter: parent.horizontalCenter
- from: 0
- to: 5
- stepSize: 1
- value: settings.brightness
- onMoved: settings.brightness = value
- }
- }
- Column {
- anchors.horizontalCenter: parent.horizontalCenter
-
- Image {
- anchors.horizontalCenter: parent.horizontalCenter
- source: UIStyle.themeImagePath("images/theme")
- }
- QQC2.Switch {
- id: darkThemeSwitch
- anchors.horizontalCenter: parent.horizontalCenter
- checked: settings.darkTheme
- onToggled: settings.darkTheme = checked
- }
- }
- }
- }
-
- SwipeViewPage {
- id: settingsPage3
-
- Column {
- anchors.centerIn: parent
-
- Column {
- anchors.horizontalCenter: parent.horizontalCenter
- spacing: 6
-
- Image {
- anchors.horizontalCenter: parent.horizontalCenter
- source: UIStyle.themeImagePath("images/demo-mode")
- }
- QQC2.Switch {
- id: demoModeSwitch
- anchors.horizontalCenter: parent.horizontalCenter
- checked: settings.demoMode
- onToggled: settings.demoMode = checked
- }
- }
- }
- }
- }
-
- QQC2.PageIndicator {
- count: svSettingsContainer.count
- currentIndex: svSettingsContainer.currentIndex
-
- anchors.bottom: svSettingsContainer.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark.png
deleted file mode 100644
index 0f1f4d0a..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark@2x.png
deleted file mode 100644
index 7496fc56..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light.png
deleted file mode 100644
index 6e297cfa..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light@2x.png
deleted file mode 100644
index 62d08403..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark.png
deleted file mode 100644
index f9eb07b5..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark@2x.png
deleted file mode 100644
index 3efc5a6c..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light.png
deleted file mode 100644
index ce3023b5..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light@2x.png
deleted file mode 100644
index dc01aae1..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark.png
deleted file mode 100644
index e93c417d..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark@2x.png
deleted file mode 100644
index faa1bf6d..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light.png
deleted file mode 100644
index c38d146d..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light@2x.png
deleted file mode 100644
index b9d6409c..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white.png
deleted file mode 100644
index aac8ef3f..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white@2x.png
deleted file mode 100644
index b4d8954f..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode.svg b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode.svg
deleted file mode 100644
index ad1ce448..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode.svg
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="64"
- height="64"
- viewBox="0 0 16.933333 16.933333"
- version="1.1"
- id="svg8"
- inkscape:version="0.92.3 (d244b95, 2018-08-02)"
- sodipodi:docname="demo-mode.svg"
- inkscape:export-filename="/home/mitch/dev/qt5.12/qtquickcontrols2/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light@2x.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <defs
- id="defs2" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="15.839192"
- inkscape:cx="26.498574"
- inkscape:cy="25.685519"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="true"
- units="px"
- fit-margin-top="1"
- fit-margin-left="1"
- fit-margin-right="1"
- fit-margin-bottom="1"
- inkscape:window-width="3706"
- inkscape:window-height="2031"
- inkscape:window-x="134"
- inkscape:window-y="55"
- inkscape:window-maximized="1"
- inkscape:snap-global="false">
- <inkscape:grid
- type="xygrid"
- id="grid3713"
- originx="-0.0070880335"
- originy="-280.58354" />
- </sodipodi:namedview>
- <metadata
- id="metadata5">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Layer 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-0.00708803,0.51688025)">
- <path
- style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="m 1.6489221,4.3034973 h 0.7205171 v 7.0102767 c 0.01422,0.27678 0.1921164,0.348966 0.392741,0.392741 H 14.169383 c 0.276028,-0.04241 0.382882,-0.208883 0.423747,-0.423747 V 4.3094031 h 0.692464 v 7.0279949 c -0.111554,0.831949 -0.589986,1.000696 -1.104399,1.104399 H 9.3324693 l 2.2589977,2.258998 c -0.0189,0.375139 -0.204956,0.516261 -0.501999,0.502 L 8.8304698,12.943797 v 1.972563 c -0.051861,0.342631 -0.6681357,0.36382 -0.7323291,0 V 12.949702 L 5.8391425,15.208701 C 5.5142667,15.206145 5.3522558,15.056484 5.3725781,14.742136 L 7.7172116,12.397503 H 2.7415096 C 2.1429244,12.357576 1.6879444,12.049089 1.6444927,11.300486 Z"
- id="path826"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccccccccccccccccccccc" />
- <rect
- style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.2619375;stroke-miterlimit:4;stroke-dasharray:0.523875, 0.2619375;stroke-dashoffset:0"
- id="rect828"
- width="16.044523"
- height="1.9126476"
- x="0.441401"
- y="2.0340116"
- rx="1.0583333"
- ry="1.0583333" />
- <path
- style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="M 7.8323763,1.681278 V 1.1615701 c 0.1987987,-0.67546179 1.0821701,-0.66495897 1.2992931,0 V 1.681278 Z"
- id="path830"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccc" />
- </g>
-</svg>
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark.png
deleted file mode 100644
index d4c4a8c0..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark@2x.png
deleted file mode 100644
index 30d8c6de..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/theme-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/theme-light.png
deleted file mode 100644
index e7a0771b..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/theme-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/theme-light@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/theme-light@2x.png
deleted file mode 100644
index 83bc878b..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/theme-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/theme.svg b/examples/quickcontrols2/wearable/qml/Settings/images/theme.svg
deleted file mode 100644
index bf3f1e57..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/theme.svg
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="64"
- height="64"
- viewBox="0 0 16.933333 16.933333"
- version="1.1"
- id="svg8"
- inkscape:version="0.92.3 (2405546, 2018-03-11)"
- sodipodi:docname="theme.svg"
- inkscape:export-filename="C:\dev\qt5.11\qtquickcontrols2\examples\quickcontrols2\wearable\qml\Settings\images\theme@2x.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <defs
- id="defs2" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="7.9195959"
- inkscape:cx="-11.371874"
- inkscape:cy="28.405259"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="true"
- units="px"
- fit-margin-top="1"
- fit-margin-left="1"
- fit-margin-right="1"
- fit-margin-bottom="1"
- inkscape:window-width="3840"
- inkscape:window-height="2066"
- inkscape:window-x="-11"
- inkscape:window-y="-11"
- inkscape:window-maximized="1"
- inkscape:snap-global="false">
- <inkscape:grid
- type="xygrid"
- id="grid3713"
- originx="-0.0070880335"
- originy="-280.58354" />
- </sodipodi:namedview>
- <metadata
- id="metadata5">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Layer 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-0.00708803,0.51688025)">
- <path
- style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.25668776px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="M 2.7296861,14.56437 H 12.831038 C 13.464556,14.411157 15.01089,14.101758 15.231756,11.825604 15.232242,10.48538 13.96701,8.4813248 11.69084,9.0467292 10.687852,7.3630573 9.1232541,7.2558172 8.2817051,7.654427 6.9050791,4.9744381 2.9222535,5.8560797 2.9703307,8.9435956 1.7108806,9.1004362 0.37826375,9.7182846 0.27167137,11.745388 0.31660717,13.546059 1.5831259,14.350467 2.7296861,14.56437 Z"
- id="path4535"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccccccc" />
- <path
- style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.25668776px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="M 11.392726,0.92763044 C 8.8246143,2.2754379 7.9809615,4.3443829 8.9780532,7.1830936 10.167295,7.1426991 11.108291,7.6664967 11.822182,8.7064442 12.799984,8.6194307 13.765772,8.6795708 14.658208,9.6382815 15.605885,9.3257847 16.200803,8.852941 16.675838,8.325607 13.735088,9.4033595 8.6151974,5.957728 11.392726,0.92763044 Z"
- id="path4537"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccccc" />
- </g>
-</svg>
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark.png
deleted file mode 100644
index 14bfe8f5..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark@2x.png
deleted file mode 100644
index b70d0429..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light.png
deleted file mode 100644
index 2de34118..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light@2x.png
deleted file mode 100644
index 64b5f172..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Style/PageIndicator.qml b/examples/quickcontrols2/wearable/qml/Style/PageIndicator.qml
deleted file mode 100644
index 8328f627..00000000
--- a/examples/quickcontrols2/wearable/qml/Style/PageIndicator.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Templates as T
-import "."
-
-T.PageIndicator {
- id: control
-
- implicitWidth: contentItem.implicitWidth + leftPadding + rightPadding
- implicitHeight: contentItem.implicitHeight + topPadding + bottomPadding
-
- spacing: 6
- padding: 6
- bottomPadding: 7
-
- delegate: Rectangle {
- implicitWidth: 8
- implicitHeight: 8
-
- radius: width / 2
- color: UIStyle.themeColorQtGray3
-
- opacity: index === control.currentIndex ? 1.0 : 0.35
-
- Behavior on opacity {
- OpacityAnimator {
- duration: 100
- }
- }
- }
-
- contentItem: Row {
- spacing: control.spacing
-
- Repeater {
- model: control.count
- delegate: control.delegate
- }
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Style/Slider.qml b/examples/quickcontrols2/wearable/qml/Style/Slider.qml
deleted file mode 100644
index 533510f5..00000000
--- a/examples/quickcontrols2/wearable/qml/Style/Slider.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Templates as T
-import "."
-
-T.Slider {
- id: control
-
- implicitWidth: 200
- implicitHeight: 26
-
- handle: Rectangle {
- x: control.visualPosition * (control.width - width)
- y: (control.height - height) / 2
- width: 20
- height: 15
-
- radius: 5
- color: control.pressed ? "#f0f0f0" : "#f6f6f6"
- border.color: UIStyle.themeColorQtGray7
- }
-
- background: Rectangle {
- y: (control.height - height) / 2
- height: 4
- radius: 2
- color: UIStyle.themeColorQtGray3
-
- Rectangle {
- width: control.visualPosition * parent.width
- height: parent.height
- color: UIStyle.colorQtAuxGreen2
- radius: 2
- }
- }
-}
-
diff --git a/examples/quickcontrols2/wearable/qml/Style/Switch.qml b/examples/quickcontrols2/wearable/qml/Style/Switch.qml
deleted file mode 100644
index e5631bbb..00000000
--- a/examples/quickcontrols2/wearable/qml/Style/Switch.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Templates as T
-import "."
-
-T.Switch {
- id: control
-
- implicitWidth: 48
- implicitHeight: 26
-
- indicator: Rectangle {
- x: control.visualPosition * (control.width - width)
- y: (control.height - height) / 2
- width: 26
- height: 26
-
- radius: 13
- color: control.down ? UIStyle.themeColorQtGray6 : UIStyle.themeColorQtGray10
- border.color: !control.checked ? "#999999"
- : (control.down ? UIStyle.colorQtAuxGreen2
- : UIStyle.colorQtAuxGreen1)
-
- Behavior on x {
- enabled: !control.pressed
- SmoothedAnimation { velocity: 200 }
- }
- }
-
- background: Rectangle {
- radius: 13
- color: control.checked ? UIStyle.colorQtAuxGreen2 : UIStyle.colorRed
- border.color: control.checked ? UIStyle.colorQtAuxGreen2
- : UIStyle.themeColorQtGray6
- }
-}
-
diff --git a/examples/quickcontrols2/wearable/qml/Style/UIStyle.qml b/examples/quickcontrols2/wearable/qml/Style/UIStyle.qml
deleted file mode 100644
index 626d37ec..00000000
--- a/examples/quickcontrols2/wearable/qml/Style/UIStyle.qml
+++ /dev/null
@@ -1,107 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-
-pragma Singleton
-
-QtObject {
- id: uiStyle
-
- // Font Sizes
- readonly property int fontSizeXXS: 10
- readonly property int fontSizeXS: 15
- readonly property int fontSizeS: 20
- readonly property int fontSizeM: 25
- readonly property int fontSizeL: 30
- readonly property int fontSizeXL: 35
- readonly property int fontSizeXXL: 40
-
- // Color Scheme
- // Green
- readonly property color colorQtPrimGreen: "#41cd52"
- readonly property color colorQtAuxGreen1: "#21be2b"
- readonly property color colorQtAuxGreen2: "#17a81a"
-
- // Red
- readonly property color colorRed: "#e6173d"
-
- // Gray
- readonly property color colorQtGray1: "#09102b"
- readonly property color colorQtGray2: "#222840"
- readonly property color colorQtGray3: "#3a4055"
- readonly property color colorQtGray4: "#53586b"
- readonly property color colorQtGray5: "#53586b"
- readonly property color colorQtGray6: "#848895"
- readonly property color colorQtGray7: "#9d9faa"
- readonly property color colorQtGray8: "#b5b7bf"
- readonly property color colorQtGray9: "#cecfd5"
- readonly property color colorQtGray10: "#f3f3f4"
-
- // Light/dark versions of the colors above.
- // Some UI elements always use a specific color regardless of theme,
- // which is why we have both sets: so that those elements don't need to hard-code the hex string.
- readonly property color themeColorQtGray1: darkTheme ? colorQtGray10 : colorQtGray1
- readonly property color themeColorQtGray2: darkTheme ? colorQtGray9 : colorQtGray2
- readonly property color themeColorQtGray3: darkTheme ? colorQtGray8 : colorQtGray3
- readonly property color themeColorQtGray4: darkTheme ? colorQtGray7 : colorQtGray4
- readonly property color themeColorQtGray5: darkTheme ? colorQtGray6 : colorQtGray5
- readonly property color themeColorQtGray6: darkTheme ? colorQtGray5 : colorQtGray6
- readonly property color themeColorQtGray7: darkTheme ? colorQtGray4 : colorQtGray7
- readonly property color themeColorQtGray8: darkTheme ? colorQtGray3 : colorQtGray8
- readonly property color themeColorQtGray9: darkTheme ? colorQtGray2 : colorQtGray9
- readonly property color themeColorQtGray10: darkTheme ? colorQtGray1 : colorQtGray10
-
- property bool darkTheme: false
-
- function themeImagePath(baseImagePath) {
- return baseImagePath + (darkTheme ? "-dark" : "-light") + ".png"
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Style/qmldir b/examples/quickcontrols2/wearable/qml/Style/qmldir
deleted file mode 100644
index a04072be..00000000
--- a/examples/quickcontrols2/wearable/qml/Style/qmldir
+++ /dev/null
@@ -1 +0,0 @@
-singleton UIStyle 1.0 UIStyle.qml
diff --git a/examples/quickcontrols2/wearable/qml/SwipeViewPage.qml b/examples/quickcontrols2/wearable/qml/SwipeViewPage.qml
deleted file mode 100644
index b897127b..00000000
--- a/examples/quickcontrols2/wearable/qml/SwipeViewPage.qml
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls
-
-Item {
- // Don't show the item when the StackView that contains us
- // is being popped off the stack, as we use an x animation
- // and hence would show pages that we shouldn't since we
- // also don't have our own background.
- visible: SwipeView.isCurrentItem || (SwipeView.view.contentItem.moving && (SwipeView.isPreviousItem || SwipeView.isNextItem))
-}
diff --git a/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml b/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml
deleted file mode 100644
index 28fc0bc1..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml
+++ /dev/null
@@ -1,297 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls as QQC2
-import ".."
-import "../Style"
-import "weather.js" as WeatherData
-
-Item {
- QQC2.SwipeView {
- id: svWeatherContainer
-
- anchors.fill: parent
-
- SwipeViewPage {
- id: weatherPage1
-
- Row {
- anchors.centerIn: parent
- spacing: 2
-
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/temperature")
- }
-
- Column {
- anchors.verticalCenter: parent.verticalCenter
- spacing: 40
-
- Text {
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.main
- && wDataCntr.weatherData.main.temp) ?
- qsTr("Avg: ")
- + String(wDataCntr.weatherData.main.temp)
- + " °F" : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
-
- Text {
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.main
- && wDataCntr.weatherData.main.temp_min) ?
- qsTr("Min: ")
- + String(wDataCntr.weatherData.main.temp_min)
- + " °F" : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
-
- Text {
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.main
- && wDataCntr.weatherData.main.temp_max) ?
- qsTr("Max: ")
- + String(wDataCntr.weatherData.main.temp_max)
- + " °F " : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
- }
- }
- }
-
- SwipeViewPage {
- id: weatherPage2
-
- Column {
- spacing: 40
- anchors.centerIn: parent
-
- Row {
- spacing: 20
- anchors.horizontalCenter: parent.horizontalCenter
-
- Image {
- id: wImg
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/wind")
- }
-
- Text {
- anchors.verticalCenter: parent.verticalCenter
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.wind
- && wDataCntr.weatherData.wind.speed) ?
- String(wDataCntr.weatherData.wind.speed)
- + " mph" : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
- }
-
- Row {
- spacing: 20
- anchors.horizontalCenter: parent.horizontalCenter
-
- Image {
- id: hImg
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/humidity")
- }
-
- Text {
- anchors.verticalCenter: parent.verticalCenter
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.main
- && wDataCntr.weatherData.main.humidity) ?
- String(wDataCntr.weatherData.main.humidity)
- + " %" : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
- }
- }
- }
-
- SwipeViewPage {
- id: weatherPage3
-
- Row {
- anchors.centerIn: parent
- spacing: 10
-
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/pressure")
- }
-
- Column {
- anchors.verticalCenter: parent.verticalCenter
- spacing: 40
-
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.main
- && wDataCntr.weatherData.main.pressure) ?
- String(wDataCntr.weatherData.main.pressure)
- + " hPa" : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
-
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.main
- && wDataCntr.weatherData.main.sea_level) ?
- String(wDataCntr.weatherData.main.sea_level)
- + " hPa" : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
-
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.main
- && wDataCntr.weatherData.main.grnd_level) ?
- String(wDataCntr.weatherData.main.grnd_level)
- + " hPa" : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
- }
- }
- }
-
- SwipeViewPage {
- id: weatherPage4
-
- Column {
- spacing: 40
- anchors.centerIn: parent
-
- Row {
- spacing: 30
- anchors.horizontalCenter: parent.horizontalCenter
-
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/sunrise")
- }
-
- Text {
- anchors.verticalCenter: parent.verticalCenter
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.sys
- && wDataCntr.weatherData.sys.sunrise) ?
- WeatherData.getTimeHMS(wDataCntr.weatherData.sys.sunrise)
- : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
- }
-
- Row {
- spacing: 30
- anchors.horizontalCenter: parent.horizontalCenter
-
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/sunset")
- }
-
- Text {
- anchors.verticalCenter: parent.verticalCenter
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.sys
- && wDataCntr.weatherData.sys.sunset) ?
- WeatherData.getTimeHMS(wDataCntr.weatherData.sys.sunset)
- : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
- }
- }
- }
- }
-
- QtObject {
- id: wDataCntr
- property var weatherData
- }
-
- QQC2.PageIndicator {
- count: svWeatherContainer.count
- currentIndex: svWeatherContainer.currentIndex
-
- anchors.bottom: svWeatherContainer.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
- Component.onCompleted: {
- WeatherData.requestWeatherData(wDataCntr)
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark.png
deleted file mode 100644
index 5d82238c..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark@2x.png
deleted file mode 100644
index d83bb4f0..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light.png b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light.png
deleted file mode 100644
index 5f3bf714..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light@2x.png
deleted file mode 100644
index a23364c5..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark.png
deleted file mode 100644
index b2870a55..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark@2x.png
deleted file mode 100644
index 061f9b82..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light.png b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light.png
deleted file mode 100644
index 7b1b1587..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light@2x.png
deleted file mode 100644
index 1a40c642..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark.png
deleted file mode 100644
index 9cac22e1..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark@2x.png
deleted file mode 100644
index fe326823..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light.png
deleted file mode 100644
index f67a5dff..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light@2x.png
deleted file mode 100644
index 86f54837..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark.png
deleted file mode 100644
index 0068d305..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark@2x.png
deleted file mode 100644
index e515bcc3..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light.png
deleted file mode 100644
index 495f78a7..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light@2x.png
deleted file mode 100644
index d220e829..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark.png
deleted file mode 100644
index a207d944..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark@2x.png
deleted file mode 100644
index c0e4ef39..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light.png b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light.png
deleted file mode 100644
index c4f7b61c..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light@2x.png
deleted file mode 100644
index 50d4f4c4..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark.png
deleted file mode 100644
index 6a530491..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark@2x.png
deleted file mode 100644
index 487e3e78..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/wind-light.png b/examples/quickcontrols2/wearable/qml/Weather/images/wind-light.png
deleted file mode 100644
index 97824bee..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/wind-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/wind-light@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/wind-light@2x.png
deleted file mode 100644
index 7f94bd85..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/wind-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/weather.js b/examples/quickcontrols2/wearable/qml/Weather/weather.js
deleted file mode 100644
index b3bf4465..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/weather.js
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-function requestWeatherData(cntr) {
- var xhr = new XMLHttpRequest;
- xhr.open("GET", "weather.json");
- xhr.onreadystatechange = function () {
- if (xhr.readyState === XMLHttpRequest.DONE) {
- cntr.weatherData = JSON.parse(xhr.responseText)
- }
- }
- xhr.send();
-}
-
-function getTimeHMS(utcTime) {
- var date = new Date(utcTime * 1000);
- // Hours part from the timestamp
- var hours = date.getHours();
- var ampm = Math.floor((hours / 12)) ? " PM" : " AM";
- hours = (hours % 12);
-
- // Minutes part from the timestamp
- var minutes = "0" + date.getMinutes();
- // Seconds part from the timestamp
- var seconds = "0" + date.getSeconds();
-
- // Will display time in 10:30:23 format
- return hours % 12 + ':' + minutes.substr(-2) + ':' + seconds.substr(-2)
- + ampm;
-}
diff --git a/examples/quickcontrols2/wearable/qml/Weather/weather.json b/examples/quickcontrols2/wearable/qml/Weather/weather.json
deleted file mode 100644
index 2cce95c6..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/weather.json
+++ /dev/null
@@ -1 +0,0 @@
-{"coord":{"lon":-122.42,"lat":37.77},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"base":"stations","main":{"temp":45.22,"pressure":1020.17,"humidity":88,"temp_min":36.92,"temp_max":58.92,"sea_level":1028.19,"grnd_level":1020.17},"wind":{"speed":6.73,"deg":201.002},"clouds":{"all":68},"dt":1476412232,"sys":{"message":0.012,"country":"US","sunrise":1476454666,"sunset":1476495156},"id":5391959,"name":"San Francisco","cod":200}
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/Clock.qml b/examples/quickcontrols2/wearable/qml/WorldClock/Clock.qml
deleted file mode 100644
index 31211309..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/Clock.qml
+++ /dev/null
@@ -1,188 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls as QQC2
-import ".."
-import "../Style"
-
-SwipeViewPage {
- id: clock
-
- property int hours
- property int minutes
- property int seconds
- property real shift: timeShift
- property bool night: false
- property bool internationalTime: true //Unset for local time
-
- function getWatchFaceImage(imageName) {
- return "images/" + imageName
- }
-
- function timeChanged() {
- var date = new Date
- hours = internationalTime ? date.getUTCHours() + Math.floor(
- clock.shift) : date.getHours()
- night = (hours < 7 || hours > 19)
- minutes = internationalTime ?
- date.getUTCMinutes() + ((clock.shift % 1) * 60) : date.getMinutes()
- seconds = date.getUTCSeconds()
- }
-
- Timer {
- interval: 100
- running: true
- repeat: true
- onTriggered: clock.timeChanged()
- }
-
- Item {
- anchors.centerIn: parent
-
- width: 200
- height: 220
-
- Rectangle {
- color: clock.night ? UIStyle.colorQtGray1 : UIStyle.colorQtGray10
- radius: width / 2
- width: parent.width
- height: parent.width
- }
-
- Image {
- id: background
- source: getWatchFaceImage("swissdaydial.png")
- visible: clock.night == false
- }
- Image {
- source: getWatchFaceImage("swissnightdial.png")
- visible: clock.night == true
- }
-
- Image {
- x: 92.5
- y: 27
- source: getWatchFaceImage(clock.night ?
- "swissnighthour.png"
- : "swissdayhour.png")
- transform: Rotation {
- id: hourRotation
- origin.x: 7.5
- origin.y: 73
- angle: (clock.hours * 30) + (clock.minutes * 0.5)
- Behavior on angle {
- SpringAnimation {
- spring: 2
- damping: 0.2
- modulus: 360
- }
- }
- }
- }
-
- Image {
- x: 93.5
- y: 17
- source: getWatchFaceImage(clock.night ?
- "swissnightminute.png"
- : "swissdayminute.png")
- transform: Rotation {
- id: minuteRotation
- origin.x: 6.5
- origin.y: 83
- angle: clock.minutes * 6
- Behavior on angle {
- SpringAnimation {
- spring: 2
- damping: 0.2
- modulus: 360
- }
- }
- }
- }
-
- Image {
- x: 97.5
- y: 20
- source: getWatchFaceImage("second.png")
- transform: Rotation {
- id: secondRotation
- origin.x: 2.5
- origin.y: 80
- angle: clock.seconds * 6
- Behavior on angle {
- SpringAnimation {
- spring: 2
- damping: 0.2
- modulus: 360
- }
- }
- }
- }
-
- Image {
- anchors.centerIn: background
- source: getWatchFaceImage("center.png")
- }
-
- Text {
- id: cityLabel
- anchors.bottom: parent.bottom
- anchors.bottomMargin: 2
- anchors.horizontalCenter: parent.horizontalCenter
-
- text: cityName
- color: UIStyle.themeColorQtGray1
- font.pixelSize: UIStyle.fontSizeXS
- font.letterSpacing: 2
- }
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/WorldClockPage.qml b/examples/quickcontrols2/wearable/qml/WorldClock/WorldClockPage.qml
deleted file mode 100644
index b2f881e3..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/WorldClockPage.qml
+++ /dev/null
@@ -1,107 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls as QQC2
-import "../Style"
-
-Item {
- QQC2.SwipeView {
- id: svWatchContainer
-
- anchors.fill: parent
-
- ListModel {
- id: placesList
- ListElement {
- cityName: "New York"
- timeShift: -4
- }
- ListElement {
- cityName: "London"
- timeShift: 0
- }
- ListElement {
- cityName: "Oslo"
- timeShift: 1
- }
- ListElement {
- cityName: "Mumbai"
- timeShift: 5.5
- }
- ListElement {
- cityName: "Tokyo"
- timeShift: 9
- }
- ListElement {
- cityName: "Brisbane"
- timeShift: 10
- }
- ListElement {
- cityName: "Los Angeles"
- timeShift: -8
- }
- }
-
- Repeater {
- model: placesList
- delegate: Clock {
- }
- }
- }
-
- QQC2.PageIndicator {
- count: svWatchContainer.count
- currentIndex: svWatchContainer.currentIndex
-
- anchors.bottom: svWatchContainer.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/center.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/center.png
deleted file mode 100644
index 0dec43a0..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/center.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/center@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/center@2x.png
deleted file mode 100644
index dffc5d60..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/center@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night.png
deleted file mode 100644
index 2de33024..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night@2x.png
deleted file mode 100644
index f675acea..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/clock.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/clock.png
deleted file mode 100644
index 686fb8c2..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/clock.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/second.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/second.png
deleted file mode 100644
index 1e64f357..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/second.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/second@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/second@2x.png
deleted file mode 100644
index cebc1deb..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/second@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial.png
deleted file mode 100644
index 0e632153..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial@2x.png
deleted file mode 100644
index ed5de8c6..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour.png
deleted file mode 100644
index 4a835ac3..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour@2x.png
deleted file mode 100644
index 70f3fa0e..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute.png
deleted file mode 100644
index 048acc7b..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute@2x.png
deleted file mode 100644
index 4cc6ce64..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial.png
deleted file mode 100644
index ee5a15bb..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial@2x.png
deleted file mode 100644
index ec7e5c77..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour.png
deleted file mode 100644
index c5b41cb0..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour@2x.png
deleted file mode 100644
index bbbc36f1..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute.png
deleted file mode 100644
index 026c7424..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute@2x.png
deleted file mode 100644
index 8ad69047..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissseconds.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissseconds.png
deleted file mode 100644
index 06446ac0..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissseconds.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/wearable.cpp b/examples/quickcontrols2/wearable/wearable.cpp
deleted file mode 100644
index a602eddc..00000000
--- a/examples/quickcontrols2/wearable/wearable.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-#include <QQuickStyle>
-#include <QIcon>
-
-int main(int argc, char *argv[])
-{
- QCoreApplication::setApplicationName("Wearable");
- QCoreApplication::setOrganizationName("QtProject");
-
- QGuiApplication app(argc, argv);
-
- //! [style]
- QQuickStyle::setStyle(QStringLiteral("qrc:/qml/Style"));
- //! [style]
-
- //! [icons]
- QIcon::setThemeName(QStringLiteral("wearable"));
- //! [icons]
-
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/wearable.qml")));
-
- return app.exec();
-}
diff --git a/examples/quickcontrols2/wearable/wearable.pro b/examples/quickcontrols2/wearable/wearable.pro
deleted file mode 100644
index 8d55e44e..00000000
--- a/examples/quickcontrols2/wearable/wearable.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-TEMPLATE = app
-TARGET = wearable
-QT += quick quickcontrols2
-
-SOURCES += \
- wearable.cpp
-
-RESOURCES += \
- wearable.qrc
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/wearable
-INSTALLS += target
diff --git a/examples/quickcontrols2/wearable/wearable.qml b/examples/quickcontrols2/wearable/wearable.qml
deleted file mode 100644
index 645ff561..00000000
--- a/examples/quickcontrols2/wearable/wearable.qml
+++ /dev/null
@@ -1,140 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick
-import QtQuick.Controls as QQC2
-import Qt.labs.settings
-import "qml"
-import "qml/Style"
-
-QQC2.ApplicationWindow {
- id: window
- visible: true
- width: 320
- height: 320
- title: qsTr("Wearable")
-
- Settings {
- id: settings
- property bool wireless
- property bool bluetooth
- property int brightness
- property bool darkTheme
- property bool demoMode
- }
-
- Binding {
- target: UIStyle
- property: "darkTheme"
- value: settings.darkTheme
- }
-
- // We need the settings object both here and in SettingsPage,
- // so for convenience, we declare it as a property of the root object so that
- // it will be available to all of the QML files that we load.
- property alias settings: settings
-
- background: Image {
- source: "images/background-" + (settings.darkTheme ? "dark" : "light") + ".png"
- }
-
- header: NaviButton {
- id: homeButton
-
- edge: Qt.TopEdge
- enabled: stackView.depth > 1
- imageSource: "images/home.png"
-
- onClicked: stackView.pop(null)
- }
-
- footer: NaviButton {
- id: backButton
-
- edge: Qt.BottomEdge
- enabled: stackView.depth > 1
- imageSource: "images/back.png"
-
- onClicked: stackView.pop()
- }
-
- QQC2.StackView {
- id: stackView
-
- focus: true
- anchors.fill: parent
-
- initialItem: LauncherPage {
- onLaunched: stackView.push(page)
- }
- }
-
- DemoMode {
- stackView: stackView
- }
-
- DemoModeIndicator {
- id: demoModeIndicator
- y: settings.demoMode ? -height : -height * 2
- anchors.horizontalCenter: parent.horizontalCenter
- height: header.height
- z: window.header.z + 1
- }
-
- MouseArea {
- enabled: settings.demoMode
- anchors.fill: parent
- onClicked: {
- // Stop demo mode and return to the launcher page.
- settings.demoMode = false
- stackView.pop(null)
- }
- }
-}
diff --git a/examples/quickcontrols2/wearable/wearable.qrc b/examples/quickcontrols2/wearable/wearable.qrc
deleted file mode 100644
index db59d038..00000000
--- a/examples/quickcontrols2/wearable/wearable.qrc
+++ /dev/null
@@ -1,155 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>wearable.qml</file>
- <file>qml/LauncherPage.qml</file>
- <file>qml/NaviButton.qml</file>
- <file>icons/wearable/index.theme</file>
- <file>icons/wearable/36x36/alarms.png</file>
- <file>icons/wearable/36x36/fitness.png</file>
- <file>icons/wearable/36x36/navigation.png</file>
- <file>icons/wearable/36x36/notifications.png</file>
- <file>icons/wearable/36x36/settings.png</file>
- <file>icons/wearable/36x36/weather.png</file>
- <file>icons/wearable/36x36/worldclock.png</file>
- <file>icons/wearable/36x36@2/alarms.png</file>
- <file>icons/wearable/36x36@2/fitness.png</file>
- <file>icons/wearable/36x36@2/navigation.png</file>
- <file>icons/wearable/36x36@2/notifications.png</file>
- <file>icons/wearable/36x36@2/settings.png</file>
- <file>icons/wearable/36x36@2/weather.png</file>
- <file>icons/wearable/36x36@2/worldclock.png</file>
- <file>images/background-light.png</file>
- <file>images/background-dark.png</file>
- <file>images/back.png</file>
- <file>images/back@2x.png</file>
- <file>images/home.png</file>
- <file>images/home@2x.png</file>
- <file>qml/Alarms/AlarmsPage.qml</file>
- <file>qml/Fitness/fitness.js</file>
- <file>qml/Fitness/FitnessPage.qml</file>
- <file>qml/Fitness/images/man-running-light.png</file>
- <file>qml/Fitness/images/man-running-light@2x.png</file>
- <file>qml/Fitness/images/man-walking-light.png</file>
- <file>qml/Fitness/images/man-walking-light@2x.png</file>
- <file>qml/Fitness/images/man-running-dark.png</file>
- <file>qml/Fitness/images/man-running-dark@2x.png</file>
- <file>qml/Fitness/images/man-walking-dark.png</file>
- <file>qml/Fitness/images/man-walking-dark@2x.png</file>
- <file>qml/Navigation/navigation.js</file>
- <file>qml/Navigation/NavigationPage.qml</file>
- <file>qml/Navigation/RouteElement.qml</file>
- <file>qml/Navigation/walk_route.json</file>
- <file>qml/Navigation/images/end.png</file>
- <file>qml/Navigation/images/end@2x.png</file>
- <file>qml/Navigation/images/leftturn-light.png</file>
- <file>qml/Navigation/images/leftturn-light@2x.png</file>
- <file>qml/Navigation/images/leftturn-dark.png</file>
- <file>qml/Navigation/images/leftturn-dark@2x.png</file>
- <file>qml/Navigation/images/navigation-light.png</file>
- <file>qml/Navigation/images/navigation-light@2x.png</file>
- <file>qml/Navigation/images/navigation-dark.png</file>
- <file>qml/Navigation/images/navigation-dark@2x.png</file>
- <file>qml/Navigation/images/rightturn-light.png</file>
- <file>qml/Navigation/images/rightturn-light@2x.png</file>
- <file>qml/Navigation/images/rightturn-dark.png</file>
- <file>qml/Navigation/images/rightturn-dark@2x.png</file>
- <file>qml/Navigation/images/start.png</file>
- <file>qml/Navigation/images/start@2x.png</file>
- <file>qml/Navigation/images/straight-light.png</file>
- <file>qml/Navigation/images/straight-light@2x.png</file>
- <file>qml/Navigation/images/straight-dark.png</file>
- <file>qml/Navigation/images/straight-dark@2x.png</file>
- <file>qml/Navigation/images/uturn.png</file>
- <file>qml/Navigation/images/uturn@2x.png</file>
- <file>qml/Notifications/notifications.js</file>
- <file>qml/Notifications/NotificationsPage.qml</file>
- <file>qml/Notifications/images/avatarf-light.png</file>
- <file>qml/Notifications/images/avatarf-light@2x.png</file>
- <file>qml/Notifications/images/avatarm-light.png</file>
- <file>qml/Notifications/images/avatarm-light@2x.png</file>
- <file>qml/Notifications/images/missedcall-light.png</file>
- <file>qml/Notifications/images/missedcall-light@2x.png</file>
- <file>qml/Notifications/images/avatarf-dark.png</file>
- <file>qml/Notifications/images/avatarf-dark@2x.png</file>
- <file>qml/Notifications/images/avatarm-dark.png</file>
- <file>qml/Notifications/images/avatarm-dark@2x.png</file>
- <file>qml/Notifications/images/missedcall-dark.png</file>
- <file>qml/Notifications/images/missedcall-dark@2x.png</file>
- <file>qml/Settings/SettingsPage.qml</file>
- <file>qml/Settings/images/bluetooth-light.png</file>
- <file>qml/Settings/images/bluetooth-light@2x.png</file>
- <file>qml/Settings/images/brightness-light.png</file>
- <file>qml/Settings/images/brightness-light@2x.png</file>
- <file>qml/Settings/images/demo-mode-light.png</file>
- <file>qml/Settings/images/demo-mode-light@2x.png</file>
- <file>qml/Settings/images/demo-mode-dark.png</file>
- <file>qml/Settings/images/demo-mode-dark@2x.png</file>
- <file>qml/Settings/images/demo-mode-white.png</file>
- <file>qml/Settings/images/demo-mode-white@2x.png</file>
- <file>qml/Settings/images/theme-light.png</file>
- <file>qml/Settings/images/theme-light@2x.png</file>
- <file>qml/Settings/images/wifi-light.png</file>
- <file>qml/Settings/images/wifi-light@2x.png</file>
- <file>qml/Settings/images/bluetooth-dark.png</file>
- <file>qml/Settings/images/bluetooth-dark@2x.png</file>
- <file>qml/Settings/images/brightness-dark.png</file>
- <file>qml/Settings/images/brightness-dark@2x.png</file>
- <file>qml/Settings/images/theme-dark.png</file>
- <file>qml/Settings/images/theme-dark@2x.png</file>
- <file>qml/Settings/images/wifi-dark.png</file>
- <file>qml/Settings/images/wifi-dark@2x.png</file>
- <file>qml/Style/qmldir</file>
- <file>qml/Style/PageIndicator.qml</file>
- <file>qml/Style/Slider.qml</file>
- <file>qml/Style/Switch.qml</file>
- <file>qml/Style/UIStyle.qml</file>
- <file>qml/Weather/weather.js</file>
- <file>qml/Weather/weather.json</file>
- <file>qml/Weather/WeatherPage.qml</file>
- <file>qml/Weather/images/humidity-light.png</file>
- <file>qml/Weather/images/humidity-light@2x.png</file>
- <file>qml/Weather/images/pressure-light.png</file>
- <file>qml/Weather/images/pressure-light@2x.png</file>
- <file>qml/Weather/images/sunrise-light.png</file>
- <file>qml/Weather/images/sunrise-light@2x.png</file>
- <file>qml/Weather/images/sunset-light.png</file>
- <file>qml/Weather/images/sunset-light@2x.png</file>
- <file>qml/Weather/images/temperature-light.png</file>
- <file>qml/Weather/images/temperature-light@2x.png</file>
- <file>qml/Weather/images/wind-light.png</file>
- <file>qml/Weather/images/wind-light@2x.png</file>
- <file>qml/Weather/images/humidity-dark.png</file>
- <file>qml/Weather/images/humidity-dark@2x.png</file>
- <file>qml/Weather/images/pressure-dark.png</file>
- <file>qml/Weather/images/pressure-dark@2x.png</file>
- <file>qml/Weather/images/sunrise-dark.png</file>
- <file>qml/Weather/images/sunrise-dark@2x.png</file>
- <file>qml/Weather/images/sunset-dark.png</file>
- <file>qml/Weather/images/sunset-dark@2x.png</file>
- <file>qml/Weather/images/temperature-dark.png</file>
- <file>qml/Weather/images/temperature-dark@2x.png</file>
- <file>qml/Weather/images/wind-dark.png</file>
- <file>qml/Weather/images/wind-dark@2x.png</file>
- <file>qml/WorldClock/Clock.qml</file>
- <file>qml/WorldClock/WorldClockPage.qml</file>
- <file>qml/WorldClock/images/center.png</file>
- <file>qml/WorldClock/images/center@2x.png</file>
- <file>qml/WorldClock/images/second.png</file>
- <file>qml/WorldClock/images/second@2x.png</file>
- <file>qml/WorldClock/images/swissdaydial.png</file>
- <file>qml/WorldClock/images/swissdaydial@2x.png</file>
- <file>qml/WorldClock/images/swissdayhour.png</file>
- <file>qml/WorldClock/images/swissdayhour@2x.png</file>
- <file>qml/WorldClock/images/swissdayminute.png</file>
- <file>qml/WorldClock/images/swissdayminute@2x.png</file>
- <file>qml/WorldClock/images/swissnightdial.png</file>
- <file>qml/WorldClock/images/swissnightdial@2x.png</file>
- <file>qml/WorldClock/images/swissnighthour.png</file>
- <file>qml/WorldClock/images/swissnighthour@2x.png</file>
- <file>qml/WorldClock/images/swissnightminute.png</file>
- <file>qml/WorldClock/images/swissnightminute@2x.png</file>
- <file>qml/SwipeViewPage.qml</file>
- <file>qml/DemoMode.qml</file>
- <file>qml/DemoModeIndicator.qml</file>
- </qresource>
-</RCC>