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 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