diff --git a/src/gui/kernel/qtestsupport_gui.cpp b/src/gui/kernel/qtestsupport_gui.cpp index 85f791dd450..5867028b630 100644 --- a/src/gui/kernel/qtestsupport_gui.cpp +++ b/src/gui/kernel/qtestsupport_gui.cpp @@ -14,6 +14,7 @@ #include #if QT_CONFIG(test_gui) +#include #include #include #include @@ -183,7 +184,7 @@ QEventPoint &QTouchEventSequence::pointOrPreviousPoint(int touchId) // We mean it. // #if QT_CONFIG(test_gui) -Q_LOGGING_CATEGORY(lcQtGuiTest, "qt.gui.test"); +Q_STATIC_LOGGING_CATEGORY(lcQtGuiTest, "qt.gui.test"); #define deb qCDebug(lcQtGuiTest) /*! diff --git a/src/gui/kernel/qtestsupport_gui.h b/src/gui/kernel/qtestsupport_gui.h index 349c48ef6e7..581e13713e8 100644 --- a/src/gui/kernel/qtestsupport_gui.h +++ b/src/gui/kernel/qtestsupport_gui.h @@ -8,10 +8,6 @@ #include #include -#if QT_CONFIG(test_gui) -#include -#endif // #if QT_CONFIG(test_gui) - QT_BEGIN_NAMESPACE class QWindow; @@ -75,7 +71,6 @@ class Q_GUI_EXPORT QTouchEventSequence // #if QT_CONFIG(test_gui) -Q_DECLARE_LOGGING_CATEGORY(lcQtGuiTest) namespace QtGuiTest { Q_NAMESPACE_EXPORT(Q_GUI_EXPORT)