aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quickcontrols2/designer
diff options
context:
space:
mode:
authorMitch Curtis <[email protected]>2021-08-12 14:39:51 +0200
committerMitch Curtis <[email protected]>2021-08-16 12:52:59 +0200
commit809339d1484cf556512534367b8170bc26baf072 (patch)
tree12871313b658f36d058b5ef25af1e247e9c46ce9 /tests/auto/quickcontrols2/designer
parentb01b4f00eae8022c6a97d90f54dac395144ae095 (diff)
Remove qtquickcontrols2 sources and explain where they wentHEADdev
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 'tests/auto/quickcontrols2/designer')
-rw-r--r--tests/auto/quickcontrols2/designer/CMakeLists.txt21
-rw-r--r--tests/auto/quickcontrols2/designer/tst_designer.cpp162
2 files changed, 0 insertions, 183 deletions
diff --git a/tests/auto/quickcontrols2/designer/CMakeLists.txt b/tests/auto/quickcontrols2/designer/CMakeLists.txt
deleted file mode 100644
index 50331f8f..00000000
--- a/tests/auto/quickcontrols2/designer/CMakeLists.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-# Generated from designer.pro.
-
-#####################################################################
-## tst_designer Test:
-#####################################################################
-
-qt_internal_add_test(tst_designer
- SOURCES
- tst_designer.cpp
- PUBLIC_LIBRARIES
- Qt::Gui
- Qt::Quick
- Qt::QuickControls2
- Qt::QuickPrivate
-)
-
-#### Keys ignored in scope 1:.:.:designer.pro:<TRUE>:
-# TEMPLATE = "app"
-
-## Scopes:
-#####################################################################
diff --git a/tests/auto/quickcontrols2/designer/tst_designer.cpp b/tests/auto/quickcontrols2/designer/tst_designer.cpp
deleted file mode 100644
index 0f6598a6..00000000
--- a/tests/auto/quickcontrols2/designer/tst_designer.cpp
+++ /dev/null
@@ -1,162 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the test suite 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 <QtTest>
-#include <QtQuick>
-
-#include <QtQuickControls2>
-#include <QQmlComponent>
-#include <QDir>
-
-#include <private/qquickdesignersupportitems_p.h>
-
-class tst_Designer : public QObject
-{
- Q_OBJECT
-
-private slots:
- void initTestCase();
-
- void test_controls();
- void test_controls_data();
-};
-
-
-void tst_Designer::initTestCase()
-{
- QQuickStyle::setStyle("Basic");
-}
-
-void doComponentCompleteRecursive(QObject *object)
-{
- if (object) {
- QQuickItem *item = qobject_cast<QQuickItem*>(object);
-
- if (item && DesignerSupport::isComponentComplete(item))
- return;
-
- DesignerSupport::emitComponentCompleteSignalForAttachedProperty(qobject_cast<QQuickItem*>(object));
-
- QList<QObject*> childList = object->children();
-
- if (item) {
- for (QQuickItem *childItem : item->childItems()) {
- if (!childList.contains(childItem))
- childList.append(childItem);
- }
- }
-
- for (QObject *child : childList)
- doComponentCompleteRecursive(child);
-
- if (item) {
- static_cast<QQmlParserStatus*>(item)->componentComplete();
- } else {
- QQmlParserStatus *qmlParserStatus = dynamic_cast< QQmlParserStatus*>(object);
- if (qmlParserStatus)
- qmlParserStatus->componentComplete();
- }
- }
-}
-
-
-void tst_Designer::test_controls()
-{
- QFETCH(QString, type);
-
- const QByteArray before("import QtQuick\n"
- "import QtQuick.Controls\n"
- "Item {\n");
-
- QByteArray source = before;
- source.append(type.toUtf8());
-
- const QByteArray after(" {"
- "}\n"
- "}\n");
-
- source.append(after);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
-
- {
- ComponentCompleteDisabler disableComponentComplete;
- component.setData(source, QUrl::fromLocalFile(QDir::current().absolutePath()));
- }
-
- QObject *root = component.create();
- QVERIFY(root);
- doComponentCompleteRecursive(root);
-}
-
-void tst_Designer::test_controls_data()
-{
- QTest::addColumn<QString>("type");
-
- QTest::newRow("Button") << "Button";
- QTest::newRow("CheckBox") << "CheckBox";
- QTest::newRow("ComboBox") << "ComboBox";
- QTest::newRow("DelayButton") << "DelayButton";
- QTest::newRow("Dial") << "Dial";
- QTest::newRow("Frame") << "Frame";
- QTest::newRow("GroupBox") << "GroupBox";
- QTest::newRow("Label") << "Label";
- QTest::newRow("Page") << "Page";
- QTest::newRow("Pane") << "Pane";
- QTest::newRow("ProgressBar") << "ProgressBar";
- QTest::newRow("RadioButton") << "RadioButton";
- QTest::newRow("RangeSlider") << "RangeSlider";
- QTest::newRow("RoundButton") << "RoundButton";
- QTest::newRow("ScrollView") << "ScrollView";
- QTest::newRow("Slider") << "Slider";
- QTest::newRow("SpinBox") << "SpinBox";
- QTest::newRow("StackView") << "StackView";
- QTest::newRow("SwipeView") << "SwipeView";
- QTest::newRow("Switch") << "Switch";
- QTest::newRow("Switch") << "Switch";
- QTest::newRow("TabBar") << "TabBar";
- QTest::newRow("TabButton") << "TabButton";
- QTest::newRow("TextArea") << "TextArea";
- QTest::newRow("TextField") << "TextField";
- QTest::newRow("ToolBar") << "ToolBar";
- QTest::newRow("ToolButton") << "ToolButton";
- QTest::newRow("Tumbler") << "Tumbler";
-}
-
-QTEST_MAIN(tst_Designer)
-
-#include "tst_designer.moc"