diff options
author | Kai Köhne <kai.koehne@qt.io> | 2021-11-15 13:28:17 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2021-11-16 17:26:04 +0000 |
commit | b99adf7a8101b48c3acd246baeacec9a5f871acd (patch) | |
tree | 1d10cf945a9ce48794627306c1977238727f931d /tests/auto/corelib/global | |
parent | 61d5783ba87a4eaed01b5756970e4852d74b85a6 (diff) |
Do not include qloggingcategory.h in public headers
Reduce overhead for including qguiapplication.h by splitting
up qnativeinterface.h into a public and a private part.
[ChangeLog][Potentially Source-Incompatible Changes] The
qguiapplication.h header no longer implicitly includes
qloggingcategory.h. If your code depends on the transitive
include, explicitly include <QLoggingCategory> where needed.
Pick-to: 6.2
Task-number: QTBUG-97601
Change-Id: Ic02327a1c3092e21730160af5c59a9d58dc1239c
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto/corelib/global')
-rw-r--r-- | tests/auto/corelib/global/qnativeinterface/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/auto/corelib/global/qnativeinterface/tst_qnativeinterface.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/corelib/global/qnativeinterface/CMakeLists.txt b/tests/auto/corelib/global/qnativeinterface/CMakeLists.txt index 639c7c3ec7..52242b4292 100644 --- a/tests/auto/corelib/global/qnativeinterface/CMakeLists.txt +++ b/tests/auto/corelib/global/qnativeinterface/CMakeLists.txt @@ -1,4 +1,6 @@ qt_internal_add_test(tst_qnativeinterface SOURCES tst_qnativeinterface.cpp + LIBRARIES + Qt::CorePrivate ) diff --git a/tests/auto/corelib/global/qnativeinterface/tst_qnativeinterface.cpp b/tests/auto/corelib/global/qnativeinterface/tst_qnativeinterface.cpp index dd4cc4755b..5291133406 100644 --- a/tests/auto/corelib/global/qnativeinterface/tst_qnativeinterface.cpp +++ b/tests/auto/corelib/global/qnativeinterface/tst_qnativeinterface.cpp @@ -29,6 +29,7 @@ #include <QTest> #include <QtCore/qnativeinterface.h> +#include <QtCore/private/qnativeinterface_p.h> class tst_QNativeInterface: public QObject { |