aboutsummaryrefslogtreecommitdiffstats
path: root/examples/labs/controls
diff options
context:
space:
mode:
Diffstat (limited to 'examples/labs/controls')
-rw-r--r--examples/labs/controls/controls.pro9
-rw-r--r--examples/labs/controls/drawer/drawer.pro15
-rw-r--r--examples/labs/controls/drawer/drawer.qrc7
-rw-r--r--examples/labs/controls/drawer/images/arrow.pngbin2446 -> 0 bytes
-rw-r--r--examples/labs/controls/drawer/images/qt-logo.pngbin21710 -> 0 bytes
-rw-r--r--examples/labs/controls/drawer/main.cpp52
-rw-r--r--examples/labs/controls/drawer/main.qml157
-rw-r--r--examples/labs/controls/mirroring/main.cpp52
-rw-r--r--examples/labs/controls/mirroring/main.qml237
-rw-r--r--examples/labs/controls/mirroring/mirroring.pro15
-rw-r--r--examples/labs/controls/mirroring/mirroring.qrc5
-rw-r--r--examples/labs/controls/tabs/images/qt-logo.pngbin21710 -> 0 bytes
-rw-r--r--examples/labs/controls/tabs/main.cpp52
-rw-r--r--examples/labs/controls/tabs/main.qml290
-rw-r--r--examples/labs/controls/tabs/tabs.pro15
-rw-r--r--examples/labs/controls/tabs/tabs.qrc6
-rw-r--r--examples/labs/controls/theme/main.cpp52
-rw-r--r--examples/labs/controls/theme/main.qml174
-rw-r--r--examples/labs/controls/theme/theme.pro15
-rw-r--r--examples/labs/controls/theme/theme.qrc5
20 files changed, 0 insertions, 1158 deletions
diff --git a/examples/labs/controls/controls.pro b/examples/labs/controls/controls.pro
deleted file mode 100644
index 4c0cd6e4..00000000
--- a/examples/labs/controls/controls.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += \
- mirroring \
- theme \
- tabs \
- drawer
-
-EXAMPLE_FILES += \
- shared
diff --git a/examples/labs/controls/drawer/drawer.pro b/examples/labs/controls/drawer/drawer.pro
deleted file mode 100644
index 02e40200..00000000
--- a/examples/labs/controls/drawer/drawer.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-TEMPLATE = app
-TARGET = drawer
-QT += quick
-
-SOURCES += \
- main.cpp
-
-OTHER_FILES += \
- main.qml
-
-RESOURCES += \
- drawer.qrc
-
-target.path = $$[QT_INSTALL_EXAMPLES]/labs/controls/drawer
-INSTALLS += target
diff --git a/examples/labs/controls/drawer/drawer.qrc b/examples/labs/controls/drawer/drawer.qrc
deleted file mode 100644
index 25cc5cbe..00000000
--- a/examples/labs/controls/drawer/drawer.qrc
+++ /dev/null
@@ -1,7 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- <file>images/arrow.png</file>
- <file>images/qt-logo.png</file>
- </qresource>
-</RCC>
diff --git a/examples/labs/controls/drawer/images/arrow.png b/examples/labs/controls/drawer/images/arrow.png
deleted file mode 100644
index 4981e0de..00000000
--- a/examples/labs/controls/drawer/images/arrow.png
+++ /dev/null
Binary files differ
diff --git a/examples/labs/controls/drawer/images/qt-logo.png b/examples/labs/controls/drawer/images/qt-logo.png
deleted file mode 100644
index cf350dad..00000000
--- a/examples/labs/controls/drawer/images/qt-logo.png
+++ /dev/null
Binary files differ
diff --git a/examples/labs/controls/drawer/main.cpp b/examples/labs/controls/drawer/main.cpp
deleted file mode 100644
index 2abdc16d..00000000
--- a/examples/labs/controls/drawer/main.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/main.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
- return app.exec();
-}
diff --git a/examples/labs/controls/drawer/main.qml b/examples/labs/controls/drawer/main.qml
deleted file mode 100644
index 5fba80b3..00000000
--- a/examples/labs/controls/drawer/main.qml
+++ /dev/null
@@ -1,157 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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.6
-import Qt.labs.controls 1.0
-
-ApplicationWindow {
- id: window
- width: 360
- height: 520
- visible: true
- title: "Qt Labs Controls - Drawer Example"
-
- Rectangle {
- id: content
- anchors.fill: parent
- anchors.margins: -1
- border.color: Theme.frameColor
-
- Image {
- width: window.width / 2
- height: window.height / 2
- anchors.centerIn: parent
- anchors.horizontalCenterOffset: window.width > window.height ? width / 2 : 0
- anchors.verticalCenterOffset: window.width < window.height ? -height / 4 : 0
- fillMode: Image.PreserveAspectFit
- source: "qrc:/images/qt-logo.png"
- }
-
- Image {
- width: window.width / 2
- anchors.bottom: parent.bottom
- anchors.bottomMargin: height / 2
- fillMode: Image.PreserveAspectFit
- source: "qrc:/images/arrow.png"
- }
-
- transform: Translate {
- x: effect.current === uncover ? drawer.position * listview.width :
- effect.current === push ? drawer.position * listview.width * 0.5 : 0
- }
-
- z: effect.current === uncover ? 2 : 0
- }
-
- Drawer {
- id: drawer
- anchors.fill: parent
-
- ListView {
- id: listview
-
- width: window.width / 3 * 2
- height: window.height
-
- ButtonGroup {
- id: effect
- }
-
- model: VisualItemModel {
- Label {
- text: "Settings"
- x: 6
- width: parent.width - 12
- lineHeight: 2.0
- color: Theme.accentColor
- verticalAlignment: Text.AlignVCenter
- }
- Rectangle { width: parent.width; height: 1; color: Theme.frameColor }
- Switch {
- id: dim
- text: "Dim"
- checked: true
- width: parent.width
- layoutDirection: Qt.RightToLeft
- enabled: effect.current != uncover
- }
- Rectangle { width: parent.width; height: 1; color: Theme.frameColor }
- RadioButton {
- id: overlay
- text: "Overlay"
- checked: true
- width: parent.width
- ButtonGroup.group: effect
- layoutDirection: Qt.RightToLeft
- }
- RadioButton {
- id: push
- text: "Push"
- width: parent.width
- ButtonGroup.group: effect
- layoutDirection: Qt.RightToLeft
- }
- RadioButton {
- id: uncover
- text: "Uncover"
- width: parent.width
- ButtonGroup.group: effect
- layoutDirection: Qt.RightToLeft
- }
- Rectangle { width: parent.width; height: 1; color: Theme.frameColor }
- }
- Rectangle {
- z: -1
- anchors.fill: parent
- anchors.topMargin: -1
- anchors.bottomMargin: -1
- border.color: Theme.frameColor
- }
-
- transform: Translate {
- x: effect.current === uncover ? (1.0 - drawer.position) * listview.width : 0
- }
- }
-
- background.visible: dim.checked
-
- onClicked: close()
- }
-}
diff --git a/examples/labs/controls/mirroring/main.cpp b/examples/labs/controls/mirroring/main.cpp
deleted file mode 100644
index 2abdc16d..00000000
--- a/examples/labs/controls/mirroring/main.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/main.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
- return app.exec();
-}
diff --git a/examples/labs/controls/mirroring/main.qml b/examples/labs/controls/mirroring/main.qml
deleted file mode 100644
index 69218a86..00000000
--- a/examples/labs/controls/mirroring/main.qml
+++ /dev/null
@@ -1,237 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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.6
-import QtQuick.Layouts 1.0
-import Qt.labs.controls 1.0
-
-ApplicationWindow {
- id: window
- width: 360
- height: 520
- visible: true
- title: "Qt Labs Controls - Mirroring Example"
-
- ListView {
- id: listview
- anchors.fill: parent
-
- LayoutMirroring.enabled: headerItem.mirror
- LayoutMirroring.childrenInherit: true
-
- headerPositioning: ListView.PullBackHeader
- header: Rectangle {
- property alias mirror: mirrorSwitch.checked
-
- z: 2
- width: parent.width
- height: label.implicitHeight + 96
-
- Label {
- id: label
- text: "Beyond the essentials."
- color: Theme.accentColor
- anchors.fill: parent
- anchors.margins: 48
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- wrapMode: Text.WordWrap
- font.pointSize: 26
- }
-
- Switch {
- id: mirrorSwitch
- text: "Mirror"
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- layoutDirection: Qt.RightToLeft
- LayoutMirroring.enabled: false
- }
-
- Rectangle {
- width: parent.width
- height: 1
- anchors.bottom: parent.bottom
- color: Theme.frameColor
- }
- }
-
- model: VisualItemModel {
-
- Item { width: 1; height: 24 }
-
- Flow {
- id: flow
- spacing: 12
- width: Math.min(window.width, window.height) - 24
- anchors.horizontalCenter: parent.horizontalCenter
-
- GroupBox {
- title: "CheckBox"
- readonly property real preferredWidth: (flow.width - 12) / 2
- width: window.width > window.height || contentWidth > preferredWidth ? flow.width : preferredWidth
- ColumnLayout {
- width: parent.width
- CheckBox {
- width: parent.width
- text: "E-mail"
- checked: true
- }
- CheckBox {
- width: parent.width
- text: "Calendar"
- checked: true
- }
- CheckBox {
- width: parent.width
- text: "Contacts"
- }
- }
- }
-
- GroupBox {
- title: "RadioButton"
- readonly property real preferredWidth: (flow.width - 12) / 2
- width: window.width > window.height || contentWidth > preferredWidth ? flow.width : preferredWidth
- ButtonGroup { id: eg }
- ColumnLayout {
- width: parent.width
- RadioButton {
- width: parent.width
- text: "Portrait"
- ButtonGroup.group: eg
- }
- RadioButton {
- width: parent.width
- text: "Landscape"
- ButtonGroup.group: eg
- }
- RadioButton {
- width: parent.width
- text: "Automatic"
- checked: true
- ButtonGroup.group: eg
- }
- }
- }
-
- GroupBox {
- title: "Button"
- width: flow.width
- Row {
- width: parent.width
- spacing: 6
- readonly property real availableWidth: (flow.width - 12) / 2
- readonly property real contentWidth: okButton.implicitWidth + cancelButton.implicitWidth + 12
- readonly property real buttonWidth: implicitWidth > availableWidth ? (width / 2 - spacing) : (width / 2 - 2 * spacing) / 2
- Button {
- id: okButton
- text: "Ok"
- width: parent.buttonWidth
- }
- Button {
- id: cancelButton
- text: "Cancel"
- width: parent.buttonWidth
- }
- }
- }
-
- GroupBox {
- title: "Switch"
- width: flow.width
- Column {
- width: parent.width
- Switch {
- width: parent.width
- text: "Wifi"
- checked: true
- }
- Switch {
- width: parent.width
- text: "Bluetooth"
- }
- }
- }
-
- GroupBox {
- title: "ProgressBar"
- width: flow.width
- Column {
- width: parent.width
- spacing: 6
- ProgressBar {
- width: parent.width
- indeterminate: true
- }
- ProgressBar {
- width: parent.width
- value: slider.position
- }
- }
- }
-
- GroupBox {
- title: "Slider"
- width: flow.width
- Column {
- width: parent.width
- spacing: 6
- Slider {
- id: slider
- value: 0.4
- width: parent.width
- }
- Slider {
- width: parent.width
- snapMode: Slider.SnapAlways
- stepSize: 0.2
- value: 0.8
- }
- }
- }
- }
-
- Item { width: 1; height: 12 }
- }
-
- ScrollIndicator.vertical: ScrollIndicator { anchors.right: parent.right }
- }
-}
diff --git a/examples/labs/controls/mirroring/mirroring.pro b/examples/labs/controls/mirroring/mirroring.pro
deleted file mode 100644
index 60b73f94..00000000
--- a/examples/labs/controls/mirroring/mirroring.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-TEMPLATE = app
-TARGET = mirroring
-QT += quick
-
-SOURCES += \
- main.cpp
-
-OTHER_FILES += \
- main.qml
-
-RESOURCES += \
- mirroring.qrc
-
-target.path = $$[QT_INSTALL_EXAMPLES]/labs/controls/mirroring
-INSTALLS += target
diff --git a/examples/labs/controls/mirroring/mirroring.qrc b/examples/labs/controls/mirroring/mirroring.qrc
deleted file mode 100644
index 5f6483ac..00000000
--- a/examples/labs/controls/mirroring/mirroring.qrc
+++ /dev/null
@@ -1,5 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- </qresource>
-</RCC>
diff --git a/examples/labs/controls/tabs/images/qt-logo.png b/examples/labs/controls/tabs/images/qt-logo.png
deleted file mode 100644
index cf350dad..00000000
--- a/examples/labs/controls/tabs/images/qt-logo.png
+++ /dev/null
Binary files differ
diff --git a/examples/labs/controls/tabs/main.cpp b/examples/labs/controls/tabs/main.cpp
deleted file mode 100644
index 2abdc16d..00000000
--- a/examples/labs/controls/tabs/main.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/main.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
- return app.exec();
-}
diff --git a/examples/labs/controls/tabs/main.qml b/examples/labs/controls/tabs/main.qml
deleted file mode 100644
index ceebc622..00000000
--- a/examples/labs/controls/tabs/main.qml
+++ /dev/null
@@ -1,290 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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.6
-import QtQuick.Layouts 1.0
-import Qt.labs.controls 1.0
-import QtQuick.XmlListModel 2.0
-
-ApplicationWindow {
- id: window
- width: 360
- height: 520
- visible: true
- title: "Qt Labs Controls - Tabs Example"
-
- header: TabBar {
- id: bar
- currentIndex: view.currentIndex
- TabButton {
- text: "Home"
- }
- TabButton {
- text: "Discover"
- }
- TabButton {
- text: "Activity"
- }
- }
-
- SwipeView {
- id: view
-
- spacing: 1
- anchors.fill: parent
- currentIndex: bar.currentIndex
- background: Rectangle { color: Theme.frameColor }
-
- Rectangle {
- Image {
- id: logo
- width: window.width / 2
- height: window.height / 2
- anchors.centerIn: parent
- fillMode: Image.PreserveAspectFit
- source: "qrc:/images/qt-logo.png"
- }
-
- Label {
- text: "Things just got better"
- color: Theme.accentColor
- anchors.margins: 40
- anchors.top: logo.bottom
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- wrapMode: Text.WordWrap
- font.pointSize: 26
- }
- }
-
- Rectangle {
- ListView {
- anchors.fill: parent
- anchors.topMargin: -1
- model: XmlListModel {
- id: feedModel
- query: "/rss/channel/item"
- source: "http://blog.qt.io/feed/"
- namespaceDeclarations: "declare namespace dc='http://purl.org/dc/elements/1.1/';"
- XmlRole { name: "title"; query: "title/string()" }
- XmlRole { name: "link"; query: "link/string()" }
- XmlRole { name: "pubDate"; query: "pubDate/string()" }
- XmlRole { name: "creator"; query: "dc:creator/string()" }
- XmlRole { name: "description"; query: "description/string()" }
- }
-
- delegate: Item {
- width: parent.width
- height: feedItem.height
- Column {
- id: feedItem
- width: parent.width
- spacing: 6
- Rectangle {
- width: parent.width
- height: 1
- color: Theme.frameColor
- visible: index == 0
- }
- Item { width: 1; height: 6 }
- Label {
- text: model.title
- x: 6
- width: parent.width - 12
- elide: Text.ElideRight
- color: Theme.accentColor
- font.pointSize: 20
- lineHeight: 0.75
- }
- Label {
- text: model.description
- textFormat: Text.StyledText
- x: 6
- width: parent.width - 12
- wrapMode: Text.WordWrap
- }
- RowLayout {
- x: 6
- width: parent.width - 12
- spacing: 6
- Label {
- id: discoverCreator
- text: model.creator
- height: parent.height
- verticalAlignment: Text.AlignVCenter
- color: Theme.focusColor
- font.pointSize: 8
- }
- Label {
- text: model.pubDate
- height: parent.height
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- color: Theme.disabledColor
- font.pointSize: 8
- Layout.preferredWidth: parent.width - discoverCreator.width - discoverMore.width - 2 * parent.spacing
- visible: Layout.preferredWidth > 0
- }
- Button {
- id: discoverMore
- text: "Read more..."
- onClicked: Qt.openUrlExternally(model.link)
- }
- }
- Rectangle {
- width: parent.width
- height: 1
- color: Theme.frameColor
- }
- }
- }
-
- ScrollIndicator.vertical: ScrollIndicator { }
- }
-
- BusyIndicator {
- anchors.centerIn: parent
- running: feedModel.status === XmlListModel.Loading
- }
- }
-
- Rectangle {
- ListView {
- anchors.fill: parent
- anchors.topMargin: -1
- model: XmlListModel {
- id: commentModel
- query: "/rss/channel/item"
- source: "http://blog.qt.io/comments/feed/"
- namespaceDeclarations: "declare namespace dc='http://purl.org/dc/elements/1.1/';"
- XmlRole { name: "title"; query: "title/string()" }
- XmlRole { name: "link"; query: "link/string()" }
- XmlRole { name: "pubDate"; query: "pubDate/string()" }
- XmlRole { name: "creator"; query: "dc:creator/string()" }
- XmlRole { name: "description"; query: "description/string()" }
- }
-
- delegate: Rectangle {
- width: parent.width
- height: commentItem.height
- Column {
- id: commentItem
- width: parent.width
- spacing: 6
- Rectangle {
- width: parent.width
- height: 1
- color: Theme.frameColor
- visible: index == 0
- }
- Item { width: 1; height: 6 }
- Label {
- text: model.title
- x: 6
- width: parent.width - 12
- elide: Text.ElideRight
- color: Theme.accentColor
- font.pointSize: 14
- lineHeight: 0.75
- }
- Item { width: 1; height: 6 }
- Label {
- text: model.description
- textFormat: Text.StyledText
- x: 6
- width: parent.width - 12
- wrapMode: Text.WordWrap
- }
- RowLayout {
- x: 6
- width: parent.width - 12
- spacing: 6
- Label {
- id: activityCreator
- text: model.creator
- height: parent.height
- verticalAlignment: Text.AlignVCenter
- color: Theme.focusColor
- font.pointSize: 8
- }
- Label {
- text: model.pubDate
- height: parent.height
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- color: Theme.disabledColor
- font.pointSize: 8
- Layout.preferredWidth: parent.width - activityCreator.width - activityMore.width - 2 * parent.spacing
- visible: Layout.preferredWidth > 0
- }
- Button {
- id: activityMore
- text: "Read more..."
- onClicked: Qt.openUrlExternally(model.link)
- }
- }
- Rectangle {
- width: parent.width
- height: 1
- color: Theme.frameColor
- }
- }
- }
-
- ScrollIndicator.vertical: ScrollIndicator { }
- }
-
- BusyIndicator {
- anchors.centerIn: parent
- running: feedModel.status === XmlListModel.Loading
- }
- }
- }
-
- PageIndicator {
- count: view.count
- currentIndex: view.currentIndex
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
-}
diff --git a/examples/labs/controls/tabs/tabs.pro b/examples/labs/controls/tabs/tabs.pro
deleted file mode 100644
index f9b85c1a..00000000
--- a/examples/labs/controls/tabs/tabs.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-TEMPLATE = app
-TARGET = tabs
-QT += quick
-
-SOURCES += \
- main.cpp
-
-OTHER_FILES += \
- main.qml
-
-RESOURCES += \
- tabs.qrc
-
-target.path = $$[QT_INSTALL_EXAMPLES]/labs/controls/tabs
-INSTALLS += target
diff --git a/examples/labs/controls/tabs/tabs.qrc b/examples/labs/controls/tabs/tabs.qrc
deleted file mode 100644
index b48259b1..00000000
--- a/examples/labs/controls/tabs/tabs.qrc
+++ /dev/null
@@ -1,6 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- <file>images/qt-logo.png</file>
- </qresource>
-</RCC>
diff --git a/examples/labs/controls/theme/main.cpp b/examples/labs/controls/theme/main.cpp
deleted file mode 100644
index 2abdc16d..00000000
--- a/examples/labs/controls/theme/main.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/main.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
- return app.exec();
-}
diff --git a/examples/labs/controls/theme/main.qml b/examples/labs/controls/theme/main.qml
deleted file mode 100644
index 32221764..00000000
--- a/examples/labs/controls/theme/main.qml
+++ /dev/null
@@ -1,174 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2015 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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.6
-import Qt.labs.controls 1.0
-
-ApplicationWindow {
- id: window
- width: 360
- height: 520
- visible: true
- title: "Qt Labs Controls - Theme Example"
-
- header: ToolBar {
- ToolButton {
- label: Text {
- // \u25C0 (black left-pointing triangle is) missing in some fonts
- // => use a rotated \u25B2 (black up-pointing triangle) instead
- text: "\u25B2"
- rotation: -90
- color: enabled ? Theme.accentColor : Theme.frameColor
- anchors.centerIn: parent
- }
- enabled: stackview.depth > 1
- onClicked: stackview.pop()
- }
- }
-
- StackView {
- id: stackview
- anchors.fill: parent
- initialItem: pageComponent
- }
-
- Component {
- id: pageComponent
- Rectangle {
- id: page
- Theme.accentColor: Qt.hsla(colorSlider.position, 0.5, 0.5, 1.0)
- Theme.backgroundColor: darkButton.checked ? "#444" : "#fff"
- Theme.frameColor: darkButton.checked ? "#666" : "#ccc"
- Theme.textColor: darkButton.checked ? "#eee" : "#111"
- Theme.pressColor: darkButton.checked ? "#33ffffff" : "#33333333"
- Theme.baseColor: darkButton.checked ? "#444" : "#eee"
- color: Theme.backgroundColor
- Flickable {
- anchors.fill: parent
- contentHeight: column.height + 48
-
- Column {
- id: column
-
- x: (window.width - width) / 2
- y: 24
- width: window.width / 2
- spacing: 12
-
- Label {
- text: "Code less. Create more."
- color: Theme.accentColor
- width: parent.width
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- wrapMode: Text.WordWrap
- font.pointSize: 26
- }
-
- Item { width: 1; height: 48 }
-
- Rectangle {
- width: parent.width
- height: 1
- color: Theme.frameColor
- }
-
- Column {
- spacing: 6
- width: parent.width
- Label {
- text: "Accent color"
- color: Theme.textColor
- }
- Slider {
- id: colorSlider
- width: parent.width
- value: 0.275
- }
- }
-
- Rectangle {
- width: parent.width
- height: 1
- color: Theme.frameColor
- }
-
- ButtonGroup {
- id: themeGroup
- }
-
- Column {
- width: parent.width
- spacing: 6
- RadioButton {
- id: lightButton
- text: "Light"
- width: parent.width
- checked: true
- layoutDirection: Qt.RightToLeft
- ButtonGroup.group: themeGroup
- }
- RadioButton {
- id: darkButton
- text: "Dark"
- width: parent.width
- layoutDirection: Qt.RightToLeft
- ButtonGroup.group: themeGroup
- }
- }
-
- Rectangle {
- width: parent.width
- height: 1
- color: Theme.frameColor
- }
-
- Button {
- text: "Push"
- anchors.right: parent.right
- onClicked: stackview.push(pageComponent)
- }
- }
-
- ScrollIndicator.vertical: ScrollIndicator { }
- }
- }
- }
-}
diff --git a/examples/labs/controls/theme/theme.pro b/examples/labs/controls/theme/theme.pro
deleted file mode 100644
index 7672a2cb..00000000
--- a/examples/labs/controls/theme/theme.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-TEMPLATE = app
-TARGET = theme
-QT += quick
-
-SOURCES += \
- main.cpp
-
-OTHER_FILES += \
- main.qml
-
-RESOURCES += \
- theme.qrc
-
-target.path = $$[QT_INSTALL_EXAMPLES]/labs/controls/theme
-INSTALLS += target
diff --git a/examples/labs/controls/theme/theme.qrc b/examples/labs/controls/theme/theme.qrc
deleted file mode 100644
index 5f6483ac..00000000
--- a/examples/labs/controls/theme/theme.qrc
+++ /dev/null
@@ -1,5 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- </qresource>
-</RCC>