diff options
author | Edward Welbourne <[email protected]> | 2021-09-17 16:07:10 +0200 |
---|---|---|
committer | Edward Welbourne <[email protected]> | 2021-09-23 16:57:03 +0200 |
commit | 298e41b830f60c0f2f078996ace77a4254a9f335 (patch) | |
tree | 4bf6029da36fb143aeeb11c04a2bdf442ef56b42 /tests/manual/windowchildgeometry/controllerwidget.cpp | |
parent | e5d65996a93bbf4cbc8a155887def6efa3ad73de (diff) |
Remove fatuously true or false QT_VERSION checks
QT_VERSION is now at least QT_VERSION_CHECK(6, 3, 0), so remove all
checks against Qt 6.0.0 or earlier. They are superfluous. Tidied up in
some places in the process, particularly #include order.
Change-Id: I2636b2fd13be5b976f5b043ef2f8cddc038a72a4
Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'tests/manual/windowchildgeometry/controllerwidget.cpp')
-rw-r--r-- | tests/manual/windowchildgeometry/controllerwidget.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/manual/windowchildgeometry/controllerwidget.cpp b/tests/manual/windowchildgeometry/controllerwidget.cpp index 1ceb785e9e5..4d0aac17328 100644 --- a/tests/manual/windowchildgeometry/controllerwidget.cpp +++ b/tests/manual/windowchildgeometry/controllerwidget.cpp @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2016 The Qt Company Ltd. +** Copyright (C) 2021 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the test suite of the Qt Toolkit. @@ -267,8 +267,6 @@ void WidgetWindowControl::statesChanged() w->setWindowState(m_statesControl->states()); } -#if QT_VERSION >= 0x050000 - // Test window drawing diagonal lines class Window : public QWindow { @@ -453,8 +451,6 @@ void WindowControl::addChildWindow() control->show(); } -#endif - ControllerWidget::ControllerWidget(QWidget *parent) : QMainWindow(parent) , m_testWindow(new Window) @@ -475,12 +471,8 @@ ControllerWidget::ControllerWidget(QWidget *parent) int y = 100; const QStringList args = QApplication::arguments(); const int offsetArgIndex = args.indexOf(QLatin1String("-offset")); - if (offsetArgIndex >=0 && offsetArgIndex < args.size() - 1) { + if (offsetArgIndex >=0 && offsetArgIndex < args.size() - 1) y += args.at(offsetArgIndex + 1).toInt(); - } else { - if (QT_VERSION < 0x050000) - y += 400; - } move(x, y); |