aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/wearable/qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols2/wearable/qml')
-rw-r--r--examples/quickcontrols2/wearable/qml/Alarms/images/alarms.pngbin689 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Alarms/images/alarms@2x.pngbin1208 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/fitness.pngbin541 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/fitness@2x.pngbin958 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/LauncherPage.qml33
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/notifications.pngbin683 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/notifications@2x.pngbin1316 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/settings.pngbin703 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/settings@2x.pngbin1233 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/weather.pngbin548 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/weather@2x.pngbin1061 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/worldclock.pngbin601 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/worldclock@2x.pngbin1101 -> 0 bytes
13 files changed, 15 insertions, 18 deletions
diff --git a/examples/quickcontrols2/wearable/qml/Alarms/images/alarms.png b/examples/quickcontrols2/wearable/qml/Alarms/images/alarms.png
deleted file mode 100644
index f38b3d4e..00000000
--- a/examples/quickcontrols2/wearable/qml/Alarms/images/alarms.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Alarms/images/alarms@2x.png b/examples/quickcontrols2/wearable/qml/Alarms/images/alarms@2x.png
deleted file mode 100644
index ba68519a..00000000
--- a/examples/quickcontrols2/wearable/qml/Alarms/images/alarms@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/fitness.png b/examples/quickcontrols2/wearable/qml/Fitness/images/fitness.png
deleted file mode 100644
index 80ec43cc..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/fitness.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/fitness@2x.png b/examples/quickcontrols2/wearable/qml/Fitness/images/fitness@2x.png
deleted file mode 100644
index 088c15b8..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/fitness@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/LauncherPage.qml b/examples/quickcontrols2/wearable/qml/LauncherPage.qml
index 34f117c4..9d6d9ae9 100644
--- a/examples/quickcontrols2/wearable/qml/LauncherPage.qml
+++ b/examples/quickcontrols2/wearable/qml/LauncherPage.qml
@@ -49,7 +49,7 @@
****************************************************************************/
import QtQuick 2.7
-import QtQuick.Controls 2.0 as QQC2
+import QtQuick.Controls 2.1 as QQC2
import "Style"
PathView {
@@ -68,56 +68,53 @@ PathView {
model: ListModel {
ListElement {
title: qsTr("World Clock")
- icon: "WorldClock/images/worldclock.png"
+ icon: "worldclock"
page: "WorldClock/WorldClockPage.qml"
}
ListElement {
title: qsTr("Navigation")
- icon: "Navigation/images/navigation.png"
+ icon: "navigation"
page: "Navigation/NavigationPage.qml"
}
ListElement {
title: qsTr("Weather")
- icon: "Weather/images/weather.png"
+ icon: "weather"
page: "Weather/WeatherPage.qml"
}
ListElement {
title: qsTr("Fitness")
- icon: "Fitness/images/fitness.png"
+ icon: "fitness"
page: "Fitness/FitnessPage.qml"
}
ListElement {
title: qsTr("Notifications")
- icon: "Notifications/images/notifications.png"
+ icon: "notifications"
page: "Notifications/NotificationsPage.qml"
}
ListElement {
title: qsTr("Alarm")
- icon: "Alarms/images/alarms.png"
+ icon: "alarms"
page: "Alarms/AlarmsPage.qml"
}
ListElement {
title: qsTr("Settings")
- icon: "Settings/images/settings.png"
+ icon: "settings"
page: "Settings/SettingsPage.qml"
}
}
- delegate: QQC2.AbstractButton {
+ delegate: QQC2.RoundButton {
width: circularView.itemSize
height: circularView.itemSize
- text: model.title
+ property string title: model.title
+
+ icon.width: 36
+ icon.height: 36
+ icon.name: model.icon
opacity: PathView.itemOpacity
padding: 12
- contentItem: Image {
- source: model.icon
- fillMode: Image.Pad
- sourceSize.width: parent.availableWidth
- sourceSize.height: parent.availableHeight
- }
-
background: Rectangle {
radius: width / 2
border.width: 3
@@ -180,7 +177,7 @@ PathView {
visible: currentItem ? currentItem.PathView.itemOpacity === 1.0 : 0
- text: currentItem ? currentItem.text : ""
+ text: currentItem ? currentItem.title : ""
anchors.centerIn: parent
anchors.verticalCenterOffset: (circularView.itemSize + height) / 2
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/notifications.png b/examples/quickcontrols2/wearable/qml/Notifications/images/notifications.png
deleted file mode 100644
index bcbe85ef..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/notifications.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/notifications@2x.png b/examples/quickcontrols2/wearable/qml/Notifications/images/notifications@2x.png
deleted file mode 100644
index c3b284ed..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/notifications@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/settings.png b/examples/quickcontrols2/wearable/qml/Settings/images/settings.png
deleted file mode 100644
index 093404f9..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/settings.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/settings@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/settings@2x.png
deleted file mode 100644
index a24a1df7..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/settings@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/weather.png b/examples/quickcontrols2/wearable/qml/Weather/images/weather.png
deleted file mode 100644
index 07bf8187..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/weather.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/weather@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/weather@2x.png
deleted file mode 100644
index 6e4ce2f3..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/weather@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/worldclock.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/worldclock.png
deleted file mode 100644
index 91a70493..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/worldclock.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/worldclock@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/worldclock@2x.png
deleted file mode 100644
index 03abe162..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/worldclock@2x.png
+++ /dev/null
Binary files differ