From f24a76bea9bf033e6f2eea70ea9cdb43cdb8f6f9 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Fri, 15 Sep 2017 16:25:40 +0200 Subject: Wearable Demo: make use of the icon support Change-Id: I7a691f7b7c3d2f2a9f1d9a1ded29269184ddfcfe Reviewed-by: Mitch Curtis --- .../doc/src/qtquickcontrols2-wearable.qdoc | 18 +++++++++++ .../wearable/icons/wearable/36x36/alarms.png | Bin 0 -> 689 bytes .../wearable/icons/wearable/36x36/fitness.png | Bin 0 -> 541 bytes .../wearable/icons/wearable/36x36/navigation.png | Bin 0 -> 581 bytes .../icons/wearable/36x36/notifications.png | Bin 0 -> 683 bytes .../wearable/icons/wearable/36x36/settings.png | Bin 0 -> 703 bytes .../wearable/icons/wearable/36x36/weather.png | Bin 0 -> 548 bytes .../wearable/icons/wearable/36x36/worldclock.png | Bin 0 -> 601 bytes .../wearable/icons/wearable/36x36@2/alarms.png | Bin 0 -> 1208 bytes .../wearable/icons/wearable/36x36@2/fitness.png | Bin 0 -> 958 bytes .../wearable/icons/wearable/36x36@2/navigation.png | Bin 0 -> 1063 bytes .../icons/wearable/36x36@2/notifications.png | Bin 0 -> 1316 bytes .../wearable/icons/wearable/36x36@2/settings.png | Bin 0 -> 1233 bytes .../wearable/icons/wearable/36x36@2/weather.png | Bin 0 -> 1061 bytes .../wearable/icons/wearable/36x36@2/worldclock.png | Bin 0 -> 1101 bytes .../wearable/icons/wearable/index.theme | 14 +++++++++ .../wearable/qml/Alarms/images/alarms.png | Bin 689 -> 0 bytes .../wearable/qml/Alarms/images/alarms@2x.png | Bin 1208 -> 0 bytes .../wearable/qml/Fitness/images/fitness.png | Bin 541 -> 0 bytes .../wearable/qml/Fitness/images/fitness@2x.png | Bin 958 -> 0 bytes .../quickcontrols2/wearable/qml/LauncherPage.qml | 33 ++++++++++----------- .../qml/Notifications/images/notifications.png | Bin 683 -> 0 bytes .../qml/Notifications/images/notifications@2x.png | Bin 1316 -> 0 bytes .../wearable/qml/Settings/images/settings.png | Bin 703 -> 0 bytes .../wearable/qml/Settings/images/settings@2x.png | Bin 1233 -> 0 bytes .../wearable/qml/Weather/images/weather.png | Bin 548 -> 0 bytes .../wearable/qml/Weather/images/weather@2x.png | Bin 1061 -> 0 bytes .../wearable/qml/WorldClock/images/worldclock.png | Bin 601 -> 0 bytes .../qml/WorldClock/images/worldclock@2x.png | Bin 1101 -> 0 bytes examples/quickcontrols2/wearable/wearable.cpp | 5 ++++ examples/quickcontrols2/wearable/wearable.qrc | 27 +++++++++-------- 31 files changed, 67 insertions(+), 30 deletions(-) create mode 100644 examples/quickcontrols2/wearable/icons/wearable/36x36/alarms.png create mode 100644 examples/quickcontrols2/wearable/icons/wearable/36x36/fitness.png create mode 100644 examples/quickcontrols2/wearable/icons/wearable/36x36/navigation.png create mode 100644 examples/quickcontrols2/wearable/icons/wearable/36x36/notifications.png create mode 100644 examples/quickcontrols2/wearable/icons/wearable/36x36/settings.png create mode 100644 examples/quickcontrols2/wearable/icons/wearable/36x36/weather.png create mode 100644 examples/quickcontrols2/wearable/icons/wearable/36x36/worldclock.png create mode 100644 examples/quickcontrols2/wearable/icons/wearable/36x36@2/alarms.png create mode 100644 examples/quickcontrols2/wearable/icons/wearable/36x36@2/fitness.png create mode 100644 examples/quickcontrols2/wearable/icons/wearable/36x36@2/navigation.png create mode 100644 examples/quickcontrols2/wearable/icons/wearable/36x36@2/notifications.png create mode 100644 examples/quickcontrols2/wearable/icons/wearable/36x36@2/settings.png create mode 100644 examples/quickcontrols2/wearable/icons/wearable/36x36@2/weather.png create mode 100644 examples/quickcontrols2/wearable/icons/wearable/36x36@2/worldclock.png create mode 100644 examples/quickcontrols2/wearable/icons/wearable/index.theme delete mode 100644 examples/quickcontrols2/wearable/qml/Alarms/images/alarms.png delete mode 100644 examples/quickcontrols2/wearable/qml/Alarms/images/alarms@2x.png delete mode 100644 examples/quickcontrols2/wearable/qml/Fitness/images/fitness.png delete mode 100644 examples/quickcontrols2/wearable/qml/Fitness/images/fitness@2x.png delete mode 100644 examples/quickcontrols2/wearable/qml/Notifications/images/notifications.png delete mode 100644 examples/quickcontrols2/wearable/qml/Notifications/images/notifications@2x.png delete mode 100644 examples/quickcontrols2/wearable/qml/Settings/images/settings.png delete mode 100644 examples/quickcontrols2/wearable/qml/Settings/images/settings@2x.png delete mode 100644 examples/quickcontrols2/wearable/qml/Weather/images/weather.png delete mode 100644 examples/quickcontrols2/wearable/qml/Weather/images/weather@2x.png delete mode 100644 examples/quickcontrols2/wearable/qml/WorldClock/images/worldclock.png delete mode 100644 examples/quickcontrols2/wearable/qml/WorldClock/images/worldclock@2x.png (limited to 'examples/quickcontrols2') diff --git a/examples/quickcontrols2/wearable/doc/src/qtquickcontrols2-wearable.qdoc b/examples/quickcontrols2/wearable/doc/src/qtquickcontrols2-wearable.qdoc index 7d4a6a23..124984c1 100644 --- a/examples/quickcontrols2/wearable/doc/src/qtquickcontrols2-wearable.qdoc +++ b/examples/quickcontrols2/wearable/doc/src/qtquickcontrols2-wearable.qdoc @@ -99,6 +99,21 @@ \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 2} for more details about icons and themes. + \section1 Launcher Page The application launcher is implemented using a circular PathView in @@ -116,6 +131,9 @@ \skipto "Settings" \printuntil delegate: \dots 8 + \skipto icon.width + \printuntil icon.name + \dots 8 \skipto onClicked: \printto path: \dots diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/alarms.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/alarms.png new file mode 100644 index 00000000..f38b3d4e Binary files /dev/null and b/examples/quickcontrols2/wearable/icons/wearable/36x36/alarms.png differ diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/fitness.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/fitness.png new file mode 100644 index 00000000..80ec43cc Binary files /dev/null and b/examples/quickcontrols2/wearable/icons/wearable/36x36/fitness.png differ diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/navigation.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/navigation.png new file mode 100644 index 00000000..9b8cb8e6 Binary files /dev/null and b/examples/quickcontrols2/wearable/icons/wearable/36x36/navigation.png differ diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/notifications.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/notifications.png new file mode 100644 index 00000000..bcbe85ef Binary files /dev/null and b/examples/quickcontrols2/wearable/icons/wearable/36x36/notifications.png differ diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/settings.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/settings.png new file mode 100644 index 00000000..093404f9 Binary files /dev/null and b/examples/quickcontrols2/wearable/icons/wearable/36x36/settings.png differ diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/weather.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/weather.png new file mode 100644 index 00000000..07bf8187 Binary files /dev/null and b/examples/quickcontrols2/wearable/icons/wearable/36x36/weather.png differ diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/worldclock.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/worldclock.png new file mode 100644 index 00000000..91a70493 Binary files /dev/null and b/examples/quickcontrols2/wearable/icons/wearable/36x36/worldclock.png differ diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/alarms.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/alarms.png new file mode 100644 index 00000000..ba68519a Binary files /dev/null and b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/alarms.png differ diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/fitness.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/fitness.png new file mode 100644 index 00000000..088c15b8 Binary files /dev/null and b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/fitness.png differ diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/navigation.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/navigation.png new file mode 100644 index 00000000..8d133abc Binary files /dev/null and b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/navigation.png differ diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/notifications.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/notifications.png new file mode 100644 index 00000000..c3b284ed Binary files /dev/null and b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/notifications.png differ diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/settings.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/settings.png new file mode 100644 index 00000000..a24a1df7 Binary files /dev/null and b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/settings.png differ diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/weather.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/weather.png new file mode 100644 index 00000000..6e4ce2f3 Binary files /dev/null and b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/weather.png differ diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/worldclock.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/worldclock.png new file mode 100644 index 00000000..03abe162 Binary files /dev/null and b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/worldclock.png differ diff --git a/examples/quickcontrols2/wearable/icons/wearable/index.theme b/examples/quickcontrols2/wearable/icons/wearable/index.theme new file mode 100644 index 00000000..da702d4a --- /dev/null +++ b/examples/quickcontrols2/wearable/icons/wearable/index.theme @@ -0,0 +1,14 @@ +[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/qml/Alarms/images/alarms.png b/examples/quickcontrols2/wearable/qml/Alarms/images/alarms.png deleted file mode 100644 index f38b3d4e..00000000 Binary files a/examples/quickcontrols2/wearable/qml/Alarms/images/alarms.png and /dev/null 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 Binary files a/examples/quickcontrols2/wearable/qml/Alarms/images/alarms@2x.png and /dev/null 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 Binary files a/examples/quickcontrols2/wearable/qml/Fitness/images/fitness.png and /dev/null 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 Binary files a/examples/quickcontrols2/wearable/qml/Fitness/images/fitness@2x.png and /dev/null 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 Binary files a/examples/quickcontrols2/wearable/qml/Notifications/images/notifications.png and /dev/null 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 Binary files a/examples/quickcontrols2/wearable/qml/Notifications/images/notifications@2x.png and /dev/null 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 Binary files a/examples/quickcontrols2/wearable/qml/Settings/images/settings.png and /dev/null 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 Binary files a/examples/quickcontrols2/wearable/qml/Settings/images/settings@2x.png and /dev/null 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 Binary files a/examples/quickcontrols2/wearable/qml/Weather/images/weather.png and /dev/null 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 Binary files a/examples/quickcontrols2/wearable/qml/Weather/images/weather@2x.png and /dev/null 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 Binary files a/examples/quickcontrols2/wearable/qml/WorldClock/images/worldclock.png and /dev/null 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 Binary files a/examples/quickcontrols2/wearable/qml/WorldClock/images/worldclock@2x.png and /dev/null differ diff --git a/examples/quickcontrols2/wearable/wearable.cpp b/examples/quickcontrols2/wearable/wearable.cpp index e6fdad74..e90ec413 100644 --- a/examples/quickcontrols2/wearable/wearable.cpp +++ b/examples/quickcontrols2/wearable/wearable.cpp @@ -51,6 +51,7 @@ #include #include #include +#include int main(int argc, char *argv[]) { @@ -61,6 +62,10 @@ int main(int argc, char *argv[]) QQuickStyle::setStyle(QStringLiteral("qrc:/qml/Style")); //! [style] + //! [icons] + QIcon::setThemeName(QStringLiteral("wearable")); + //! [icons] + QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:/wearable.qml"))); diff --git a/examples/quickcontrols2/wearable/wearable.qrc b/examples/quickcontrols2/wearable/wearable.qrc index c8143a18..ea81edc6 100644 --- a/examples/quickcontrols2/wearable/wearable.qrc +++ b/examples/quickcontrols2/wearable/wearable.qrc @@ -3,18 +3,29 @@ wearable.qml qml/LauncherPage.qml qml/NaviButton.qml + icons/wearable/index.theme + 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 images/background.png images/back.png images/back@2x.png images/home.png images/home@2x.png qml/Alarms/AlarmsPage.qml - qml/Alarms/images/alarms.png - qml/Alarms/images/alarms@2x.png qml/Fitness/fitness.js qml/Fitness/FitnessPage.qml - qml/Fitness/images/fitness.png - qml/Fitness/images/fitness@2x.png qml/Fitness/images/man-running.png qml/Fitness/images/man-running@2x.png qml/Fitness/images/man-walking.png @@ -45,8 +56,6 @@ qml/Notifications/images/avatarm@2x.png qml/Notifications/images/missedcall.png qml/Notifications/images/missedcall@2x.png - qml/Notifications/images/notifications.png - qml/Notifications/images/notifications@2x.png qml/Settings/SettingsPage.qml qml/Settings/images/bluetooth.png qml/Settings/images/bluetooth@2x.png @@ -54,8 +63,6 @@ qml/Settings/images/brightness@2x.png qml/Settings/images/contrast.png qml/Settings/images/contrast@2x.png - qml/Settings/images/settings.png - qml/Settings/images/settings@2x.png qml/Settings/images/wifi.png qml/Settings/images/wifi@2x.png qml/Style/qmldir @@ -76,8 +83,6 @@ qml/Weather/images/sunset@2x.png qml/Weather/images/temperature.png qml/Weather/images/temperature@2x.png - qml/Weather/images/weather.png - qml/Weather/images/weather@2x.png qml/Weather/images/wind.png qml/Weather/images/wind@2x.png qml/WorldClock/Clock.qml @@ -98,7 +103,5 @@ qml/WorldClock/images/swissnighthour@2x.png qml/WorldClock/images/swissnightminute.png qml/WorldClock/images/swissnightminute@2x.png - qml/WorldClock/images/worldclock.png - qml/WorldClock/images/worldclock@2x.png -- cgit v1.2.3 From 1eacc022827a51fac4d3f2e6dcb3c4f9fa199315 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 31 Oct 2017 12:23:36 +0100 Subject: Add Automotive Imagine style example Change-Id: I7d7e49d0d4e1cbd61892215677c7ea0c5471af02 Reviewed-by: J-P Nurmi --- .../imagine/automotive/automotive.cpp | 75 +++ .../imagine/automotive/automotive.pro | 15 + .../doc/images/qtquickcontrols2-automotive.png | Bin 0 -> 356738 bytes .../doc/src/qtquickcontrols2-automotive.qdoc | 40 ++ .../automotive/icons/automotive/44x44/air-con.png | Bin 0 -> 1394 bytes .../automotive/icons/automotive/44x44/command.png | Bin 0 -> 1350 bytes .../automotive/icons/automotive/44x44/message.png | Bin 0 -> 479 bytes .../automotive/icons/automotive/44x44/music.png | Bin 0 -> 622 bytes .../automotive/icons/automotive/44x44/seats.png | Bin 0 -> 1017 bytes .../automotive/icons/automotive/44x44/settings.png | Bin 0 -> 1406 bytes .../icons/automotive/44x44/statistics.png | Bin 0 -> 324 bytes .../automotive/icons/automotive/44x44/windows.png | Bin 0 -> 564 bytes .../icons/automotive/44x44@2/air-con.png | Bin 0 -> 2337 bytes .../icons/automotive/44x44@2/command.png | Bin 0 -> 2461 bytes .../icons/automotive/44x44@2/message.png | Bin 0 -> 639 bytes .../automotive/icons/automotive/44x44@2/music.png | Bin 0 -> 1106 bytes .../icons/automotive/44x44@2/navigation.png | Bin 0 -> 1604 bytes .../automotive/icons/automotive/44x44@2/seats.png | Bin 0 -> 1793 bytes .../icons/automotive/44x44@2/settings.png | Bin 0 -> 2413 bytes .../icons/automotive/44x44@2/statistics.png | Bin 0 -> 394 bytes .../icons/automotive/44x44@2/windows.png | Bin 0 -> 999 bytes .../imagine/automotive/icons/automotive/icons.svg | 526 +++++++++++++++++ .../automotive/icons/automotive/index.theme | 14 + .../imagine/automotive/icons/car.png | Bin 0 -> 14952 bytes .../imagine/automotive/icons/car@2x.png | Bin 0 -> 37391 bytes .../imagine/automotive/icons/icons.qrc | 29 + .../imagine/automotive/icons/warning.png | Bin 0 -> 1212 bytes .../imagine/automotive/icons/warning@2x.png | Bin 0 -> 2118 bytes .../imagine/automotive/icons/weather.png | Bin 0 -> 1092 bytes .../imagine/automotive/icons/weather@2x.png | Bin 0 -> 1798 bytes .../applicationwindow-background.png | Bin 0 -> 91 bytes .../applicationwindow-background@2x.png | Bin 0 -> 98 bytes .../button-background-checked-hovered.9.png | Bin 0 -> 368 bytes .../button-background-checked-hovered@2x.9.png | Bin 0 -> 669 bytes .../imagine-assets/button-background-checked.9.png | Bin 0 -> 291 bytes .../button-background-checked@2x.9.png | Bin 0 -> 506 bytes .../imagine-assets/button-background-hovered.9.png | Bin 0 -> 315 bytes .../button-background-hovered@2x.9.png | Bin 0 -> 581 bytes .../imagine-assets/button-background-pressed.9.png | Bin 0 -> 289 bytes .../button-background-pressed@2x.9.png | Bin 0 -> 501 bytes .../imagine-assets/button-background.9.png | Bin 0 -> 291 bytes .../imagine-assets/button-background@2x.9.png | Bin 0 -> 515 bytes .../imagine-assets/dial-background-hovered.png | Bin 0 -> 3383 bytes .../imagine-assets/dial-background-hovered@2x.png | Bin 0 -> 7128 bytes .../imagine-assets/dial-background-pressed.png | Bin 0 -> 3084 bytes .../imagine-assets/dial-background-pressed@2x.png | Bin 0 -> 6196 bytes .../automotive/imagine-assets/dial-background.png | Bin 0 -> 2746 bytes .../imagine-assets/dial-background@2x.png | Bin 0 -> 6094 bytes .../imagine-assets/dial-handle-pressed.png | Bin 0 -> 136 bytes .../imagine-assets/dial-handle-pressed@2x.png | Bin 0 -> 172 bytes .../automotive/imagine-assets/dial-handle.png | Bin 0 -> 164 bytes .../automotive/imagine-assets/dial-handle@2x.png | Bin 0 -> 177 bytes .../imagine-assets/frame-background.9.png | Bin 0 -> 257 bytes .../imagine-assets/frame-background@2x.9.png | Bin 0 -> 383 bytes .../automotive/imagine-assets/imagine-assets.qrc | 80 +++ .../itemdelegate-background-checked.9.png | Bin 0 -> 141 bytes .../itemdelegate-background-checked@2x.9.png | Bin 0 -> 180 bytes .../itemdelegate-background-hovered.9.png | Bin 0 -> 200 bytes .../itemdelegate-background-hovered@2x.9.png | Bin 0 -> 243 bytes .../itemdelegate-background-pressed.9.png | Bin 0 -> 139 bytes .../itemdelegate-background-pressed@2x.9.png | Bin 0 -> 178 bytes .../imagine-assets/itemdelegate-background.9.png | Bin 0 -> 134 bytes .../itemdelegate-background@2x.9.png | Bin 0 -> 172 bytes .../radiobutton-indicator-checked-hovered.png | Bin 0 -> 623 bytes .../radiobutton-indicator-checked-hovered@2x.png | Bin 0 -> 1062 bytes .../radiobutton-indicator-checked-pressed.png | Bin 0 -> 271 bytes .../radiobutton-indicator-checked-pressed@2x.png | Bin 0 -> 429 bytes .../radiobutton-indicator-checked.png | Bin 0 -> 291 bytes .../radiobutton-indicator-checked@2x.png | Bin 0 -> 452 bytes .../radiobutton-indicator-hovered.png | Bin 0 -> 444 bytes .../radiobutton-indicator-hovered@2x.png | Bin 0 -> 842 bytes .../radiobutton-indicator-pressed.png | Bin 0 -> 249 bytes .../radiobutton-indicator-pressed@2x.png | Bin 0 -> 420 bytes .../imagine-assets/radiobutton-indicator.png | Bin 0 -> 231 bytes .../imagine-assets/radiobutton-indicator@2x.png | Bin 0 -> 384 bytes .../imagine-assets/scrollindicator-handle.png | Bin 0 -> 99 bytes .../imagine-assets/scrollindicator-handle@2x.png | Bin 0 -> 100 bytes .../slider-background-horizontal.9.png | Bin 0 -> 177 bytes .../slider-background-horizontal@2x.9.png | Bin 0 -> 274 bytes .../imagine-assets/slider-handle-hovered.png | Bin 0 -> 217 bytes .../imagine-assets/slider-handle-hovered@2x.png | Bin 0 -> 385 bytes .../imagine-assets/slider-handle-pressed.png | Bin 0 -> 155 bytes .../imagine-assets/slider-handle-pressed@2x.png | Bin 0 -> 258 bytes .../automotive/imagine-assets/slider-handle.png | Bin 0 -> 166 bytes .../automotive/imagine-assets/slider-handle@2x.png | Bin 0 -> 312 bytes .../slider-progress-horizontal-pressed.9.png | Bin 0 -> 168 bytes .../slider-progress-horizontal-pressed@2x.9.png | Bin 0 -> 262 bytes .../slider-progress-horizontal.9.png | Bin 0 -> 175 bytes .../slider-progress-horizontal@2x.9.png | Bin 0 -> 269 bytes .../imagine-assets/switchdelegate-background.9.png | Bin 0 -> 112 bytes .../switchdelegate-background@2x.9.png | Bin 0 -> 118 bytes .../switchdelegate-handle-checked-hovered.png | Bin 0 -> 253 bytes .../switchdelegate-handle-checked-hovered@2x.png | Bin 0 -> 441 bytes .../switchdelegate-handle-checked.png | Bin 0 -> 145 bytes .../switchdelegate-handle-checked@2x.png | Bin 0 -> 195 bytes .../switchdelegate-handle-hovered.png | Bin 0 -> 253 bytes .../switchdelegate-handle-hovered@2x.png | Bin 0 -> 452 bytes .../switchdelegate-handle-pressed.png | Bin 0 -> 145 bytes .../switchdelegate-handle-pressed@2x.png | Bin 0 -> 195 bytes .../imagine-assets/switchdelegate-handle.png | Bin 0 -> 217 bytes .../imagine-assets/switchdelegate-handle@2x.png | Bin 0 -> 354 bytes .../switchdelegate-indicator-pressed.png | Bin 0 -> 129 bytes .../switchdelegate-indicator-pressed@2x.png | Bin 0 -> 180 bytes .../imagine-assets/switchdelegate-indicator.png | Bin 0 -> 129 bytes .../imagine-assets/switchdelegate-indicator@2x.png | Bin 0 -> 180 bytes .../toolseparator-separator-vertical.9.png | Bin 0 -> 145 bytes .../toolseparator-separator-vertical@2x.9.png | Bin 0 -> 213 bytes .../imagine/automotive/qml/CustomGlow.qml | 57 ++ .../imagine/automotive/qml/FeatureButton.qml | 70 +++ .../imagine/automotive/qml/GlowingLabel.qml | 90 +++ .../imagine/automotive/qml/automotive.qml | 642 +++++++++++++++++++++ .../quickcontrols2/imagine/automotive/qml/qml.qrc | 8 + .../imagine/automotive/qtquickcontrols2.conf | 10 + examples/quickcontrols2/quickcontrols2.pro | 3 +- 114 files changed, 1658 insertions(+), 1 deletion(-) create mode 100644 examples/quickcontrols2/imagine/automotive/automotive.cpp create mode 100644 examples/quickcontrols2/imagine/automotive/automotive.pro create mode 100644 examples/quickcontrols2/imagine/automotive/doc/images/qtquickcontrols2-automotive.png create mode 100644 examples/quickcontrols2/imagine/automotive/doc/src/qtquickcontrols2-automotive.qdoc create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/air-con.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/command.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/message.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/music.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/seats.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/settings.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/statistics.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/windows.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/air-con.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/command.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/message.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/music.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/navigation.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/seats.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/settings.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/statistics.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/windows.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/icons.svg create mode 100644 examples/quickcontrols2/imagine/automotive/icons/automotive/index.theme create mode 100644 examples/quickcontrols2/imagine/automotive/icons/car.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/car@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/icons.qrc create mode 100644 examples/quickcontrols2/imagine/automotive/icons/warning.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/warning@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/weather.png create mode 100644 examples/quickcontrols2/imagine/automotive/icons/weather@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/button-background.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/button-background@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/imagine-assets.qrc create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator@2x.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical@2x.9.png create mode 100644 examples/quickcontrols2/imagine/automotive/qml/CustomGlow.qml create mode 100644 examples/quickcontrols2/imagine/automotive/qml/FeatureButton.qml create mode 100644 examples/quickcontrols2/imagine/automotive/qml/GlowingLabel.qml create mode 100644 examples/quickcontrols2/imagine/automotive/qml/automotive.qml create mode 100644 examples/quickcontrols2/imagine/automotive/qml/qml.qrc create mode 100644 examples/quickcontrols2/imagine/automotive/qtquickcontrols2.conf (limited to 'examples/quickcontrols2') diff --git a/examples/quickcontrols2/imagine/automotive/automotive.cpp b/examples/quickcontrols2/imagine/automotive/automotive.cpp new file mode 100644 index 00000000..63cc702d --- /dev/null +++ b/examples/quickcontrols2/imagine/automotive/automotive.cpp @@ -0,0 +1,75 @@ +/**************************************************************************** +** +** 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 +#include +#include +#include +#include +#include + +int main(int argc, char *argv[]) +{ + QGuiApplication::setApplicationName("Automotive"); + QGuiApplication::setOrganizationName("QtProject"); + QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + + QGuiApplication app(argc, argv); + + QIcon::setThemeName("automotive"); + + QQmlApplicationEngine engine; + engine.load(QUrl("qrc:/qml/automotive.qml")); + if (engine.rootObjects().isEmpty()) + return -1; + + return app.exec(); +} diff --git a/examples/quickcontrols2/imagine/automotive/automotive.pro b/examples/quickcontrols2/imagine/automotive/automotive.pro new file mode 100644 index 00000000..890e63d8 --- /dev/null +++ b/examples/quickcontrols2/imagine/automotive/automotive.pro @@ -0,0 +1,15 @@ +TEMPLATE = app +TARGET = automotive +QT += quick quickcontrols2 + +SOURCES += \ + automotive.cpp + +RESOURCES += \ + icons/icons.qrc \ + imagine-assets/imagine-assets.qrc \ + qml/qml.qrc \ + qtquickcontrols2.conf + +target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/imagine/automotive +INSTALLS += target diff --git a/examples/quickcontrols2/imagine/automotive/doc/images/qtquickcontrols2-automotive.png b/examples/quickcontrols2/imagine/automotive/doc/images/qtquickcontrols2-automotive.png new file mode 100644 index 00000000..93ea2854 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/doc/images/qtquickcontrols2-automotive.png differ diff --git a/examples/quickcontrols2/imagine/automotive/doc/src/qtquickcontrols2-automotive.qdoc b/examples/quickcontrols2/imagine/automotive/doc/src/qtquickcontrols2-automotive.qdoc new file mode 100644 index 00000000..2107e6ab --- /dev/null +++ b/examples/quickcontrols2/imagine/automotive/doc/src/qtquickcontrols2-automotive.qdoc @@ -0,0 +1,40 @@ +/**************************************************************************** +** +** 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 automotive + \title Qt Quick Controls 2 - Imagine Style Example: Automotive + \ingroup qtquickcontrols2-examples + \brief An automotive user interface using custom Imagine style assets. + + This example demonstrates how custom Imagine style assets can be used to + style an automotive user interface. + + \image qtquickcontrols2-automotive.png + + \include examples-run.qdocinc +*/ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/air-con.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/air-con.png new file mode 100644 index 00000000..70175f6f Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/air-con.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/command.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/command.png new file mode 100644 index 00000000..8f712c78 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/command.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/message.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/message.png new file mode 100644 index 00000000..7773ca63 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/message.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/music.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/music.png new file mode 100644 index 00000000..dc73322b Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/music.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/seats.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/seats.png new file mode 100644 index 00000000..2f9eaa62 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/seats.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/settings.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/settings.png new file mode 100644 index 00000000..b65598b5 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/settings.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/statistics.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/statistics.png new file mode 100644 index 00000000..97970298 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/statistics.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/windows.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/windows.png new file mode 100644 index 00000000..8ed8cec4 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/windows.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/air-con.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/air-con.png new file mode 100644 index 00000000..8822979e Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/air-con.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/command.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/command.png new file mode 100644 index 00000000..918e2b69 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/command.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/message.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/message.png new file mode 100644 index 00000000..1debfdfb Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/message.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/music.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/music.png new file mode 100644 index 00000000..01a3ece4 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/music.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/navigation.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/navigation.png new file mode 100644 index 00000000..3a18fb5f Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/navigation.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/seats.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/seats.png new file mode 100644 index 00000000..7d67f1be Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/seats.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/settings.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/settings.png new file mode 100644 index 00000000..3ce2a1f1 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/settings.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/statistics.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/statistics.png new file mode 100644 index 00000000..afc2cc09 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/statistics.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/windows.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/windows.png new file mode 100644 index 00000000..59bac584 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/windows.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/icons.svg b/examples/quickcontrols2/imagine/automotive/icons/automotive/icons.svg new file mode 100644 index 00000000..daf4633c --- /dev/null +++ b/examples/quickcontrols2/imagine/automotive/icons/automotive/icons.svg @@ -0,0 +1,526 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ! + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/index.theme b/examples/quickcontrols2/imagine/automotive/icons/automotive/index.theme new file mode 100644 index 00000000..cd84146e --- /dev/null +++ b/examples/quickcontrols2/imagine/automotive/icons/automotive/index.theme @@ -0,0 +1,14 @@ +[Icon Theme] +Name=Automotive +Comment=Icon theme for the Qt Quick Controls 2 Automotive Imagine Style Example + +Directories=44x44,44x44@2 + +[44x44] +Size=44 +Type=Fixed + +[44x44@2] +Size=44 +Scale=2 +Type=Fixed diff --git a/examples/quickcontrols2/imagine/automotive/icons/car.png b/examples/quickcontrols2/imagine/automotive/icons/car.png new file mode 100644 index 00000000..4bfc9a47 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/car.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/car@2x.png b/examples/quickcontrols2/imagine/automotive/icons/car@2x.png new file mode 100644 index 00000000..966bc47b Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/car@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/icons.qrc b/examples/quickcontrols2/imagine/automotive/icons/icons.qrc new file mode 100644 index 00000000..5cb79781 --- /dev/null +++ b/examples/quickcontrols2/imagine/automotive/icons/icons.qrc @@ -0,0 +1,29 @@ + + + car.png + car@2x.png + warning.png + warning@2x.png + weather.png + weather@2x.png + automotive/icons.svg + automotive/index.theme + automotive/44x44/air-con.png + automotive/44x44/command.png + automotive/44x44/message.png + automotive/44x44/music.png + automotive/44x44/seats.png + automotive/44x44/settings.png + automotive/44x44/statistics.png + automotive/44x44/windows.png + automotive/44x44@2/air-con.png + automotive/44x44@2/command.png + automotive/44x44@2/message.png + automotive/44x44@2/music.png + automotive/44x44@2/navigation.png + automotive/44x44@2/seats.png + automotive/44x44@2/settings.png + automotive/44x44@2/statistics.png + automotive/44x44@2/windows.png + + diff --git a/examples/quickcontrols2/imagine/automotive/icons/warning.png b/examples/quickcontrols2/imagine/automotive/icons/warning.png new file mode 100644 index 00000000..590a61eb Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/warning.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/warning@2x.png b/examples/quickcontrols2/imagine/automotive/icons/warning@2x.png new file mode 100644 index 00000000..487fbafc Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/warning@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/weather.png b/examples/quickcontrols2/imagine/automotive/icons/weather.png new file mode 100644 index 00000000..b1479de2 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/weather.png differ diff --git a/examples/quickcontrols2/imagine/automotive/icons/weather@2x.png b/examples/quickcontrols2/imagine/automotive/icons/weather@2x.png new file mode 100644 index 00000000..8b4333ab Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/icons/weather@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background.png new file mode 100644 index 00000000..8f7152e5 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background@2x.png new file mode 100644 index 00000000..72bd2f11 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered.9.png new file mode 100644 index 00000000..0ec1a28d Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered@2x.9.png new file mode 100644 index 00000000..53e1041f Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked.9.png new file mode 100644 index 00000000..16ed8185 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked@2x.9.png new file mode 100644 index 00000000..ca5d4db6 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered.9.png new file mode 100644 index 00000000..a7a0252e Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered@2x.9.png new file mode 100644 index 00000000..28a0d1f1 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed.9.png new file mode 100644 index 00000000..0f8b0c4e Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed@2x.9.png new file mode 100644 index 00000000..6048dba0 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background.9.png new file mode 100644 index 00000000..65653dee Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background@2x.9.png new file mode 100644 index 00000000..0cb87ad3 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered.png new file mode 100644 index 00000000..aaa24dea Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered@2x.png new file mode 100644 index 00000000..6c1a8d9e Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed.png new file mode 100644 index 00000000..e730f74a Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed@2x.png new file mode 100644 index 00000000..bf189c9a Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background.png new file mode 100644 index 00000000..6cb099ce Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background@2x.png new file mode 100644 index 00000000..dca94220 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed.png new file mode 100644 index 00000000..a65e68bd Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed@2x.png new file mode 100644 index 00000000..c2b4c86a Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle.png new file mode 100644 index 00000000..1f338bbe Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle@2x.png new file mode 100644 index 00000000..a894eb6c Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background.9.png new file mode 100644 index 00000000..bfb27a20 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background@2x.9.png new file mode 100644 index 00000000..73db47d3 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/imagine-assets.qrc b/examples/quickcontrols2/imagine/automotive/imagine-assets/imagine-assets.qrc new file mode 100644 index 00000000..81eadda6 --- /dev/null +++ b/examples/quickcontrols2/imagine/automotive/imagine-assets/imagine-assets.qrc @@ -0,0 +1,80 @@ + + + applicationwindow-background.png + applicationwindow-background@2x.png + button-background.9.png + button-background@2x.9.png + button-background-checked.9.png + button-background-checked@2x.9.png + button-background-checked-hovered.9.png + button-background-checked-hovered@2x.9.png + button-background-hovered.9.png + button-background-hovered@2x.9.png + button-background-pressed.9.png + button-background-pressed@2x.9.png + dial-background.png + dial-background@2x.png + dial-background-hovered.png + dial-background-hovered@2x.png + dial-background-pressed.png + dial-background-pressed@2x.png + dial-handle.png + dial-handle@2x.png + dial-handle-pressed.png + dial-handle-pressed@2x.png + frame-background.9.png + frame-background@2x.9.png + itemdelegate-background.9.png + itemdelegate-background@2x.9.png + itemdelegate-background-checked.9.png + itemdelegate-background-checked@2x.9.png + itemdelegate-background-hovered.9.png + itemdelegate-background-hovered@2x.9.png + itemdelegate-background-pressed.9.png + itemdelegate-background-pressed@2x.9.png + radiobutton-indicator.png + radiobutton-indicator@2x.png + radiobutton-indicator-checked.png + radiobutton-indicator-checked@2x.png + radiobutton-indicator-checked-hovered.png + radiobutton-indicator-checked-hovered@2x.png + radiobutton-indicator-checked-pressed.png + radiobutton-indicator-checked-pressed@2x.png + radiobutton-indicator-hovered.png + radiobutton-indicator-hovered@2x.png + radiobutton-indicator-pressed.png + radiobutton-indicator-pressed@2x.png + scrollindicator-handle.png + scrollindicator-handle@2x.png + slider-background-horizontal.9.png + slider-background-horizontal@2x.9.png + slider-handle.png + slider-handle@2x.png + slider-handle-hovered.png + slider-handle-hovered@2x.png + slider-handle-pressed.png + slider-handle-pressed@2x.png + slider-progress-horizontal.9.png + slider-progress-horizontal@2x.9.png + slider-progress-horizontal-pressed.9.png + slider-progress-horizontal-pressed@2x.9.png + switchdelegate-background.9.png + switchdelegate-background@2x.9.png + switchdelegate-handle.png + switchdelegate-handle@2x.png + switchdelegate-handle-checked.png + switchdelegate-handle-checked@2x.png + switchdelegate-handle-checked-hovered.png + switchdelegate-handle-checked-hovered@2x.png + switchdelegate-handle-hovered.png + switchdelegate-handle-hovered@2x.png + switchdelegate-handle-pressed.png + switchdelegate-handle-pressed@2x.png + switchdelegate-indicator.png + switchdelegate-indicator@2x.png + switchdelegate-indicator-pressed.png + switchdelegate-indicator-pressed@2x.png + toolseparator-separator-vertical.9.png + toolseparator-separator-vertical@2x.9.png + + diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked.9.png new file mode 100644 index 00000000..8941ad9f Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked@2x.9.png new file mode 100644 index 00000000..a17e4469 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered.9.png new file mode 100644 index 00000000..ab6d2947 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered@2x.9.png new file mode 100644 index 00000000..65120b4b Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed.9.png new file mode 100644 index 00000000..c9b86741 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed@2x.9.png new file mode 100644 index 00000000..cc3393e1 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background.9.png new file mode 100644 index 00000000..42d580b0 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background@2x.9.png new file mode 100644 index 00000000..76008e8c Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered.png new file mode 100644 index 00000000..f64c9665 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered@2x.png new file mode 100644 index 00000000..ace1717a Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed.png new file mode 100644 index 00000000..c77ad470 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed@2x.png new file mode 100644 index 00000000..2798f77f Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked.png new file mode 100644 index 00000000..ea714eaa Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked@2x.png new file mode 100644 index 00000000..4f29b80b Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered.png new file mode 100644 index 00000000..a7d07ed1 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered@2x.png new file mode 100644 index 00000000..b0fff06e Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed.png new file mode 100644 index 00000000..7d657ac9 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed@2x.png new file mode 100644 index 00000000..9a8b9cd8 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator.png new file mode 100644 index 00000000..b59ba0ce Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator@2x.png new file mode 100644 index 00000000..e4a2b9a2 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle.png new file mode 100644 index 00000000..0faa2592 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle@2x.png new file mode 100644 index 00000000..09616c5e Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal.9.png new file mode 100644 index 00000000..eafe5da0 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal@2x.9.png new file mode 100644 index 00000000..c14bf788 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered.png new file mode 100644 index 00000000..9f56b8c0 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered@2x.png new file mode 100644 index 00000000..87a8126a Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed.png new file mode 100644 index 00000000..771b71c2 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed@2x.png new file mode 100644 index 00000000..b0edf7da Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle.png new file mode 100644 index 00000000..9634d2ae Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle@2x.png new file mode 100644 index 00000000..8983436c Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed.9.png new file mode 100644 index 00000000..15726a9f Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed@2x.9.png new file mode 100644 index 00000000..d25c9e63 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal.9.png new file mode 100644 index 00000000..cff4e860 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal@2x.9.png new file mode 100644 index 00000000..ecb5e15a Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background.9.png new file mode 100644 index 00000000..1fbb5626 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background@2x.9.png new file mode 100644 index 00000000..18880980 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered.png new file mode 100644 index 00000000..e66ef713 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered@2x.png new file mode 100644 index 00000000..05d6f82e Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked.png new file mode 100644 index 00000000..bcfa06ae Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked@2x.png new file mode 100644 index 00000000..b9985f0f Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered.png new file mode 100644 index 00000000..3de8aa15 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered@2x.png new file mode 100644 index 00000000..b9551590 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed.png new file mode 100644 index 00000000..547b2c17 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed@2x.png new file mode 100644 index 00000000..b4bb748a Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle.png new file mode 100644 index 00000000..b30fdaa2 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle@2x.png new file mode 100644 index 00000000..4e98604c Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed.png new file mode 100644 index 00000000..6833d624 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed@2x.png new file mode 100644 index 00000000..3d5498a0 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator.png new file mode 100644 index 00000000..3db5fe20 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator@2x.png new file mode 100644 index 00000000..b5c10f74 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator@2x.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical.9.png new file mode 100644 index 00000000..a6d2009b Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical@2x.9.png new file mode 100644 index 00000000..9ab9ca56 Binary files /dev/null and b/examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/automotive/qml/CustomGlow.qml b/examples/quickcontrols2/imagine/automotive/qml/CustomGlow.qml new file mode 100644 index 00000000..dfd66ada --- /dev/null +++ b/examples/quickcontrols2/imagine/automotive/qml/CustomGlow.qml @@ -0,0 +1,57 @@ +/**************************************************************************** +** +** 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 QtGraphicalEffects 1.0 + +Glow { + color: glowColor + samples: 20 + spread: 0.3 +} diff --git a/examples/quickcontrols2/imagine/automotive/qml/FeatureButton.qml b/examples/quickcontrols2/imagine/automotive/qml/FeatureButton.qml new file mode 100644 index 00000000..e19d8665 --- /dev/null +++ b/examples/quickcontrols2/imagine/automotive/qml/FeatureButton.qml @@ -0,0 +1,70 @@ +/**************************************************************************** +** +** 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 2.9 +import QtQuick.Layouts 1.3 +import QtQuick.Controls 2.3 + +Button { + id: button + checkable: true + font.pixelSize: fontSizeExtraSmall + leftPadding: 4 + rightPadding: 4 + topPadding: 12 + bottomPadding: 12 + implicitWidth: 60 + implicitHeight: 90 + + icon.name: "placeholder" + icon.width: 44 + icon.height: 44 + display: Button.TextUnderIcon +} diff --git a/examples/quickcontrols2/imagine/automotive/qml/GlowingLabel.qml b/examples/quickcontrols2/imagine/automotive/qml/GlowingLabel.qml new file mode 100644 index 00000000..50f816ce --- /dev/null +++ b/examples/quickcontrols2/imagine/automotive/qml/GlowingLabel.qml @@ -0,0 +1,90 @@ +/**************************************************************************** +** +** 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 2.9 +import QtQuick.Controls 2.3 + +// This container and the transform on the Label are +// necessary to get precise bounding rect of the text for layouting reasons, +// since some of the labels' font sizes can get quite large. +Item { + id: root + implicitHeight: labelTextMetrics.tightBoundingRect.height + implicitWidth: label.implicitWidth + + property alias text: label.text + property alias font: label.font + property alias horizontalAlignment: label.horizontalAlignment + property alias verticalAlignment: label.verticalAlignment + property bool glowEnabled: true + property color glowColor: colorGlow + property color color: colorBright + + Label { + id: label + anchors.baseline: root.baseline + color: root.color + + layer.enabled: root.glowEnabled + layer.effect: CustomGlow { + color: glowColor + } + + TextMetrics { + id: labelTextMetrics + text: label.text + font: label.font + } + + transform: Translate { + y: -labelTextMetrics.tightBoundingRect.y + } + } +} diff --git a/examples/quickcontrols2/imagine/automotive/qml/automotive.qml b/examples/quickcontrols2/imagine/automotive/qml/automotive.qml new file mode 100644 index 00000000..a2985d0f --- /dev/null +++ b/examples/quickcontrols2/imagine/automotive/qml/automotive.qml @@ -0,0 +1,642 @@ +/**************************************************************************** +** +** 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 2.9 +import QtQuick.Layouts 1.3 +import QtQuick.Controls 2.3 +import QtQuick.Controls.Imagine 2.3 +import QtQuick.Window 2.0 + +ApplicationWindow { + id: window + width: 1280 + height: 720 + minimumWidth: 1180 + minimumHeight: 663 + visible: true + title: "Qt Quick Controls 2 - Imagine Style Example: Automotive" + + readonly property color colorGlow: "#1d6d64" + readonly property color colorWarning: "#d5232f" + readonly property color colorMain: "#6affcd" + readonly property color colorBright: "#ffffff" + readonly property color colorLightGrey: "#888" + readonly property color colorDarkGrey: "#333" + + readonly property int fontSizeExtraSmall: Qt.application.font.pixelSize * 0.8 + readonly property int fontSizeMedium: Qt.application.font.pixelSize * 1.5 + readonly property int fontSizeLarge: Qt.application.font.pixelSize * 2 + readonly property int fontSizeExtraLarge: Qt.application.font.pixelSize * 5 + + Component.onCompleted: { + x = Screen.width / 2 - width / 2 + y = Screen.height / 2 - height / 2 + } + + Shortcut { + sequence: "Ctrl+Q" + onActivated: Qt.quit() + } + + Frame { + id: frame + anchors.fill: parent + anchors.margins: 90 + + RowLayout { + id: mainRowLayout + anchors.fill: parent + anchors.margins: 24 + spacing: 36 + + Container { + id: leftTabBar + + currentIndex: 1 + + Layout.fillWidth: false + Layout.fillHeight: true + + ButtonGroup { + buttons: columnLayout.children + } + + contentItem: ColumnLayout { + id: columnLayout + spacing: 3 + + Repeater { + model: leftTabBar.contentModel + } + } + + FeatureButton { + id: navigationFeatureButton + text: qsTr("Navigation") + icon.name: "navigation" + Layout.fillHeight: true + } + + FeatureButton { + text: qsTr("Music") + icon.name: "music" + checked: true + Layout.fillHeight: true + } + + FeatureButton { + text: qsTr("Message") + icon.name: "message" + Layout.fillHeight: true + } + + FeatureButton { + text: qsTr("Command") + icon.name: "command" + Layout.fillHeight: true + } + + FeatureButton { + text: qsTr("Settings") + icon.name: "settings" + Layout.fillHeight: true + } + } + + StackLayout { + currentIndex: leftTabBar.currentIndex + + Layout.preferredWidth: 150 + Layout.maximumWidth: 150 + Layout.fillWidth: false + + Item {} + + ColumnLayout { + spacing: 16 + + ButtonGroup { + id: viewButtonGroup + buttons: viewTypeRowLayout.children + } + + RowLayout { + id: viewTypeRowLayout + spacing: 3 + + Layout.bottomMargin: 12 + + Button { + text: qsTr("Compact") + font.pixelSize: fontSizeExtraSmall + checked: true + + Layout.fillWidth: true + } + Button { + text: qsTr("Full") + font.pixelSize: fontSizeExtraSmall + checkable: true + + Layout.fillWidth: true + } + } + + GlowingLabel { + text: qsTr("VOLUME") + color: "white" + font.pixelSize: fontSizeMedium + } + + Dial { + id: volumeDial + from: 0 + value: 42 + to: 100 + stepSize: 1 + anchors.horizontalCenter: parent.horizontalCenter + + Layout.minimumWidth: 64 + Layout.minimumHeight: 64 + Layout.preferredWidth: 128 + Layout.preferredHeight: 128 + Layout.maximumWidth: 128 + Layout.maximumHeight: 128 + Layout.fillHeight: true + + Label { + text: volumeDial.value.toFixed(0) + color: "white" + font.pixelSize: Qt.application.font.pixelSize * 3 + anchors.centerIn: parent + } + } + + ButtonGroup { + id: audioSourceButtonGroup + } + + RowLayout { + Layout.topMargin: 16 + + GlowingLabel { + id: radioOption + text: qsTr("RADIO") + color: "white" + font.pixelSize: fontSizeMedium + horizontalAlignment: Label.AlignLeft + + Layout.fillWidth: true + } + GlowingLabel { + text: qsTr("AUX") + color: colorLightGrey + font.pixelSize: fontSizeMedium * 0.8 + horizontalAlignment: Label.AlignHCenter + glowEnabled: false + anchors.bottom: radioOption.bottom + + Layout.fillWidth: true + } + GlowingLabel { + text: qsTr("MP3") + color: colorDarkGrey + font.pixelSize: fontSizeMedium * 0.6 + horizontalAlignment: Label.AlignRight + glowEnabled: false + anchors.bottom: radioOption.bottom + + Layout.fillWidth: true + } + } + + Frame { + id: stationFrame + leftPadding: 1 + rightPadding: 1 + topPadding: 1 + bottomPadding: 1 + + Layout.fillWidth: true + Layout.fillHeight: true + Layout.preferredHeight: 128 + + ListView { + clip: true + anchors.fill: parent + + ScrollIndicator.vertical: ScrollIndicator { + parent: stationFrame + anchors.top: parent.top + anchors.right: parent.right + anchors.rightMargin: 1 + anchors.bottom: parent.bottom + } + + model: ListModel { + ListElement { name: "V-Radio"; frequency: "105.5 MHz" } + ListElement { name: "World News"; frequency: "93.4 MHz" } + ListElement { name: "TekStep FM"; frequency: "95.0 MHz" } + ListElement { name: "Classic Radio"; frequency: "89.9 MHz" } + ListElement { name: "Buena Vista FM"; frequency: "100.8 MHz" } + ListElement { name: "Drive-by Radio"; frequency: "99.1 MHz" } + ListElement { name: "Unknown #1"; frequency: "104.5 MHz" } + ListElement { name: "Unknown #2"; frequency: "91.2 MHz" } + ListElement { name: "Unknown #3"; frequency: "93.8 MHz" } + ListElement { name: "Unknown #4"; frequency: "80.4 MHz" } + ListElement { name: "Unknown #5"; frequency: "101.1 MHz" } + ListElement { name: "Unknown #6"; frequency: "92.2 MHz" } + } + delegate: ItemDelegate { + id: stationDelegate + width: parent.width + height: 22 + text: model.name + font.pixelSize: fontSizeExtraSmall + topPadding: 0 + bottomPadding: 0 + + contentItem: RowLayout { + Label { + text: model.name + font: stationDelegate.font + horizontalAlignment: Text.AlignLeft + Layout.fillWidth: true + } + Label { + text: model.frequency + font: stationDelegate.font + horizontalAlignment: Text.AlignRight + Layout.fillWidth: true + } + } + } + } + } + + Frame { + Layout.fillWidth: true + + RowLayout { + anchors.fill: parent + + Label { + text: qsTr("Sort by") + font.pixelSize: fontSizeExtraSmall + + Layout.alignment: Qt.AlignTop + } + + ColumnLayout { + RadioButton { + text: qsTr("Name") + font.pixelSize: fontSizeExtraSmall + } + RadioButton { + text: qsTr("Frequency") + font.pixelSize: fontSizeExtraSmall + } + RadioButton { + text: qsTr("Favourites") + font.pixelSize: fontSizeExtraSmall + checked: true + } + } + } + } + } + } + + Rectangle { + color: colorMain + implicitWidth: 1 + Layout.fillHeight: true + } + + ColumnLayout { + Layout.preferredWidth: 350 + Layout.fillWidth: true + Layout.fillHeight: true + + GlowingLabel { + id: timeLabel + text: qsTr("11:02") + font.pixelSize: fontSizeExtraLarge + + Layout.alignment: Qt.AlignHCenter + + GlowingLabel { + text: qsTr("AM") + font.pixelSize: fontSizeLarge + anchors.left: parent.right + anchors.leftMargin: 8 + } + } + + Label { + text: qsTr("01/01/2018") + color: colorLightGrey + font.pixelSize: fontSizeMedium + + Layout.alignment: Qt.AlignHCenter + Layout.topMargin: 2 + Layout.bottomMargin: 10 + } + + Image { + source: "qrc:/icons/car.png" + fillMode: Image.PreserveAspectFit + + Layout.fillHeight: true + + Column { + x: parent.width * 0.88 + y: parent.height * 0.56 + spacing: 3 + + Image { + source: "qrc:/icons/warning.png" + anchors.horizontalCenter: parent.horizontalCenter + + layer.enabled: true + layer.effect: CustomGlow { + spread: 0.2 + samples: 40 + color: colorWarning + } + } + + GlowingLabel { + text: qsTr("Door open") + color: colorWarning + glowColor: Qt.rgba(colorWarning.r, colorWarning.g, colorWarning.b, 0.4) + } + } + } + } + + Rectangle { + color: colorMain + implicitWidth: 1 + Layout.fillHeight: true + } + + ColumnLayout { + Row { + spacing: 8 + + Image { + source: "qrc:/icons/weather.png" + } + + Column { + spacing: 8 + + Row { + anchors.horizontalCenter: parent.horizontalCenter + + GlowingLabel { + id: outsideTempValueLabel + text: qsTr("31") + font.pixelSize: fontSizeExtraLarge + } + + GlowingLabel { + text: qsTr("°C") + font.pixelSize: Qt.application.font.pixelSize * 2.5 + anchors.baseline: outsideTempValueLabel.baseline + } + } + + Label { + text: qsTr("Osaka, Japan") + color: colorLightGrey + font.pixelSize: fontSizeMedium + } + } + } + + ColumnLayout { + id: airConRowLayout + spacing: 8 + + Layout.preferredWidth: 128 + Layout.preferredHeight: 380 + Layout.fillHeight: true + + Item { + Layout.fillHeight: true + } + + SwitchDelegate { + text: qsTr("AC") + leftPadding: 0 + rightPadding: 0 + topPadding: 0 + bottomPadding: 0 + + Layout.fillWidth: true + } + + // QTBUG-63269 + Item { + implicitHeight: temperatureValueLabel.implicitHeight + Layout.fillWidth: true + Layout.topMargin: 16 + + Label { + text: qsTr("Temperature") + anchors.baseline: temperatureValueLabel.bottom + anchors.left: parent.left + } + + GlowingLabel { + id: temperatureValueLabel + text: qsTr("24°C") + font.pixelSize: fontSizeLarge + anchors.right: parent.right + } + } + + Slider { + value: 0.35 + Layout.fillWidth: true + } + + // QTBUG-63269 + Item { + implicitHeight: powerValueLabel.implicitHeight + Layout.fillWidth: true + Layout.topMargin: 16 + + Label { + text: qsTr("Power") + anchors.baseline: powerValueLabel.bottom + anchors.left: parent.left + } + + GlowingLabel { + id: powerValueLabel + text: qsTr("10%") + font.pixelSize: fontSizeLarge + anchors.right: parent.right + } + } + + Slider { + value: 0.25 + Layout.fillWidth: true + } + + SwitchDelegate { + text: qsTr("Low") + leftPadding: 0 + rightPadding: 0 + topPadding: 0 + bottomPadding: 0 + + Layout.fillWidth: true + Layout.topMargin: 16 + } + + SwitchDelegate { + text: qsTr("High") + checked: true + leftPadding: 0 + rightPadding: 0 + topPadding: 0 + bottomPadding: 0 + + Layout.fillWidth: true + } + + SwitchDelegate { + text: qsTr("Defog") + leftPadding: 0 + rightPadding: 0 + topPadding: 0 + bottomPadding: 0 + + Layout.fillWidth: true + } + + SwitchDelegate { + text: qsTr("Recirculate") + leftPadding: 0 + rightPadding: 0 + topPadding: 0 + bottomPadding: 0 + + Layout.fillWidth: true + } + + Item { + Layout.fillHeight: true + } + } + } + + Container { + id: rightTabBar + + currentIndex: 1 + + Layout.fillHeight: true + + ButtonGroup { + buttons: rightTabBarContentLayout.children + } + + contentItem: ColumnLayout { + id: rightTabBarContentLayout + spacing: 3 + + Repeater { + model: rightTabBar.contentModel + } + } + + Item { + Layout.fillHeight: true + } + + FeatureButton { + text: qsTr("Windows") + icon.name: "windows" + + Layout.maximumHeight: navigationFeatureButton.height + Layout.fillHeight: true + } + FeatureButton { + text: qsTr("Air Con.") + icon.name: "air-con" + checked: true + + Layout.maximumHeight: navigationFeatureButton.height + Layout.fillHeight: true + } + FeatureButton { + text: qsTr("Seats") + icon.name: "seats" + + Layout.maximumHeight: navigationFeatureButton.height + Layout.fillHeight: true + } + FeatureButton { + text: qsTr("Statistics") + icon.name: "statistics" + + Layout.maximumHeight: navigationFeatureButton.height + Layout.fillHeight: true + } + } + } + } +} diff --git a/examples/quickcontrols2/imagine/automotive/qml/qml.qrc b/examples/quickcontrols2/imagine/automotive/qml/qml.qrc new file mode 100644 index 00000000..d193fd32 --- /dev/null +++ b/examples/quickcontrols2/imagine/automotive/qml/qml.qrc @@ -0,0 +1,8 @@ + + + FeatureButton.qml + GlowingLabel.qml + CustomGlow.qml + automotive.qml + + diff --git a/examples/quickcontrols2/imagine/automotive/qtquickcontrols2.conf b/examples/quickcontrols2/imagine/automotive/qtquickcontrols2.conf new file mode 100644 index 00000000..c8bcdd40 --- /dev/null +++ b/examples/quickcontrols2/imagine/automotive/qtquickcontrols2.conf @@ -0,0 +1,10 @@ +[Controls] +Style=Imagine + +[Imagine] +Path=qrc:/imagine-assets + +[Imagine\Palette] +Text=#6affcd +ButtonText=#6affcd +WindowText=#6affcd diff --git a/examples/quickcontrols2/quickcontrols2.pro b/examples/quickcontrols2/quickcontrols2.pro index 858759fb..cf01e8b0 100644 --- a/examples/quickcontrols2/quickcontrols2.pro +++ b/examples/quickcontrols2/quickcontrols2.pro @@ -7,4 +7,5 @@ SUBDIRS += \ sidepanel \ swipetoremove \ flatstyle \ - wearable + wearable \ + imagine/automotive -- cgit v1.2.3 From 830596edf2a1fa686e6cf36d4ad4b77e38812cb7 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Wed, 1 Nov 2017 15:43:53 +0100 Subject: Add Music Player Imagine style example Change-Id: If285e90d25d497155c060907b8f8c60859e55a9a Reviewed-by: J-P Nurmi --- .../doc/images/qtquickcontrols2-musicplayer.png | Bin 0 -> 1457884 bytes .../doc/src/qtquickcontrols2-musicplayer.qdoc | 57 ++ .../imagine/musicplayer/icons/icons.qrc | 40 ++ .../icons/musicplayer/32x32/bluetooth.png | Bin 0 -> 556 bytes .../musicplayer/icons/musicplayer/32x32/cart.png | Bin 0 -> 425 bytes .../musicplayer/icons/musicplayer/32x32/cloud.png | Bin 0 -> 525 bytes .../icons/musicplayer/32x32/favorite.png | Bin 0 -> 379 bytes .../musicplayer/icons/musicplayer/32x32/filter.png | Bin 0 -> 441 bytes .../musicplayer/icons/musicplayer/32x32/folder.png | Bin 0 -> 279 bytes .../icons/musicplayer/32x32/message.png | Bin 0 -> 466 bytes .../musicplayer/icons/musicplayer/32x32/music.png | Bin 0 -> 454 bytes .../musicplayer/icons/musicplayer/32x32/next.png | Bin 0 -> 201 bytes .../musicplayer/icons/musicplayer/32x32/pause.png | Bin 0 -> 141 bytes .../musicplayer/icons/musicplayer/32x32/power.png | Bin 0 -> 710 bytes .../icons/musicplayer/32x32/previous.png | Bin 0 -> 203 bytes .../musicplayer/icons/musicplayer/32x32/repeat.png | Bin 0 -> 328 bytes .../musicplayer/icons/musicplayer/32x32/save.png | Bin 0 -> 419 bytes .../icons/musicplayer/32x32/settings.png | Bin 0 -> 499 bytes .../icons/musicplayer/32x32/shuffle.png | Bin 0 -> 366 bytes .../musicplayer/icons/musicplayer/32x32/stop.png | Bin 0 -> 157 bytes .../icons/musicplayer/32x32@2/bluetooth.png | Bin 0 -> 1202 bytes .../musicplayer/icons/musicplayer/32x32@2/cart.png | Bin 0 -> 782 bytes .../icons/musicplayer/32x32@2/cloud.png | Bin 0 -> 1003 bytes .../icons/musicplayer/32x32@2/favorite.png | Bin 0 -> 744 bytes .../icons/musicplayer/32x32@2/filter.png | Bin 0 -> 872 bytes .../icons/musicplayer/32x32@2/folder.png | Bin 0 -> 437 bytes .../musicplayer/icons/musicplayer/32x32@2/grid.png | Bin 0 -> 177 bytes .../icons/musicplayer/32x32@2/message.png | Bin 0 -> 850 bytes .../icons/musicplayer/32x32@2/music.png | Bin 0 -> 842 bytes .../musicplayer/icons/musicplayer/32x32@2/next.png | Bin 0 -> 354 bytes .../icons/musicplayer/32x32@2/pause.png | Bin 0 -> 163 bytes .../icons/musicplayer/32x32@2/power.png | Bin 0 -> 1329 bytes .../icons/musicplayer/32x32@2/previous.png | Bin 0 -> 436 bytes .../icons/musicplayer/32x32@2/repeat.png | Bin 0 -> 634 bytes .../musicplayer/icons/musicplayer/32x32@2/save.png | Bin 0 -> 496 bytes .../icons/musicplayer/32x32@2/settings.png | Bin 0 -> 960 bytes .../icons/musicplayer/32x32@2/shuffle.png | Bin 0 -> 724 bytes .../musicplayer/icons/musicplayer/32x32@2/stop.png | Bin 0 -> 242 bytes .../musicplayer/icons/musicplayer/icons.svg | 648 +++++++++++++++++++++ .../musicplayer/icons/musicplayer/index.theme | 14 + .../imagine/musicplayer/images/album-cover.jpg | Bin 0 -> 917863 bytes .../applicationwindow-background.png | Bin 0 -> 82 bytes .../button-background-checked-hovered.9.png | Bin 0 -> 1446 bytes .../button-background-checked-hovered@2x.9.png | Bin 0 -> 4150 bytes .../imagine-assets/button-background-checked.9.png | Bin 0 -> 1353 bytes .../button-background-checked@2x.9.png | Bin 0 -> 4049 bytes .../button-background-disabled.9.png | Bin 0 -> 543 bytes .../button-background-disabled@2x.9.png | Bin 0 -> 1509 bytes .../imagine-assets/button-background-hovered.9.png | Bin 0 -> 1444 bytes .../button-background-hovered@2x.9.png | Bin 0 -> 3855 bytes .../imagine-assets/button-background-pressed.9.png | Bin 0 -> 1437 bytes .../button-background-pressed@2x.9.png | Bin 0 -> 4048 bytes .../imagine-assets/button-background.9.png | Bin 0 -> 1368 bytes .../imagine-assets/button-background@2x.9.png | Bin 0 -> 3813 bytes .../combobox-background-hovered.9.png | Bin 0 -> 4220 bytes .../combobox-background-hovered@2x.9.png | Bin 0 -> 15135 bytes .../imagine-assets/combobox-background-open.9.png | Bin 0 -> 4197 bytes .../combobox-background-open@2x.9.png | Bin 0 -> 14766 bytes .../combobox-background-pressed.9.png | Bin 0 -> 4254 bytes .../combobox-background-pressed@2x.9.png | Bin 0 -> 14995 bytes .../imagine-assets/combobox-background.9.png | Bin 0 -> 4283 bytes .../imagine-assets/combobox-background@2x.9.png | Bin 0 -> 14357 bytes .../imagine-assets/combobox-indicator-hovered.png | Bin 0 -> 390 bytes .../combobox-indicator-hovered@2x.png | Bin 0 -> 961 bytes .../imagine-assets/combobox-indicator-open.png | Bin 0 -> 415 bytes .../imagine-assets/combobox-indicator-open@2x.png | Bin 0 -> 929 bytes .../imagine-assets/combobox-indicator-pressed.png | Bin 0 -> 373 bytes .../combobox-indicator-pressed@2x.png | Bin 0 -> 955 bytes .../imagine-assets/combobox-indicator.png | Bin 0 -> 381 bytes .../imagine-assets/combobox-indicator@2x.png | Bin 0 -> 970 bytes .../imagine-assets/combobox-popup.9.png | Bin 0 -> 2437 bytes .../imagine-assets/combobox-popup@2x.9.png | Bin 0 -> 5349 bytes .../imagine-assets/dial-background-hovered.png | Bin 0 -> 11658 bytes .../imagine-assets/dial-background-hovered@2x.png | Bin 0 -> 36836 bytes .../imagine-assets/dial-background-pressed.png | Bin 0 -> 13807 bytes .../imagine-assets/dial-background-pressed@2x.png | Bin 0 -> 46319 bytes .../musicplayer/imagine-assets/dial-background.png | Bin 0 -> 12858 bytes .../imagine-assets/dial-background@2x.png | Bin 0 -> 43910 bytes .../imagine-assets/dial-handle-pressed.png | Bin 0 -> 528 bytes .../imagine-assets/dial-handle-pressed@2x.png | Bin 0 -> 1091 bytes .../musicplayer/imagine-assets/dial-handle.png | Bin 0 -> 478 bytes .../musicplayer/imagine-assets/dial-handle@2x.png | Bin 0 -> 852 bytes .../imagine-assets/frame-background.9.png | Bin 0 -> 353 bytes .../imagine-assets/frame-background@2x.9.png | Bin 0 -> 451 bytes .../musicplayer/imagine-assets/imagine-assets.qrc | 113 ++++ .../itemdelegate-background-checked.9.png | Bin 0 -> 1552 bytes .../itemdelegate-background-checked@2x.9.png | Bin 0 -> 3489 bytes .../itemdelegate-background-disabled.9.png | Bin 0 -> 241 bytes .../itemdelegate-background-disabled@2x.9.png | Bin 0 -> 254 bytes .../itemdelegate-background-hovered.9.png | Bin 0 -> 1490 bytes .../itemdelegate-background-hovered@2x.9.png | Bin 0 -> 3316 bytes .../itemdelegate-background-pressed.9.png | Bin 0 -> 1572 bytes .../itemdelegate-background-pressed@2x.9.png | Bin 0 -> 3534 bytes .../imagine-assets/itemdelegate-background.9.png | Bin 0 -> 241 bytes .../itemdelegate-background@2x.9.png | Bin 0 -> 254 bytes .../roundbutton-background-checked-hovered.png | Bin 0 -> 2109 bytes .../roundbutton-background-checked-hovered@2x.png | Bin 0 -> 5930 bytes .../roundbutton-background-checked.png | Bin 0 -> 1883 bytes .../roundbutton-background-checked@2x.png | Bin 0 -> 5271 bytes .../roundbutton-background-disabled.png | Bin 0 -> 1073 bytes .../roundbutton-background-disabled@2x.png | Bin 0 -> 3011 bytes .../roundbutton-background-hovered.png | Bin 0 -> 1901 bytes .../roundbutton-background-hovered@2x.png | Bin 0 -> 5306 bytes .../roundbutton-background-pressed.png | Bin 0 -> 1886 bytes .../roundbutton-background-pressed@2x.png | Bin 0 -> 5263 bytes .../imagine-assets/roundbutton-background.png | Bin 0 -> 1802 bytes .../imagine-assets/roundbutton-background@2x.png | Bin 0 -> 5131 bytes .../scrollbar-handle-interactive-hovered.png | Bin 0 -> 199 bytes .../scrollbar-handle-interactive-hovered@2x.png | Bin 0 -> 199 bytes .../scrollbar-handle-interactive-pressed.png | Bin 0 -> 199 bytes .../scrollbar-handle-interactive-pressed@2x.png | Bin 0 -> 199 bytes .../scrollbar-handle-interactive.png | Bin 0 -> 199 bytes .../scrollbar-handle-interactive@2x.png | Bin 0 -> 199 bytes .../slider-background-horizontal-disabled.9.png | Bin 0 -> 340 bytes .../slider-background-horizontal-disabled@2x.9.png | Bin 0 -> 539 bytes .../slider-background-horizontal.9.png | Bin 0 -> 353 bytes .../slider-background-horizontal@2x.9.png | Bin 0 -> 550 bytes .../slider-background-vertical-disabled.9.png | Bin 0 -> 355 bytes .../slider-background-vertical-disabled@2x.9.png | Bin 0 -> 474 bytes .../slider-background-vertical.9.png | Bin 0 -> 344 bytes .../slider-background-vertical@2x.9.png | Bin 0 -> 501 bytes .../imagine-assets/slider-handle-disabled.png | Bin 0 -> 639 bytes .../imagine-assets/slider-handle-disabled@2x.png | Bin 0 -> 1069 bytes .../imagine-assets/slider-handle-hovered.png | Bin 0 -> 1342 bytes .../imagine-assets/slider-handle-hovered@2x.png | Bin 0 -> 3642 bytes .../musicplayer/imagine-assets/slider-handle.png | Bin 0 -> 1333 bytes .../imagine-assets/slider-handle@2x.png | Bin 0 -> 3593 bytes .../slider-progress-horizontal.9.png | Bin 0 -> 353 bytes .../slider-progress-horizontal@2x.9.png | Bin 0 -> 550 bytes .../slider-progress-vertical-disabled.9.png | Bin 0 -> 344 bytes .../slider-progress-vertical-disabled@2x.9.png | Bin 0 -> 501 bytes .../imagine-assets/slider-progress-vertical.9.png | Bin 0 -> 344 bytes .../slider-progress-vertical@2x.9.png | Bin 0 -> 501 bytes .../textfield-background-disabled.9.png | Bin 0 -> 377 bytes .../textfield-background-disabled@2x.9.png | Bin 0 -> 495 bytes .../imagine-assets/textfield-background.9.png | Bin 0 -> 379 bytes .../imagine-assets/textfield-background@2x.9.png | Bin 0 -> 535 bytes .../imagine-assets/toolbar-background.9.png | Bin 0 -> 405 bytes .../imagine-assets/toolbar-background@2x.9.png | Bin 0 -> 584 bytes .../toolbutton-background-checked-hovered.9.png | Bin 0 -> 1628 bytes .../toolbutton-background-checked-hovered@2x.9.png | Bin 0 -> 3508 bytes .../toolbutton-background-checked.9.png | Bin 0 -> 1533 bytes .../toolbutton-background-checked@2x.9.png | Bin 0 -> 3516 bytes .../toolbutton-background-hovered.9.png | Bin 0 -> 1509 bytes .../toolbutton-background-hovered@2x.9.png | Bin 0 -> 3475 bytes .../toolbutton-background-pressed.9.png | Bin 0 -> 1599 bytes .../toolbutton-background-pressed@2x.9.png | Bin 0 -> 3509 bytes .../imagine-assets/toolbutton-background.9.png | Bin 0 -> 1469 bytes .../imagine-assets/toolbutton-background@2x.9.png | Bin 0 -> 3314 bytes .../imagine-assets/tooltip-background.9.png | Bin 0 -> 2576 bytes .../imagine-assets/tooltip-background@2x.9.png | Bin 0 -> 4783 bytes .../imagine/musicplayer/musicplayer.cpp | 73 +++ .../imagine/musicplayer/musicplayer.pro | 16 + .../imagine/musicplayer/musicplayer.qml | 467 +++++++++++++++ .../imagine/musicplayer/qtquickcontrols2.conf | 10 + examples/quickcontrols2/quickcontrols2.pro | 3 +- 156 files changed, 1440 insertions(+), 1 deletion(-) create mode 100644 examples/quickcontrols2/imagine/musicplayer/doc/images/qtquickcontrols2-musicplayer.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/doc/src/qtquickcontrols2-musicplayer.qdoc create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/icons.qrc create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/bluetooth.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cart.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cloud.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/favorite.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/filter.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/folder.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/message.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/music.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/next.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/pause.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/power.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/previous.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/repeat.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/save.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/settings.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/shuffle.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/stop.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/bluetooth.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cart.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cloud.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/favorite.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/filter.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/folder.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/grid.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/message.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/music.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/next.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/pause.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/power.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/previous.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/repeat.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/save.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/settings.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/shuffle.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/stop.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/icons.svg create mode 100644 examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/index.theme create mode 100644 examples/quickcontrols2/imagine/musicplayer/images/album-cover.jpg create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/applicationwindow-background.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/imagine-assets.qrc create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle@2x.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background@2x.9.png create mode 100644 examples/quickcontrols2/imagine/musicplayer/musicplayer.cpp create mode 100644 examples/quickcontrols2/imagine/musicplayer/musicplayer.pro create mode 100644 examples/quickcontrols2/imagine/musicplayer/musicplayer.qml create mode 100644 examples/quickcontrols2/imagine/musicplayer/qtquickcontrols2.conf (limited to 'examples/quickcontrols2') diff --git a/examples/quickcontrols2/imagine/musicplayer/doc/images/qtquickcontrols2-musicplayer.png b/examples/quickcontrols2/imagine/musicplayer/doc/images/qtquickcontrols2-musicplayer.png new file mode 100644 index 00000000..25b6344f Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/doc/images/qtquickcontrols2-musicplayer.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/doc/src/qtquickcontrols2-musicplayer.qdoc b/examples/quickcontrols2/imagine/musicplayer/doc/src/qtquickcontrols2-musicplayer.qdoc new file mode 100644 index 00000000..cca44e83 --- /dev/null +++ b/examples/quickcontrols2/imagine/musicplayer/doc/src/qtquickcontrols2-musicplayer.qdoc @@ -0,0 +1,57 @@ +/**************************************************************************** +** +** 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 musicplayer + \title Qt Quick Controls 2 - Imagine Style Example: Music Player + \ingroup qtquickcontrols2-examples + \brief An audio player user interface using custom Imagine style assets. + + This example demonstrates how custom Imagine style assets + can be used to style a user interface for an audio player application. + + \image qtquickcontrols2-musicplayer.png + + \omit + The assets are generated from a Photoshop file: \e musicplayer.psd. + This file can found in the \e design folder in the example directory. + All objects related to a particular asset are collected in a layer group. + For example, the assets for Button's background element are under a layer group with the following name: + + \badcode + 100% button-background.9.png, 200% button-background@2x.9.png, 300% button-background@3x.9.png, 400% button-background@4x.9.png + \endcode + + Using Photoshop's \l {Generate Image Assets}{https://helpx.adobe.com/photoshop/using/generate-assets-layers.html} feature, + the size and name for each asset are encoded into the name of the layer group. + + Where applicable, \l {Smart Objects}{https://helpx.adobe.com/photoshop/using/create-smart-objects.html} + are used to reduce duplication for common objects such as 9-patch lines. + \endomit + + \include examples-run.qdocinc +*/ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/icons.qrc b/examples/quickcontrols2/imagine/musicplayer/icons/icons.qrc new file mode 100644 index 00000000..870b4445 --- /dev/null +++ b/examples/quickcontrols2/imagine/musicplayer/icons/icons.qrc @@ -0,0 +1,40 @@ + + + musicplayer/index.theme + musicplayer/32x32/bluetooth.png + musicplayer/32x32/cart.png + musicplayer/32x32/cloud.png + musicplayer/32x32/filter.png + musicplayer/32x32/folder.png + musicplayer/32x32/message.png + musicplayer/32x32/music.png + musicplayer/32x32/next.png + musicplayer/32x32/pause.png + musicplayer/32x32/power.png + musicplayer/32x32/previous.png + musicplayer/32x32/repeat.png + musicplayer/32x32/save.png + musicplayer/32x32/settings.png + musicplayer/32x32/shuffle.png + musicplayer/32x32/stop.png + musicplayer/32x32@2/bluetooth.png + musicplayer/32x32@2/cart.png + musicplayer/32x32@2/cloud.png + musicplayer/32x32@2/filter.png + musicplayer/32x32@2/folder.png + musicplayer/32x32@2/grid.png + musicplayer/32x32@2/message.png + musicplayer/32x32@2/music.png + musicplayer/32x32@2/next.png + musicplayer/32x32@2/pause.png + musicplayer/32x32@2/power.png + musicplayer/32x32@2/previous.png + musicplayer/32x32@2/repeat.png + musicplayer/32x32@2/save.png + musicplayer/32x32@2/settings.png + musicplayer/32x32@2/shuffle.png + musicplayer/32x32@2/stop.png + musicplayer/32x32/favorite.png + musicplayer/32x32@2/favorite.png + + diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/bluetooth.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/bluetooth.png new file mode 100644 index 00000000..925f564c Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/bluetooth.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cart.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cart.png new file mode 100644 index 00000000..4d5ad099 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cart.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cloud.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cloud.png new file mode 100644 index 00000000..62ef5118 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cloud.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/favorite.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/favorite.png new file mode 100644 index 00000000..16ea84de Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/favorite.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/filter.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/filter.png new file mode 100644 index 00000000..4472cead Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/filter.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/folder.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/folder.png new file mode 100644 index 00000000..5dd05778 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/folder.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/message.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/message.png new file mode 100644 index 00000000..1d93b3c6 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/message.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/music.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/music.png new file mode 100644 index 00000000..44489213 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/music.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/next.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/next.png new file mode 100644 index 00000000..ab9164e8 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/next.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/pause.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/pause.png new file mode 100644 index 00000000..9c9ef8fa Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/pause.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/power.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/power.png new file mode 100644 index 00000000..8f7d0c77 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/power.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/previous.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/previous.png new file mode 100644 index 00000000..3a0880fd Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/previous.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/repeat.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/repeat.png new file mode 100644 index 00000000..7c8e8c1c Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/repeat.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/save.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/save.png new file mode 100644 index 00000000..c0b27483 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/save.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/settings.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/settings.png new file mode 100644 index 00000000..7992146a Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/settings.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/shuffle.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/shuffle.png new file mode 100644 index 00000000..885782a2 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/shuffle.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/stop.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/stop.png new file mode 100644 index 00000000..3e9c3327 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/stop.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/bluetooth.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/bluetooth.png new file mode 100644 index 00000000..2e70afc3 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/bluetooth.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cart.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cart.png new file mode 100644 index 00000000..5717dd65 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cart.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cloud.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cloud.png new file mode 100644 index 00000000..ce5ab9f9 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cloud.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/favorite.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/favorite.png new file mode 100644 index 00000000..ddc9aa45 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/favorite.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/filter.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/filter.png new file mode 100644 index 00000000..3632c556 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/filter.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/folder.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/folder.png new file mode 100644 index 00000000..49d41e20 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/folder.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/grid.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/grid.png new file mode 100644 index 00000000..8a1624e7 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/grid.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/message.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/message.png new file mode 100644 index 00000000..6650f26b Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/message.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/music.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/music.png new file mode 100644 index 00000000..2cb8d49a Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/music.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/next.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/next.png new file mode 100644 index 00000000..d7bb4b27 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/next.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/pause.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/pause.png new file mode 100644 index 00000000..8a081d02 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/pause.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/power.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/power.png new file mode 100644 index 00000000..1201e55b Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/power.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/previous.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/previous.png new file mode 100644 index 00000000..4236afdb Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/previous.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/repeat.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/repeat.png new file mode 100644 index 00000000..c8cb06d8 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/repeat.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/save.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/save.png new file mode 100644 index 00000000..448b25e4 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/save.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/settings.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/settings.png new file mode 100644 index 00000000..12a0cf6b Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/settings.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/shuffle.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/shuffle.png new file mode 100644 index 00000000..22b901cc Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/shuffle.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/stop.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/stop.png new file mode 100644 index 00000000..0521a943 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/stop.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/icons.svg b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/icons.svg new file mode 100644 index 00000000..4cede992 --- /dev/null +++ b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/icons.svg @@ -0,0 +1,648 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/index.theme b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/index.theme new file mode 100644 index 00000000..25232935 --- /dev/null +++ b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/index.theme @@ -0,0 +1,14 @@ +[Icon Theme] +Name=Music Player +Comment=Icon theme for the Qt Quick Controls 2 Music Player Imagine Style Example + +Directories=32x32,32x32@2 + +[32x32] +Size=32 +Type=Fixed + +[32x32@2] +Size=32 +Scale=2 +Type=Fixed diff --git a/examples/quickcontrols2/imagine/musicplayer/images/album-cover.jpg b/examples/quickcontrols2/imagine/musicplayer/images/album-cover.jpg new file mode 100644 index 00000000..48bd6231 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/images/album-cover.jpg differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/applicationwindow-background.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/applicationwindow-background.png new file mode 100644 index 00000000..036bf746 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/applicationwindow-background.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered.9.png new file mode 100644 index 00000000..c275d324 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered@2x.9.png new file mode 100644 index 00000000..eec285f3 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked.9.png new file mode 100644 index 00000000..2d284a5b Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked@2x.9.png new file mode 100644 index 00000000..fec385f5 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled.9.png new file mode 100644 index 00000000..bcad1470 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled@2x.9.png new file mode 100644 index 00000000..03aba153 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered.9.png new file mode 100644 index 00000000..962cf677 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered@2x.9.png new file mode 100644 index 00000000..841c0064 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed.9.png new file mode 100644 index 00000000..f97f42b8 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed@2x.9.png new file mode 100644 index 00000000..97058349 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background.9.png new file mode 100644 index 00000000..74a8574f Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background@2x.9.png new file mode 100644 index 00000000..25163385 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered.9.png new file mode 100644 index 00000000..f9f90df4 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered@2x.9.png new file mode 100644 index 00000000..a4be50e1 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open.9.png new file mode 100644 index 00000000..147231ec Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open@2x.9.png new file mode 100644 index 00000000..0a978572 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed.9.png new file mode 100644 index 00000000..7726198a Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed@2x.9.png new file mode 100644 index 00000000..d64d4052 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background.9.png new file mode 100644 index 00000000..e919d50a Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background@2x.9.png new file mode 100644 index 00000000..5effba7e Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered.png new file mode 100644 index 00000000..78b06505 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered@2x.png new file mode 100644 index 00000000..ec3c8734 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open.png new file mode 100644 index 00000000..7a831632 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open@2x.png new file mode 100644 index 00000000..47c664a2 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed.png new file mode 100644 index 00000000..3340294f Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed@2x.png new file mode 100644 index 00000000..aa35b882 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator.png new file mode 100644 index 00000000..2c7f5578 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator@2x.png new file mode 100644 index 00000000..20b9c44c Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup.9.png new file mode 100644 index 00000000..cae75cd7 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup@2x.9.png new file mode 100644 index 00000000..392607bc Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered.png new file mode 100644 index 00000000..ac614678 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered@2x.png new file mode 100644 index 00000000..b13783c2 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed.png new file mode 100644 index 00000000..22e3958d Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed@2x.png new file mode 100644 index 00000000..72f6fadd Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background.png new file mode 100644 index 00000000..4d9eb023 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background@2x.png new file mode 100644 index 00000000..7ca50be8 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed.png new file mode 100644 index 00000000..39cd2b82 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed@2x.png new file mode 100644 index 00000000..01556b92 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle.png new file mode 100644 index 00000000..8fb85691 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle@2x.png new file mode 100644 index 00000000..f6dc4c90 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background.9.png new file mode 100644 index 00000000..aa305355 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background@2x.9.png new file mode 100644 index 00000000..b4a4bc9d Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/imagine-assets.qrc b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/imagine-assets.qrc new file mode 100644 index 00000000..7bda4995 --- /dev/null +++ b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/imagine-assets.qrc @@ -0,0 +1,113 @@ + + + applicationwindow-background.png + button-background-checked-hovered.9.png + button-background-checked-hovered@2x.9.png + button-background-checked.9.png + button-background-checked@2x.9.png + button-background-disabled.9.png + button-background-disabled@2x.9.png + button-background-hovered.9.png + button-background-hovered@2x.9.png + button-background-pressed.9.png + button-background-pressed@2x.9.png + button-background.9.png + button-background@2x.9.png + combobox-background-hovered.9.png + combobox-background-hovered@2x.9.png + combobox-background-open.9.png + combobox-background-open@2x.9.png + combobox-background-pressed.9.png + combobox-background-pressed@2x.9.png + combobox-background.9.png + combobox-background@2x.9.png + combobox-indicator-hovered.png + combobox-indicator-hovered@2x.png + combobox-indicator-open.png + combobox-indicator-open@2x.png + combobox-indicator-pressed.png + combobox-indicator-pressed@2x.png + combobox-indicator.png + combobox-indicator@2x.png + combobox-popup.9.png + combobox-popup@2x.9.png + dial-background-hovered.png + dial-background-hovered@2x.png + dial-background-pressed.png + dial-background-pressed@2x.png + dial-background.png + dial-background@2x.png + dial-handle-pressed.png + dial-handle-pressed@2x.png + dial-handle.png + dial-handle@2x.png + frame-background.9.png + frame-background@2x.9.png + itemdelegate-background-checked.9.png + itemdelegate-background-checked@2x.9.png + itemdelegate-background-disabled.9.png + itemdelegate-background-disabled@2x.9.png + itemdelegate-background-hovered.9.png + itemdelegate-background-hovered@2x.9.png + itemdelegate-background-pressed.9.png + itemdelegate-background-pressed@2x.9.png + itemdelegate-background.9.png + itemdelegate-background@2x.9.png + roundbutton-background-checked-hovered.png + roundbutton-background-checked-hovered@2x.png + roundbutton-background-checked.png + roundbutton-background-checked@2x.png + roundbutton-background-disabled.png + roundbutton-background-disabled@2x.png + roundbutton-background-hovered.png + roundbutton-background-hovered@2x.png + roundbutton-background-pressed.png + roundbutton-background-pressed@2x.png + roundbutton-background.png + roundbutton-background@2x.png + scrollbar-handle-interactive-hovered.png + scrollbar-handle-interactive-hovered@2x.png + scrollbar-handle-interactive-pressed.png + scrollbar-handle-interactive-pressed@2x.png + scrollbar-handle-interactive.png + scrollbar-handle-interactive@2x.png + slider-background-horizontal-disabled.9.png + slider-background-horizontal-disabled@2x.9.png + slider-background-horizontal.9.png + slider-background-horizontal@2x.9.png + slider-background-vertical-disabled.9.png + slider-background-vertical-disabled@2x.9.png + slider-background-vertical.9.png + slider-background-vertical@2x.9.png + slider-handle-disabled.png + slider-handle-disabled@2x.png + slider-handle-hovered.png + slider-handle-hovered@2x.png + slider-handle.png + slider-handle@2x.png + slider-progress-horizontal.9.png + slider-progress-horizontal@2x.9.png + slider-progress-vertical-disabled.9.png + slider-progress-vertical-disabled@2x.9.png + slider-progress-vertical.9.png + slider-progress-vertical@2x.9.png + textfield-background-disabled.9.png + textfield-background-disabled@2x.9.png + textfield-background.9.png + textfield-background@2x.9.png + toolbar-background.9.png + toolbar-background@2x.9.png + toolbutton-background-checked-hovered.9.png + toolbutton-background-checked-hovered@2x.9.png + toolbutton-background-checked.9.png + toolbutton-background-checked@2x.9.png + toolbutton-background-hovered.9.png + toolbutton-background-hovered@2x.9.png + toolbutton-background-pressed.9.png + toolbutton-background-pressed@2x.9.png + toolbutton-background.9.png + toolbutton-background@2x.9.png + tooltip-background.9.png + tooltip-background@2x.9.png + + diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked.9.png new file mode 100644 index 00000000..a83c2577 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked@2x.9.png new file mode 100644 index 00000000..ded49620 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled.9.png new file mode 100644 index 00000000..2047e888 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled@2x.9.png new file mode 100644 index 00000000..422b2832 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered.9.png new file mode 100644 index 00000000..5c436be5 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered@2x.9.png new file mode 100644 index 00000000..2b98dc22 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed.9.png new file mode 100644 index 00000000..c3c2ac1d Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed@2x.9.png new file mode 100644 index 00000000..3b7ba51a Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background.9.png new file mode 100644 index 00000000..b926d423 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background@2x.9.png new file mode 100644 index 00000000..422b2832 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered.png new file mode 100644 index 00000000..39e71430 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered@2x.png new file mode 100644 index 00000000..dd9610d1 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked.png new file mode 100644 index 00000000..7020a0f5 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked@2x.png new file mode 100644 index 00000000..b24dc0bf Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled.png new file mode 100644 index 00000000..7f60101d Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled@2x.png new file mode 100644 index 00000000..ff0459ed Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered.png new file mode 100644 index 00000000..363d35e6 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered@2x.png new file mode 100644 index 00000000..61f109b7 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed.png new file mode 100644 index 00000000..7ca9d6c9 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed@2x.png new file mode 100644 index 00000000..5b35d944 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background.png new file mode 100644 index 00000000..47f9decd Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background@2x.png new file mode 100644 index 00000000..f6944b7a Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered.png new file mode 100644 index 00000000..050e9edb Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered@2x.png new file mode 100644 index 00000000..096c750e Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed.png new file mode 100644 index 00000000..2fd4bd65 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed@2x.png new file mode 100644 index 00000000..f5c9fe44 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive.png new file mode 100644 index 00000000..45edd220 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive@2x.png new file mode 100644 index 00000000..2e02f30a Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled.9.png new file mode 100644 index 00000000..0a3e6d1a Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled@2x.9.png new file mode 100644 index 00000000..174c03fd Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal.9.png new file mode 100644 index 00000000..a4324dad Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal@2x.9.png new file mode 100644 index 00000000..8a7127c8 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled.9.png new file mode 100644 index 00000000..ee4486c7 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled@2x.9.png new file mode 100644 index 00000000..b48efcd4 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical.9.png new file mode 100644 index 00000000..f3f8f75d Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical@2x.9.png new file mode 100644 index 00000000..76397566 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled.png new file mode 100644 index 00000000..1157718c Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled@2x.png new file mode 100644 index 00000000..b9c55bdd Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered.png new file mode 100644 index 00000000..50ffc782 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered@2x.png new file mode 100644 index 00000000..a89d05e4 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle.png new file mode 100644 index 00000000..d9334948 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle@2x.png new file mode 100644 index 00000000..a8c59db8 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle@2x.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal.9.png new file mode 100644 index 00000000..08bd59da Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal@2x.9.png new file mode 100644 index 00000000..ce1ca6e5 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled.9.png new file mode 100644 index 00000000..f906bb7d Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled@2x.9.png new file mode 100644 index 00000000..2ec0f792 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical.9.png new file mode 100644 index 00000000..7797c4ed Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical@2x.9.png new file mode 100644 index 00000000..891eb100 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled.9.png new file mode 100644 index 00000000..0de72f69 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled@2x.9.png new file mode 100644 index 00000000..6ed5134b Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background.9.png new file mode 100644 index 00000000..d9396673 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background@2x.9.png new file mode 100644 index 00000000..322b6c40 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background.9.png new file mode 100644 index 00000000..b1e8a08b Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background@2x.9.png new file mode 100644 index 00000000..d3a26620 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered.9.png new file mode 100644 index 00000000..dcd5e0db Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered@2x.9.png new file mode 100644 index 00000000..f083b78e Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked.9.png new file mode 100644 index 00000000..154b7d02 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked@2x.9.png new file mode 100644 index 00000000..8c60ca6d Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered.9.png new file mode 100644 index 00000000..52c7321a Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered@2x.9.png new file mode 100644 index 00000000..8eda3fc4 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed.9.png new file mode 100644 index 00000000..e1c29027 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed@2x.9.png new file mode 100644 index 00000000..604a3136 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background.9.png new file mode 100644 index 00000000..205b5f70 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background@2x.9.png new file mode 100644 index 00000000..7c97b8d1 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background.9.png new file mode 100644 index 00000000..bc56e3bd Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background@2x.9.png new file mode 100644 index 00000000..72990330 Binary files /dev/null and b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background@2x.9.png differ diff --git a/examples/quickcontrols2/imagine/musicplayer/musicplayer.cpp b/examples/quickcontrols2/imagine/musicplayer/musicplayer.cpp new file mode 100644 index 00000000..a9fc2b9e --- /dev/null +++ b/examples/quickcontrols2/imagine/musicplayer/musicplayer.cpp @@ -0,0 +1,73 @@ +/**************************************************************************** +** +** 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 +#include +#include +#include + +int main(int argc, char *argv[]) +{ + QGuiApplication::setApplicationName("Music Player"); + QGuiApplication::setOrganizationName("QtProject"); + QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + + QGuiApplication app(argc, argv); + + QIcon::setThemeName("musicplayer"); + + QQmlApplicationEngine engine; + engine.load(QUrl("qrc:/musicplayer.qml")); + if (engine.rootObjects().isEmpty()) + return -1; + + return app.exec(); +} diff --git a/examples/quickcontrols2/imagine/musicplayer/musicplayer.pro b/examples/quickcontrols2/imagine/musicplayer/musicplayer.pro new file mode 100644 index 00000000..b1970ee9 --- /dev/null +++ b/examples/quickcontrols2/imagine/musicplayer/musicplayer.pro @@ -0,0 +1,16 @@ +TEMPLATE = app +TARGET = musicplayer +QT += quick quickcontrols2 + +SOURCES += \ + musicplayer.cpp + +RESOURCES += \ + icons/icons.qrc \ + images/album-cover.jpg \ + imagine-assets/imagine-assets.qrc \ + qtquickcontrols2.conf \ + musicplayer.qml + +target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/imagine/musicplayer +INSTALLS += target diff --git a/examples/quickcontrols2/imagine/musicplayer/musicplayer.qml b/examples/quickcontrols2/imagine/musicplayer/musicplayer.qml new file mode 100644 index 00000000..84084862 --- /dev/null +++ b/examples/quickcontrols2/imagine/musicplayer/musicplayer.qml @@ -0,0 +1,467 @@ +/**************************************************************************** +** +** 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 2.9 +import QtQuick.Layouts 1.3 +import QtQuick.Controls 2.3 +import QtQuick.Window 2.0 + +ApplicationWindow { + id: window + width: 1280 + height: 720 + visible: true + title: "Qt Quick Controls 2 - Imagine Style Example: Music Player" + + Component.onCompleted: { + x = Screen.width / 2 - width / 2 + y = Screen.height / 2 - height / 2 + } + + Shortcut { + sequence: "Ctrl+Q" + onActivated: Qt.quit() + } + + header: ToolBar { + RowLayout { + id: headerRowLayout + anchors.fill: parent + spacing: 0 + + ToolButton { + icon.name: "grid" + } + ToolButton { + icon.name: "settings" + } + ToolButton { + icon.name: "filter" + } + ToolButton { + icon.name: "message" + } + ToolButton { + icon.name: "music" + } + ToolButton { + icon.name: "cloud" + } + ToolButton { + icon.name: "bluetooth" + } + ToolButton { + icon.name: "cart" + } + + Item { + Layout.fillWidth: true + } + + ToolButton { + icon.name: "power" + onClicked: Qt.quit() + } + } + } + + Label { + text: "Qtify" + font.pixelSize: Qt.application.font.pixelSize * 1.3 + anchors.centerIn: header + z: header.z + 1 + } + + RowLayout { + spacing: 115 + anchors.fill: parent + anchors.margins: 70 + + ColumnLayout { + spacing: 0 + Layout.preferredWidth: 230 + + RowLayout { + Layout.maximumHeight: 170 + + ColumnLayout { + Label { + text: "12 dB" + Layout.fillHeight: true + } + Label { + text: "6 dB" + Layout.fillHeight: true + } + Label { + text: "0 dB" + Layout.fillHeight: true + } + Label { + text: "-6 dB" + Layout.fillHeight: true + } + Label { + text: "-12 dB" + Layout.fillHeight: true + } + } + + Repeater { + model: 7 + + Slider { + value: Math.random() + orientation: Qt.Vertical + + Layout.fillWidth: true + Layout.fillHeight: true + } + } + } + + RowLayout { + spacing: 10 + Layout.topMargin: 23 + + ComboBox { + currentIndex: 1 + model: ["Blues", "Classical", "Jazz", "Metal"] + Layout.fillWidth: true + } + + Button { + icon.name: "folder" + } + + Button { + icon.name: "save" + enabled: false + } + } + + Dial { + anchors.horizontalCenter: parent.horizontalCenter + + Layout.topMargin: 50 + } + + Label { + text: "Volume" + anchors.horizontalCenter: parent.horizontalCenter + + Layout.topMargin: 12 + } + } + + ColumnLayout { + spacing: 26 + Layout.preferredWidth: 230 + + Item { + Layout.fillWidth: true + Layout.fillHeight: true + + Image { + anchors.fill: parent + fillMode: Image.PreserveAspectCrop + source: "images/album-cover.jpg" + } + } + + Item { + id: songLabelContainer + clip: true + + Layout.fillWidth: true + Layout.preferredHeight: songNameLabel.implicitHeight + + SequentialAnimation { + running: true + loops: Animation.Infinite + + PauseAnimation { + duration: 2000 + } + ParallelAnimation { + XAnimator { + target: songNameLabel + from: 0 + to: songLabelContainer.width - songNameLabel.implicitWidth + duration: 5000 + } + OpacityAnimator { + target: leftGradient + from: 0 + to: 1 + } + } + OpacityAnimator { + target: rightGradient + from: 1 + to: 0 + } + PauseAnimation { + duration: 1000 + } + OpacityAnimator { + target: rightGradient + from: 0 + to: 1 + } + ParallelAnimation { + XAnimator { + target: songNameLabel + from: songLabelContainer.width - songNameLabel.implicitWidth + to: 0 + duration: 5000 + } + OpacityAnimator { + target: leftGradient + from: 0 + to: 1 + } + } + OpacityAnimator { + target: leftGradient + from: 1 + to: 0 + } + } + + Rectangle { + id: leftGradient + gradient: Gradient { + GradientStop { + position: 0 + color: "#dfe4ea" + } + GradientStop { + position: 1 + color: "#00dfe4ea" + } + } + + width: height + height: parent.height + anchors.left: parent.left + z: 1 + rotation: -90 + opacity: 0 + } + + Label { + id: songNameLabel + text: "Edvard Grieg - In the Hall of the Mountain King" + font.pixelSize: Qt.application.font.pixelSize * 1.4 + } + + Rectangle { + id: rightGradient + gradient: Gradient { + GradientStop { + position: 0 + color: "#00dfe4ea" + } + GradientStop { + position: 1 + color: "#dfe4ea" + } + } + + width: height + height: parent.height + anchors.right: parent.right + rotation: -90 + } + } + + RowLayout { + spacing: 8 + Layout.alignment: Qt.AlignHCenter + + RoundButton { + icon.name: "favorite" + icon.width: 32 + icon.height: 32 + } + RoundButton { + icon.name: "stop" + icon.width: 32 + icon.height: 32 + } + RoundButton { + icon.name: "previous" + icon.width: 32 + icon.height: 32 + } + RoundButton { + icon.name: "pause" + icon.width: 32 + icon.height: 32 + } + RoundButton { + icon.name: "next" + icon.width: 32 + icon.height: 32 + } + RoundButton { + icon.name: "repeat" + icon.width: 32 + icon.height: 32 + } + RoundButton { + icon.name: "shuffle" + icon.width: 32 + icon.height: 32 + } + } + + Slider { + id: seekSlider + value: 113 + to: 261 + + Layout.fillWidth: true + + ToolTip { + parent: seekSlider.handle + visible: seekSlider.pressed + text: pad(Math.floor(value / 60)) + ":" + pad(Math.floor(value % 60)) + y: parent.height + + readonly property int value: seekSlider.valueAt(seekSlider.position) + + function pad(number) { + if (number <= 9) + return "0" + number; + return number; + } + } + } + } + + ColumnLayout { + spacing: 16 + Layout.preferredWidth: 230 + + ButtonGroup { + buttons: libraryRowLayout.children + } + + RowLayout { + id: libraryRowLayout + Layout.alignment: Qt.AlignHCenter + + Button { + text: "Files" + checked: true + } + Button { + text: "Playlists" + checkable: true + } + Button { + text: "Favourites" + checkable: true + } + } + + RowLayout { + TextField { + Layout.fillWidth: true + } + Button { + icon.name: "folder" + } + } + + Frame { + id: filesFrame + leftPadding: 1 + rightPadding: 1 + + Layout.fillWidth: true + Layout.fillHeight: true + + ListView { + clip: true + anchors.fill: parent + model: ListModel { + Component.onCompleted: { + for (var i = 0; i < 100; ++i) { + append({ + author: "Author", + album: "Album", + track: "Track 0" + (i % 9 + 1), + }); + } + } + } + delegate: ItemDelegate { + text: model.author + " - " + model.album + " - " + model.track + width: parent.width + } + + ScrollBar.vertical: ScrollBar { + parent: filesFrame + policy: ScrollBar.AlwaysOn + anchors.top: parent.top + anchors.topMargin: filesFrame.topPadding + anchors.right: parent.right + anchors.rightMargin: 1 + anchors.bottom: parent.bottom + anchors.bottomMargin: filesFrame.bottomPadding + } + } + } + } + } +} diff --git a/examples/quickcontrols2/imagine/musicplayer/qtquickcontrols2.conf b/examples/quickcontrols2/imagine/musicplayer/qtquickcontrols2.conf new file mode 100644 index 00000000..2fc304eb --- /dev/null +++ b/examples/quickcontrols2/imagine/musicplayer/qtquickcontrols2.conf @@ -0,0 +1,10 @@ +[Controls] +Style=Imagine + +[Imagine] +Path=qrc:/imagine-assets + +[Imagine\Palette] +Text=#6b7b89 +ButtonText=#6b7b89 +WindowText=#6b7b89 diff --git a/examples/quickcontrols2/quickcontrols2.pro b/examples/quickcontrols2/quickcontrols2.pro index cf01e8b0..3e2e3948 100644 --- a/examples/quickcontrols2/quickcontrols2.pro +++ b/examples/quickcontrols2/quickcontrols2.pro @@ -8,4 +8,5 @@ SUBDIRS += \ swipetoremove \ flatstyle \ wearable \ - imagine/automotive + imagine/automotive \ + imagine/musicplayer -- cgit v1.2.3