From a546662cd8dd3f38238e1943cd738d7a2e3447f7 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 30 Jan 2025 11:56:57 +0100 Subject: [PATCH] QtGuiTest: remove Q_NAMESPACE There are no Q_ENUM/Q_FLAG/Q_INVOKABLEs defined in it, so drop Q_NAMESPACE. We can always add it back in when something is added to it that does require a meta object. Found in API-review. Amends 5ac4f04325a56d47812f528fe31ceb0d4932f664. Change-Id: I8b197f2cd835d1fe4893f2e9608dcaf0ffd14cd9 Reviewed-by: Axel Spoerl (cherry picked from commit 530b2e1fc7d289c12507696137996a02bdbeb439) Reviewed-by: Qt Cherry-pick Bot --- src/gui/kernel/qtestsupport_gui.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/kernel/qtestsupport_gui.h b/src/gui/kernel/qtestsupport_gui.h index 33f7ed2513b..6dcfc70be5f 100644 --- a/src/gui/kernel/qtestsupport_gui.h +++ b/src/gui/kernel/qtestsupport_gui.h @@ -73,8 +73,6 @@ protected: #if QT_CONFIG(test_gui) namespace QtGuiTest { - Q_NAMESPACE_EXPORT(Q_GUI_EXPORT) - Q_GUI_EXPORT void setKeyboardModifiers(Qt::KeyboardModifiers modifiers); Q_GUI_EXPORT void setCursorPosition(const QPoint &position); Q_GUI_EXPORT void synthesizeExtendedKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers,