diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-09-25 19:28:36 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-09-25 19:49:47 +0000 |
commit | 46215a8bcc4423fe79be4e4830435a1e10db22e7 (patch) | |
tree | 319cad15d62597bea6f626ad1ade7774fb864e62 /src/imports/controls/designer | |
parent | d703de8752e07cb12e8ce2e2a05d608f2b26425a (diff) |
Remove ToggleButton
We don't have a sensible design. It's better not to have it at
all than to have a confusing tiny bit tweaked clone of Switch.
Change-Id: Ib0eabd075590100e9e49846c7172909525b54a57
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/designer')
-rw-r--r-- | src/imports/controls/designer/ToggleButtonSpecifics.qml | 81 | ||||
-rw-r--r-- | src/imports/controls/designer/designer.pri | 1 | ||||
-rw-r--r-- | src/imports/controls/designer/qtquickcontrols2.metainfo | 15 |
3 files changed, 0 insertions, 97 deletions
diff --git a/src/imports/controls/designer/ToggleButtonSpecifics.qml b/src/imports/controls/designer/ToggleButtonSpecifics.qml deleted file mode 100644 index c23c9cb9..00000000 --- a/src/imports/controls/designer/ToggleButtonSpecifics.qml +++ /dev/null @@ -1,81 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt Quick Controls module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** 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 http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.1 -import HelperWidgets 2.0 -import QtQuick.Layouts 1.0 - -Column { - width: parent.width - - Section { - width: parent.width - caption: qsTr("Toggle Button") - - SectionLayout { - Label { - text: qsTr("Text") - tooltip: qsTr("The text displayed on the toggle button.") - } - SecondColumnLayout { - LineEdit { - backendValue: backendValues.text - Layout.fillWidth: true - } - } - - Label { - text: qsTr("Checked") - tooltip: qsTr("The checked state of the toggle button.") - } - SecondColumnLayout { - CheckBox { - text: backendValues.checked.valueToString - backendValue: backendValues.checked - Layout.fillWidth: true - } - } - } - } - - ControlSection { - width: parent.width - } - - PaddingSection { - width: parent.width - } -} diff --git a/src/imports/controls/designer/designer.pri b/src/imports/controls/designer/designer.pri index 69202e83..8a14bc69 100644 --- a/src/imports/controls/designer/designer.pri +++ b/src/imports/controls/designer/designer.pri @@ -18,7 +18,6 @@ QML_FILES += \ $$PWD/SwitchSpecifics.qml \ $$PWD/TextAreaSpecifics.qml \ $$PWD/TextFieldSpecifics.qml \ - $$PWD/ToggleButtonSpecifics.qml \ $$PWD/ToolBarSpecifics.qml \ $$PWD/ToolButtonSpecifics.qml diff --git a/src/imports/controls/designer/qtquickcontrols2.metainfo b/src/imports/controls/designer/qtquickcontrols2.metainfo index d00b541f..40439833 100644 --- a/src/imports/controls/designer/qtquickcontrols2.metainfo +++ b/src/imports/controls/designer/qtquickcontrols2.metainfo @@ -196,21 +196,6 @@ MetaInfo { } Type { - name: "QtQuick.Controls.ToggleButton" - icon: "images/todo16.png" - - ItemLibraryEntry { - name: "Toggle Button" - category: "Qt Quick - Controls" - libraryIcon: "images/todo.png" - version: "2.0" - requiredImport: "QtQuick.Controls" - - Property { name: "text"; type: "binding"; value: "qsTr('Toggle Button')" } - } - } - - Type { name: "QtQuick.Controls.ToolButton" icon: "images/todo16.png" |