diff --git a/examples/widgets/doc/src/dynamiclayouts.qdoc b/examples/widgets/doc/src/dynamiclayouts.qdoc deleted file mode 100644 index 5dea8a7f6a5..00000000000 --- a/examples/widgets/doc/src/dynamiclayouts.qdoc +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only - -/*! - \example layouts/dynamiclayouts - \title Dynamic Layouts Example - \brief Shows how to re-orient widgets in running applications. - - \e{Dynamic Layouts} implements dynamically placed widgets within running - applications. The widget placement depends on whether \c Horizontal or \c - Vertical is chosen. - - \borderedimage dynamiclayouts-example.png - For more information, visit the \l{Layout Management} page. - - \section1 Dialog Constructor - - To begin with, the application creates the UI components by calling the - following methods: - - \list - \li createRotatableGroupBox() - \li createOptionsGroupBox() - \li createButtonBox() - \endlist - - It then adds the UI components to a GridLayout (\c mainLayout). - - Finally, \c Dialog::rotateWidgets() is called. - - \quotefromfile layouts/dynamiclayouts/dialog.cpp - \skipuntil createRotatableGroupBox - \printuntil setWindowTitle - - \section1 Creating the Main Widgets - - The \c createRotatableGroupBox() method creates a rotatable group box, - then adds a series of widgets: - - \list - \li QSpinBox - \li QSlider - \li QDial - \li QProgressBar - \endlist - - It goes on to add signals and slots to each widget, and assigns - a QGridLayout called \a rotatableLayout. - - \skipto Dialog::createRotatableGroupBox - \printuntil /^\}/ - - \section1 Adding Options - - \c createOptionsGroupBox() creates the following widgets: - \list - \li \c optionsGroupBox - \li \c buttonsOrientationLabel - \li \c buttonsOrientationComboBox. The orientation of the ComboBox is either - \c horizontal (default value) or \c vertical. These two values - are added during the startup of the application. It is not possible - to leave the option empty. - \endlist - - \skipto Dialog::createOptionsGroupBox() - \printuntil /^\}/ - - \section1 Adding Buttons - - createButtonBox() constructs a QDialogButtonBox called \c buttonBox - to which are added a \c closeButton, a \c helpButton and a - \c rotateWidgetsButton. - It then assigns a signal and a slot to each button in \c buttonBox. - - \skipto Dialog::createButtonBox() - \printuntil /^\}/ - - - \section1 Rotating the Widgets - - Removes the current widgets and activates the next widget. - - \quotefromfile layouts/dynamiclayouts/dialog.cpp - \skipto Dialog::rotateWidgets() - \printuntil rotatableLayout->addWidget(rotatableWidgets[i] - \printuntil } - \printuntil } - - \include examples-run.qdocinc -*/ - diff --git a/examples/widgets/layouts/CMakeLists.txt b/examples/widgets/layouts/CMakeLists.txt index 0afe0fb07c5..75355a07785 100644 --- a/examples/widgets/layouts/CMakeLists.txt +++ b/examples/widgets/layouts/CMakeLists.txt @@ -2,5 +2,4 @@ # SPDX-License-Identifier: BSD-3-Clause qt_internal_add_example(basiclayouts) -qt_internal_add_example(dynamiclayouts) qt_internal_add_example(flowlayout) diff --git a/examples/widgets/layouts/layouts.pro b/examples/widgets/layouts/layouts.pro index 6821e33359b..c0b5453f024 100644 --- a/examples/widgets/layouts/layouts.pro +++ b/examples/widgets/layouts/layouts.pro @@ -1,4 +1,3 @@ TEMPLATE = subdirs SUBDIRS = basiclayouts \ - dynamiclayouts \ flowlayout diff --git a/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt b/tests/manual/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt similarity index 100% rename from examples/widgets/layouts/dynamiclayouts/CMakeLists.txt rename to tests/manual/examples/widgets/layouts/dynamiclayouts/CMakeLists.txt diff --git a/examples/widgets/layouts/dynamiclayouts/dialog.cpp b/tests/manual/examples/widgets/layouts/dynamiclayouts/dialog.cpp similarity index 100% rename from examples/widgets/layouts/dynamiclayouts/dialog.cpp rename to tests/manual/examples/widgets/layouts/dynamiclayouts/dialog.cpp diff --git a/examples/widgets/layouts/dynamiclayouts/dialog.h b/tests/manual/examples/widgets/layouts/dynamiclayouts/dialog.h similarity index 100% rename from examples/widgets/layouts/dynamiclayouts/dialog.h rename to tests/manual/examples/widgets/layouts/dynamiclayouts/dialog.h diff --git a/examples/widgets/layouts/dynamiclayouts/dynamiclayouts.pro b/tests/manual/examples/widgets/layouts/dynamiclayouts/dynamiclayouts.pro similarity index 100% rename from examples/widgets/layouts/dynamiclayouts/dynamiclayouts.pro rename to tests/manual/examples/widgets/layouts/dynamiclayouts/dynamiclayouts.pro diff --git a/examples/widgets/layouts/dynamiclayouts/main.cpp b/tests/manual/examples/widgets/layouts/dynamiclayouts/main.cpp similarity index 100% rename from examples/widgets/layouts/dynamiclayouts/main.cpp rename to tests/manual/examples/widgets/layouts/dynamiclayouts/main.cpp