summaryrefslogtreecommitdiffstats
path: root/tests/manual/widgets/widgets/defaultUpMenuBar/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/widgets/widgets/defaultUpMenuBar/main.cpp')
-rw-r--r--tests/manual/widgets/widgets/defaultUpMenuBar/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/manual/widgets/widgets/defaultUpMenuBar/main.cpp b/tests/manual/widgets/widgets/defaultUpMenuBar/main.cpp
index 544de6a93d..c1d7c032d0 100644
--- a/tests/manual/widgets/widgets/defaultUpMenuBar/main.cpp
+++ b/tests/manual/widgets/widgets/defaultUpMenuBar/main.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2018 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
// This test is to check that the menus in a menubar are displayed correctly in both the top and
// bottom cases. Especially when using multiple screens. If possible relayout the screens in order
@@ -71,9 +71,11 @@ int main(int argc, char **argv)
MainWindow *mainWindow = new MainWindow;
mainWindow->setGeometry(screen->geometry());
mainWindow->winId();
+#ifdef Q_OS_WIN
using namespace QNativeInterface::Private;
if (auto *windowsWindow = dynamic_cast<QWindowsWindow *>(mainWindow->windowHandle()->handle()))
windowsWindow->setHasBorderInFullScreen(true);
+#endif
mainWindow->showMaximized();
}
int ret = a.exec();