aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/qquicktogglebutton.cpp84
-rw-r--r--src/templates/qquicktogglebutton_p.h67
-rw-r--r--src/templates/templates.pri2
3 files changed, 0 insertions, 153 deletions
diff --git a/src/templates/qquicktogglebutton.cpp b/src/templates/qquicktogglebutton.cpp
deleted file mode 100644
index 96edbefd..00000000
--- a/src/templates/qquicktogglebutton.cpp
+++ /dev/null
@@ -1,84 +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$
-**
-****************************************************************************/
-
-#include "qquicktogglebutton_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ToggleButton
- \inherits Checkable
- \instantiates QQuickToggleButton
- \inqmlmodule QtQuick.Controls
- \ingroup buttons
- \brief A toggle button control.
-
- ToggleButton is an option button that can be dragged or toggled on
- (checked) or off (unchecked). ToggleButtons are typically used to
- select between two states.
-
- \table
- \row \li \image qtquickcontrols2-togglebutton-normal.png
- \li A toggle button in its normal state.
- \row \li \image qtquickcontrols2-togglebutton-checked.png
- \li A toggle button that is checked.
- \row \li \image qtquickcontrols2-togglebutton-focused.png
- \li A toggle button that has active focus.
- \row \li \image qtquickcontrols2-togglebutton-disabled.png
- \li A toggle button that is disabled.
- \endtable
-
- \code
- ColumnLayout {
- ToggleButton {
- text: qsTr("Wi-Fi")
- }
- ToggleButton {
- text: qsTr("Bluetooth")
- }
- }
- \endcode
-
- \sa {Customizing ToggleButton}
-*/
-
-QQuickToggleButton::QQuickToggleButton(QQuickItem *parent) :
- QQuickSwitch(parent)
-{
- setAccessibleRole(0x0000002B); //QAccessible::Button
-}
-
-QT_END_NAMESPACE
diff --git a/src/templates/qquicktogglebutton_p.h b/src/templates/qquicktogglebutton_p.h
deleted file mode 100644
index 8f80437e..00000000
--- a/src/templates/qquicktogglebutton_p.h
+++ /dev/null
@@ -1,67 +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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTOGGLEBUTTON_P_H
-#define QQUICKTOGGLEBUTTON_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates/private/qquickswitch_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKTEMPLATES_EXPORT QQuickToggleButton : public QQuickSwitch
-{
- Q_OBJECT
-
-public:
- explicit QQuickToggleButton(QQuickItem *parent = Q_NULLPTR);
-};
-
-Q_DECLARE_TYPEINFO(QQuickToggleButton, Q_COMPLEX_TYPE);
-
-QT_END_NAMESPACE
-
-#endif // QQUICKTOGGLEBUTTON_P_H
diff --git a/src/templates/templates.pri b/src/templates/templates.pri
index 3c3cd3d9..572fa69c 100644
--- a/src/templates/templates.pri
+++ b/src/templates/templates.pri
@@ -38,7 +38,6 @@ HEADERS += \
$$PWD/qquicktextarea_p_p.h \
$$PWD/qquicktextfield_p.h \
$$PWD/qquicktextfield_p_p.h \
- $$PWD/qquicktogglebutton_p.h \
$$PWD/qquicktoolbar_p.h \
$$PWD/qquicktoolbutton_p.h \
$$PWD/qquicktumbler_p.h
@@ -73,7 +72,6 @@ SOURCES += \
$$PWD/qquicktabbutton.cpp \
$$PWD/qquicktextarea.cpp \
$$PWD/qquicktextfield.cpp \
- $$PWD/qquicktogglebutton.cpp \
$$PWD/qquicktoolbar.cpp \
$$PWD/qquicktoolbutton.cpp \
$$PWD/qquicktumbler.cpp