diff options
Diffstat (limited to 'examples/controls')
-rw-r--r-- | examples/controls/gallery/gallery.qml | 4 | ||||
-rw-r--r-- | examples/controls/gallery/gallery.qrc | 4 | ||||
-rw-r--r-- | examples/controls/gallery/pages/ItemDelegatePage.qml | 88 | ||||
-rw-r--r-- | examples/controls/gallery/pages/LabelPage.qml | 65 | ||||
-rw-r--r-- | examples/controls/gallery/pages/PanePage.qml | 53 | ||||
-rw-r--r-- | examples/controls/gallery/pages/ToolBarPage.qml | 55 |
6 files changed, 0 insertions, 269 deletions
diff --git a/examples/controls/gallery/gallery.qml b/examples/controls/gallery/gallery.qml index 8007390d..86465d0d 100644 --- a/examples/controls/gallery/gallery.qml +++ b/examples/controls/gallery/gallery.qml @@ -126,11 +126,8 @@ ApplicationWindow { ListElement { title: "Drawer"; source: "qrc:/pages/DrawerPage.qml" } ListElement { title: "Frame"; source: "qrc:/pages/FramePage.qml" } ListElement { title: "GroupBox"; source: "qrc:/pages/GroupBoxPage.qml" } - ListElement { title: "ItemDelegate"; source: "qrc:/pages/ItemDelegatePage.qml" } - ListElement { title: "Label"; source: "qrc:/pages/LabelPage.qml" } ListElement { title: "Menu"; source: "qrc:/pages/MenuPage.qml" } ListElement { title: "PageIndicator"; source: "qrc:/pages/PageIndicatorPage.qml" } - ListElement { title: "Pane"; source: "qrc:/pages/PanePage.qml" } ListElement { title: "Popup"; source: "qrc:/pages/PopupPage.qml" } ListElement { title: "ProgressBar"; source: "qrc:/pages/ProgressBarPage.qml" } ListElement { title: "RadioButton"; source: "qrc:/pages/RadioButtonPage.qml" } @@ -145,7 +142,6 @@ ApplicationWindow { ListElement { title: "TabBar"; source: "qrc:/pages/TabBarPage.qml" } ListElement { title: "TextArea"; source: "qrc:/pages/TextAreaPage.qml" } ListElement { title: "TextField"; source: "qrc:/pages/TextFieldPage.qml" } - ListElement { title: "ToolBar"; source: "qrc:/pages/ToolBarPage.qml" } ListElement { title: "Tumbler"; source: "qrc:/pages/TumblerPage.qml" } } diff --git a/examples/controls/gallery/gallery.qrc b/examples/controls/gallery/gallery.qrc index def31294..89958333 100644 --- a/examples/controls/gallery/gallery.qrc +++ b/examples/controls/gallery/gallery.qrc @@ -30,11 +30,8 @@ <file>pages/DrawerPage.qml</file> <file>pages/FramePage.qml</file> <file>pages/GroupBoxPage.qml</file> - <file>pages/ItemDelegatePage.qml</file> - <file>pages/LabelPage.qml</file> <file>pages/MenuPage.qml</file> <file>pages/PageIndicatorPage.qml</file> - <file>pages/PanePage.qml</file> <file>pages/PopupPage.qml</file> <file>pages/ProgressBarPage.qml</file> <file>pages/RadioButtonPage.qml</file> @@ -49,7 +46,6 @@ <file>pages/TabBarPage.qml</file> <file>pages/TextAreaPage.qml</file> <file>pages/TextFieldPage.qml</file> - <file>pages/ToolBarPage.qml</file> <file>pages/TumblerPage.qml</file> </qresource> </RCC> diff --git a/examples/controls/gallery/pages/ItemDelegatePage.qml b/examples/controls/gallery/pages/ItemDelegatePage.qml deleted file mode 100644 index 4837ceb7..00000000 --- a/examples/controls/gallery/pages/ItemDelegatePage.qml +++ /dev/null @@ -1,88 +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 - -Flickable { - id: flickable - contentHeight: pane.height - - readonly property int itemWidth: Math.max(delegate.implicitWidth, pane.availableWidth / 3 * 2) - - Pane { - id: pane - width: parent.width - - Column { - id: column - spacing: 40 - width: parent.width - - Label { - width: parent.width - wrapMode: Label.Wrap - text: "ItemDelegate presents a standard view item. It can be used as a delegate in " - + "various views and controls, such as ListView and ComboBox." - } - - Column { - spacing: 20 - anchors.horizontalCenter: parent.horizontalCenter - - ItemDelegate { - text: "First" - width: itemWidth - } - ItemDelegate { - id: delegate - text: "Second" - width: itemWidth - } - ItemDelegate { - text: "Third" - width: itemWidth - } - } - } - } - - ScrollIndicator.vertical: ScrollIndicator { } -} diff --git a/examples/controls/gallery/pages/LabelPage.qml b/examples/controls/gallery/pages/LabelPage.qml deleted file mode 100644 index 1c9db20b..00000000 --- a/examples/controls/gallery/pages/LabelPage.qml +++ /dev/null @@ -1,65 +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 - -Pane { - id: pane - - Column { - spacing: 40 - anchors.fill: parent - - Label { - width: parent.width - wrapMode: Label.Wrap - text: "Label is an extended text label that has style-specific default colors " - + "and font. Like all other controls, Label supports also font inheritance " - + "and can have a visual background item." - } - - Label { - text: "Label" - font.pixelSize: 20 - anchors.horizontalCenter: parent.horizontalCenter - } - } -} diff --git a/examples/controls/gallery/pages/PanePage.qml b/examples/controls/gallery/pages/PanePage.qml deleted file mode 100644 index cb73d155..00000000 --- a/examples/controls/gallery/pages/PanePage.qml +++ /dev/null @@ -1,53 +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 - -Pane { - id: pane - - Label { - width: parent.width - wrapMode: Label.Wrap - text: "Pane provides a background color that matches with the application style and theme. " - + "For example, this content is in a pane." - } -} diff --git a/examples/controls/gallery/pages/ToolBarPage.qml b/examples/controls/gallery/pages/ToolBarPage.qml deleted file mode 100644 index 3267a709..00000000 --- a/examples/controls/gallery/pages/ToolBarPage.qml +++ /dev/null @@ -1,55 +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.3 -import Qt.labs.controls 1.0 - -Pane { - id: pane - - Label { - width: parent.width - wrapMode: Label.Wrap - text: "ToolBar is a container of application-wide and context sensitive actions and " - + "controls, such as navigation buttons and search fields. The toolbar above is " - + "placed as the header of the application's window." - } -} |