summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel/qwidgetaction/tst_qwidgetaction.cpp
diff options
context:
space:
mode:
authorTony Sarajärvi <tony.sarajarvi@qt.io>2017-11-12 15:35:48 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2017-11-12 15:35:48 +0000
commit212f92182ad468ec93472ed93ae3839f7122cb68 (patch)
tree3e1d272570eb6caa022545828f80c24b656bad6e /tests/auto/widgets/kernel/qwidgetaction/tst_qwidgetaction.cpp
parent3bbeb1e9dce958ddba54f6b102bb409a63c9f889 (diff)
parent88cf04458002d863750e9121af7dcd9bcbfaa169 (diff)
Merge "Merge remote-tracking branch 'origin/5.9' into 5.10" into refs/staging/5.10
Diffstat (limited to 'tests/auto/widgets/kernel/qwidgetaction/tst_qwidgetaction.cpp')
-rw-r--r--tests/auto/widgets/kernel/qwidgetaction/tst_qwidgetaction.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/auto/widgets/kernel/qwidgetaction/tst_qwidgetaction.cpp b/tests/auto/widgets/kernel/qwidgetaction/tst_qwidgetaction.cpp
index 1824285f05..28731223a9 100644
--- a/tests/auto/widgets/kernel/qwidgetaction/tst_qwidgetaction.cpp
+++ b/tests/auto/widgets/kernel/qwidgetaction/tst_qwidgetaction.cpp
@@ -38,13 +38,9 @@
#include <qmainwindow.h>
#include <qmenubar.h>
-static inline void setFrameless(QWidget *w)
-{
- Qt::WindowFlags flags = w->windowFlags();
- flags |= Qt::FramelessWindowHint;
- flags &= ~(Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint);
- w->setWindowFlags(flags);
-}
+#include <QtTest/private/qtesthelpers_p.h>
+
+using namespace QTestPrivate;
class tst_QWidgetAction : public QObject
{