diff options
author | Mitch Curtis <[email protected]> | 2021-08-12 14:39:51 +0200 |
---|---|---|
committer | Mitch Curtis <[email protected]> | 2021-08-16 12:52:59 +0200 |
commit | 809339d1484cf556512534367b8170bc26baf072 (patch) | |
tree | 12871313b658f36d058b5ef25af1e247e9c46ce9 /examples/quickcontrols2/wearable/qml/Settings | |
parent | b01b4f00eae8022c6a97d90f54dac395144ae095 (diff) |
Now that qtquickcontrols2 has been merged into qtdeclarative,
we should make it obvious that this repo should no longer be
used, by preventing it from being built.
Task-number: QTBUG-95173
Pick-to: 6.2
Change-Id: I95bd6a214f3d75a865ab163ee0a1f9ffbeb7a051
Reviewed-by: Alexandru Croitor <[email protected]>
Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'examples/quickcontrols2/wearable/qml/Settings')
25 files changed, 0 insertions, 353 deletions
diff --git a/examples/quickcontrols2/wearable/qml/Settings/SettingsPage.qml b/examples/quickcontrols2/wearable/qml/Settings/SettingsPage.qml deleted file mode 100644 index 347ad417..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/SettingsPage.qml +++ /dev/null @@ -1,176 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick -import QtQuick.Controls as QQC2 -import ".." -import "../Style" - -Item { - - QQC2.SwipeView { - id: svSettingsContainer - - anchors.fill: parent - - SwipeViewPage { - id: settingsPage1 - - property alias bluetoothSwitch: bluetoothSwitch - property alias wirelessSwitch: wirelessSwitch - - Column { - anchors.centerIn: parent - spacing: 25 - - Row { - spacing: 50 - Image { - anchors.verticalCenter: parent.verticalCenter - source: UIStyle.themeImagePath("images/bluetooth") - } - QQC2.Switch { - id: bluetoothSwitch - anchors.verticalCenter: parent.verticalCenter - checked: settings.bluetooth - onToggled: settings.bluetooth = checked - } - } - Row { - spacing: 50 - Image { - anchors.verticalCenter: parent.verticalCenter - source: UIStyle.themeImagePath("images/wifi") - } - QQC2.Switch { - id: wirelessSwitch - anchors.verticalCenter: parent.verticalCenter - checked: settings.wireless - onToggled: settings.wireless = checked - } - } - } - } - - SwipeViewPage { - id: settingsPage2 - - property alias brightnessSlider: brightnessSlider - property alias darkThemeSwitch: darkThemeSwitch - - Column { - anchors.centerIn: parent - spacing: 2 - - Column { - Image { - anchors.horizontalCenter: parent.horizontalCenter - source: UIStyle.themeImagePath("images/brightness") - } - QQC2.Slider { - id: brightnessSlider - anchors.horizontalCenter: parent.horizontalCenter - from: 0 - to: 5 - stepSize: 1 - value: settings.brightness - onMoved: settings.brightness = value - } - } - Column { - anchors.horizontalCenter: parent.horizontalCenter - - Image { - anchors.horizontalCenter: parent.horizontalCenter - source: UIStyle.themeImagePath("images/theme") - } - QQC2.Switch { - id: darkThemeSwitch - anchors.horizontalCenter: parent.horizontalCenter - checked: settings.darkTheme - onToggled: settings.darkTheme = checked - } - } - } - } - - SwipeViewPage { - id: settingsPage3 - - Column { - anchors.centerIn: parent - - Column { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 6 - - Image { - anchors.horizontalCenter: parent.horizontalCenter - source: UIStyle.themeImagePath("images/demo-mode") - } - QQC2.Switch { - id: demoModeSwitch - anchors.horizontalCenter: parent.horizontalCenter - checked: settings.demoMode - onToggled: settings.demoMode = checked - } - } - } - } - } - - QQC2.PageIndicator { - count: svSettingsContainer.count - currentIndex: svSettingsContainer.currentIndex - - anchors.bottom: svSettingsContainer.bottom - anchors.horizontalCenter: parent.horizontalCenter - } -} diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark.png Binary files differdeleted file mode 100644 index 0f1f4d0a..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark.png +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] b/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] Binary files differdeleted file mode 100644 index 7496fc56..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light.png Binary files differdeleted file mode 100644 index 6e297cfa..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light.png +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] b/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] Binary files differdeleted file mode 100644 index 62d08403..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark.png Binary files differdeleted file mode 100644 index f9eb07b5..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark.png +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] b/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] Binary files differdeleted file mode 100644 index 3efc5a6c..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light.png Binary files differdeleted file mode 100644 index ce3023b5..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light.png +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] b/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] Binary files differdeleted file mode 100644 index dc01aae1..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark.png Binary files differdeleted file mode 100644 index e93c417d..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark.png +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] b/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] Binary files differdeleted file mode 100644 index faa1bf6d..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light.png Binary files differdeleted file mode 100644 index c38d146d..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light.png +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] b/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] Binary files differdeleted file mode 100644 index b9d6409c..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white.png Binary files differdeleted file mode 100644 index aac8ef3f..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white.png +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] b/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] Binary files differdeleted file mode 100644 index b4d8954f..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode.svg b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode.svg deleted file mode 100644 index ad1ce448..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode.svg +++ /dev/null @@ -1,93 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> - -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="64" - height="64" - viewBox="0 0 16.933333 16.933333" - version="1.1" - id="svg8" - inkscape:version="0.92.3 (d244b95, 2018-08-02)" - sodipodi:docname="demo-mode.svg" - inkscape:export-filename="/home/mitch/dev/qt5.12/qtquickcontrols2/examples/quickcontrols2/wearable/qml/Settings/images/[email protected]" - inkscape:export-xdpi="192" - inkscape:export-ydpi="192"> - <defs - id="defs2" /> - <sodipodi:namedview - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1.0" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="15.839192" - inkscape:cx="26.498574" - inkscape:cy="25.685519" - inkscape:document-units="px" - inkscape:current-layer="layer1" - showgrid="true" - units="px" - fit-margin-top="1" - fit-margin-left="1" - fit-margin-right="1" - fit-margin-bottom="1" - inkscape:window-width="3706" - inkscape:window-height="2031" - inkscape:window-x="134" - inkscape:window-y="55" - inkscape:window-maximized="1" - inkscape:snap-global="false"> - <inkscape:grid - type="xygrid" - id="grid3713" - originx="-0.0070880335" - originy="-280.58354" /> - </sodipodi:namedview> - <metadata - id="metadata5"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title /> - </cc:Work> - </rdf:RDF> - </metadata> - <g - inkscape:label="Layer 1" - inkscape:groupmode="layer" - id="layer1" - transform="translate(-0.00708803,0.51688025)"> - <path - style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="m 1.6489221,4.3034973 h 0.7205171 v 7.0102767 c 0.01422,0.27678 0.1921164,0.348966 0.392741,0.392741 H 14.169383 c 0.276028,-0.04241 0.382882,-0.208883 0.423747,-0.423747 V 4.3094031 h 0.692464 v 7.0279949 c -0.111554,0.831949 -0.589986,1.000696 -1.104399,1.104399 H 9.3324693 l 2.2589977,2.258998 c -0.0189,0.375139 -0.204956,0.516261 -0.501999,0.502 L 8.8304698,12.943797 v 1.972563 c -0.051861,0.342631 -0.6681357,0.36382 -0.7323291,0 V 12.949702 L 5.8391425,15.208701 C 5.5142667,15.206145 5.3522558,15.056484 5.3725781,14.742136 L 7.7172116,12.397503 H 2.7415096 C 2.1429244,12.357576 1.6879444,12.049089 1.6444927,11.300486 Z" - id="path826" - inkscape:connector-curvature="0" - sodipodi:nodetypes="ccccccccccccccccccccccc" /> - <rect - style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.2619375;stroke-miterlimit:4;stroke-dasharray:0.523875, 0.2619375;stroke-dashoffset:0" - id="rect828" - width="16.044523" - height="1.9126476" - x="0.441401" - y="2.0340116" - rx="1.0583333" - ry="1.0583333" /> - <path - style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 7.8323763,1.681278 V 1.1615701 c 0.1987987,-0.67546179 1.0821701,-0.66495897 1.2992931,0 V 1.681278 Z" - id="path830" - inkscape:connector-curvature="0" - sodipodi:nodetypes="ccccc" /> - </g> -</svg> diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark.png Binary files differdeleted file mode 100644 index d4c4a8c0..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark.png +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] b/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] Binary files differdeleted file mode 100644 index 30d8c6de..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/theme-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/theme-light.png Binary files differdeleted file mode 100644 index e7a0771b..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/theme-light.png +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] b/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] Binary files differdeleted file mode 100644 index 83bc878b..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/theme.svg b/examples/quickcontrols2/wearable/qml/Settings/images/theme.svg deleted file mode 100644 index bf3f1e57..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/theme.svg +++ /dev/null @@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> - -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="64" - height="64" - viewBox="0 0 16.933333 16.933333" - version="1.1" - id="svg8" - inkscape:version="0.92.3 (2405546, 2018-03-11)" - sodipodi:docname="theme.svg" - inkscape:export-filename="C:\dev\qt5.11\qtquickcontrols2\examples\quickcontrols2\wearable\qml\Settings\images\[email protected]" - inkscape:export-xdpi="192" - inkscape:export-ydpi="192"> - <defs - id="defs2" /> - <sodipodi:namedview - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1.0" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="7.9195959" - inkscape:cx="-11.371874" - inkscape:cy="28.405259" - inkscape:document-units="px" - inkscape:current-layer="layer1" - showgrid="true" - units="px" - fit-margin-top="1" - fit-margin-left="1" - fit-margin-right="1" - fit-margin-bottom="1" - inkscape:window-width="3840" - inkscape:window-height="2066" - inkscape:window-x="-11" - inkscape:window-y="-11" - inkscape:window-maximized="1" - inkscape:snap-global="false"> - <inkscape:grid - type="xygrid" - id="grid3713" - originx="-0.0070880335" - originy="-280.58354" /> - </sodipodi:namedview> - <metadata - id="metadata5"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title /> - </cc:Work> - </rdf:RDF> - </metadata> - <g - inkscape:label="Layer 1" - inkscape:groupmode="layer" - id="layer1" - transform="translate(-0.00708803,0.51688025)"> - <path - style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.25668776px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 2.7296861,14.56437 H 12.831038 C 13.464556,14.411157 15.01089,14.101758 15.231756,11.825604 15.232242,10.48538 13.96701,8.4813248 11.69084,9.0467292 10.687852,7.3630573 9.1232541,7.2558172 8.2817051,7.654427 6.9050791,4.9744381 2.9222535,5.8560797 2.9703307,8.9435956 1.7108806,9.1004362 0.37826375,9.7182846 0.27167137,11.745388 0.31660717,13.546059 1.5831259,14.350467 2.7296861,14.56437 Z" - id="path4535" - inkscape:connector-curvature="0" - sodipodi:nodetypes="cccccccc" /> - <path - style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.25668776px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - d="M 11.392726,0.92763044 C 8.8246143,2.2754379 7.9809615,4.3443829 8.9780532,7.1830936 10.167295,7.1426991 11.108291,7.6664967 11.822182,8.7064442 12.799984,8.6194307 13.765772,8.6795708 14.658208,9.6382815 15.605885,9.3257847 16.200803,8.852941 16.675838,8.325607 13.735088,9.4033595 8.6151974,5.957728 11.392726,0.92763044 Z" - id="path4537" - inkscape:connector-curvature="0" - sodipodi:nodetypes="cccccc" /> - </g> -</svg> diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark.png Binary files differdeleted file mode 100644 index 14bfe8f5..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark.png +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] b/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] Binary files differdeleted file mode 100644 index b70d0429..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light.png Binary files differdeleted file mode 100644 index 2de34118..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light.png +++ /dev/null diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] b/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] Binary files differdeleted file mode 100644 index 64b5f172..00000000 --- a/examples/quickcontrols2/wearable/qml/Settings/images/[email protected] +++ /dev/null |