diff options
Diffstat (limited to 'tests/manual/repaint')
-rw-r--r-- | tests/manual/repaint/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/manual/repaint/mainwindow/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/manual/repaint/mainwindow/main.cpp | 6 | ||||
-rw-r--r-- | tests/manual/repaint/scrollarea/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/manual/repaint/scrollarea/main.cpp | 2 | ||||
-rw-r--r-- | tests/manual/repaint/shared/shared.h | 18 | ||||
-rw-r--r-- | tests/manual/repaint/splitter/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/manual/repaint/splitter/main.cpp | 2 | ||||
-rw-r--r-- | tests/manual/repaint/tableview/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/manual/repaint/tableview/main.cpp | 2 | ||||
-rw-r--r-- | tests/manual/repaint/task141091/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/manual/repaint/task141091/main.cpp | 2 | ||||
-rw-r--r-- | tests/manual/repaint/toplevel/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/manual/repaint/toplevel/main.cpp | 2 | ||||
-rw-r--r-- | tests/manual/repaint/widget/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/manual/repaint/widget/main.cpp | 2 |
16 files changed, 18 insertions, 34 deletions
diff --git a/tests/manual/repaint/CMakeLists.txt b/tests/manual/repaint/CMakeLists.txt index 645191c939..909e66d8bc 100644 --- a/tests/manual/repaint/CMakeLists.txt +++ b/tests/manual/repaint/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause -# Generated from repaint.pro. - add_subdirectory(mainwindow) add_subdirectory(scrollarea) add_subdirectory(splitter) diff --git a/tests/manual/repaint/mainwindow/CMakeLists.txt b/tests/manual/repaint/mainwindow/CMakeLists.txt index c110cd8689..82b0c1ccdb 100644 --- a/tests/manual/repaint/mainwindow/CMakeLists.txt +++ b/tests/manual/repaint/mainwindow/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause -# Generated from mainwindow.pro. - ##################################################################### ## tst_manual_mainwindow Binary: ##################################################################### diff --git a/tests/manual/repaint/mainwindow/main.cpp b/tests/manual/repaint/mainwindow/main.cpp index dd60547344..ea024d22a5 100644 --- a/tests/manual/repaint/mainwindow/main.cpp +++ b/tests/manual/repaint/mainwindow/main.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include <QApplication> #include <QMainWindow> @@ -26,9 +26,9 @@ int main(int argc, char **argv) QToolBar *toolBar = new QToolBar(); - toolBar->addWidget(new StaticWidget())->setVisible(true);; + toolBar->addWidget(new StaticWidget())->setVisible(true); - toolBar->addWidget(new QSpinBox())->setVisible(true);; + toolBar->addWidget(new QSpinBox())->setVisible(true); mainWindow.addToolBar(toolBar); mainWindow.resize(600, 400); diff --git a/tests/manual/repaint/scrollarea/CMakeLists.txt b/tests/manual/repaint/scrollarea/CMakeLists.txt index 0bf96d48fe..a21cdb3f1c 100644 --- a/tests/manual/repaint/scrollarea/CMakeLists.txt +++ b/tests/manual/repaint/scrollarea/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause -# Generated from scrollarea.pro. - ##################################################################### ## tst_manual_scrollarea Binary: ##################################################################### diff --git a/tests/manual/repaint/scrollarea/main.cpp b/tests/manual/repaint/scrollarea/main.cpp index f520de78b2..b45a85c353 100644 --- a/tests/manual/repaint/scrollarea/main.cpp +++ b/tests/manual/repaint/scrollarea/main.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include <QApplication> #include <QMainWindow> diff --git a/tests/manual/repaint/shared/shared.h b/tests/manual/repaint/shared/shared.h index 57ce56cd85..0a69011b6c 100644 --- a/tests/manual/repaint/shared/shared.h +++ b/tests/manual/repaint/shared/shared.h @@ -1,5 +1,5 @@ // Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include <QWidget> #include <QPainter> @@ -28,20 +28,20 @@ public: const int rectSize = 10; QRect rect(pos.x() - rectSize, pos.y() - rectSize, rectSize *2, rectSize * 2); - QList<QRect> updateRects; - updateRects.append(rect.translated(rectSize * 2, rectSize * 2)); - updateRects.append(rect.translated(rectSize * 2, -rectSize * 2)); - updateRects.append(rect.translated(-rectSize * 2, rectSize * 2)); - updateRects.append(rect.translated(-rectSize * 2, -rectSize * 2)); - + const QRect updateRects[] = { + rect.translated(rectSize * 2, rectSize * 2), + rect.translated(rectSize * 2, -rectSize * 2), + rect.translated(-rectSize * 2, rectSize * 2), + rect.translated(-rectSize * 2, -rectSize * 2), + }; bool useRegion = false; if (useRegion) { QRegion region; - region.setRects(updateRects.data(), 4); + region.setRects(updateRects, 4); update(region); } else { - foreach (QRect rect, updateRects) + for (QRect rect : updateRects) update(rect); } } diff --git a/tests/manual/repaint/splitter/CMakeLists.txt b/tests/manual/repaint/splitter/CMakeLists.txt index 9b29a6fa1d..f9328ed000 100644 --- a/tests/manual/repaint/splitter/CMakeLists.txt +++ b/tests/manual/repaint/splitter/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause -# Generated from splitter.pro. - ##################################################################### ## splitter Binary: ##################################################################### diff --git a/tests/manual/repaint/splitter/main.cpp b/tests/manual/repaint/splitter/main.cpp index e26698c413..62f9f74d5b 100644 --- a/tests/manual/repaint/splitter/main.cpp +++ b/tests/manual/repaint/splitter/main.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include "../shared/shared.h" diff --git a/tests/manual/repaint/tableview/CMakeLists.txt b/tests/manual/repaint/tableview/CMakeLists.txt index ac60f8fbf7..172957c631 100644 --- a/tests/manual/repaint/tableview/CMakeLists.txt +++ b/tests/manual/repaint/tableview/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause -# Generated from tableview.pro. - ##################################################################### ## tableview Binary: ##################################################################### diff --git a/tests/manual/repaint/tableview/main.cpp b/tests/manual/repaint/tableview/main.cpp index 9ee2e95d96..f7d04c6a60 100644 --- a/tests/manual/repaint/tableview/main.cpp +++ b/tests/manual/repaint/tableview/main.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include "../shared/shared.h" diff --git a/tests/manual/repaint/task141091/CMakeLists.txt b/tests/manual/repaint/task141091/CMakeLists.txt index 294099f234..6483e08ddb 100644 --- a/tests/manual/repaint/task141091/CMakeLists.txt +++ b/tests/manual/repaint/task141091/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause -# Generated from task141091.pro. - ##################################################################### ## task141091 Binary: ##################################################################### diff --git a/tests/manual/repaint/task141091/main.cpp b/tests/manual/repaint/task141091/main.cpp index 78c280aa32..2fceea0148 100644 --- a/tests/manual/repaint/task141091/main.cpp +++ b/tests/manual/repaint/task141091/main.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include <QApplication> #include <QMainWindow> diff --git a/tests/manual/repaint/toplevel/CMakeLists.txt b/tests/manual/repaint/toplevel/CMakeLists.txt index 129bdd8d9f..30dfcab689 100644 --- a/tests/manual/repaint/toplevel/CMakeLists.txt +++ b/tests/manual/repaint/toplevel/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause -# Generated from toplevel.pro. - ##################################################################### ## tst_manual_toplevel Binary: ##################################################################### diff --git a/tests/manual/repaint/toplevel/main.cpp b/tests/manual/repaint/toplevel/main.cpp index b7d680a284..b93bf2fec8 100644 --- a/tests/manual/repaint/toplevel/main.cpp +++ b/tests/manual/repaint/toplevel/main.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include "../shared/shared.h" diff --git a/tests/manual/repaint/widget/CMakeLists.txt b/tests/manual/repaint/widget/CMakeLists.txt index 40663075ee..27097a980f 100644 --- a/tests/manual/repaint/widget/CMakeLists.txt +++ b/tests/manual/repaint/widget/CMakeLists.txt @@ -1,8 +1,6 @@ # Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: BSD-3-Clause -# Generated from widget.pro. - ##################################################################### ## widget Binary: ##################################################################### diff --git a/tests/manual/repaint/widget/main.cpp b/tests/manual/repaint/widget/main.cpp index c69de5369f..b4400d5170 100644 --- a/tests/manual/repaint/widget/main.cpp +++ b/tests/manual/repaint/widget/main.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include "../shared/shared.h" |