Silence a few "No relevant classes found" moc warnings

Ideally we'd have a moc macro/define to opt out of the warning,
but for now this will have to do.

Change-Id: Iffe943191edc553840e1a83dc307926813a5d6f1
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tor Arne Vestbø 2025-04-24 14:49:24 +02:00
parent 18f491a192
commit 04506aa878
4 changed files with 13 additions and 0 deletions

View File

@ -26,3 +26,6 @@ qt_internal_add_module(ExamplesAssetDownloaderPrivate
NO_GENERATE_CPP_EXPORTS
)
if (NOT QT_FEATURE_process)
set_source_files_properties(tasking/qprocesstask.h PROPERTIES SKIP_AUTOMOC TRUE)
endif()

View File

@ -1047,6 +1047,10 @@ qt_internal_extend_target(Core CONDITION QT_FEATURE_processenvironment
io/qprocess.cpp io/qprocess.h io/qprocess_p.h
)
if (NOT QT_FEATURE_process)
set_source_files_properties(io/qprocess.cpp io/qprocess.h PROPERTIES SKIP_AUTOMOC TRUE)
endif()
qt_internal_extend_target(Core CONDITION QT_FEATURE_processenvironment AND WIN32
SOURCES
io/qprocess_win.cpp

View File

@ -2727,4 +2727,6 @@ QString QProcess::nullDevice()
QT_END_NAMESPACE
#if QT_CONFIG(process)
#include "moc_qprocess.cpp"
#endif

View File

@ -54,6 +54,10 @@ qt_internal_add_module(OpenGL
Qt::GuiPrivate
)
if (QT_FEATURE_opengles2)
set_source_files_properties(qopengltimerquery.h PROPERTIES SKIP_AUTOMOC TRUE)
endif()
## Scopes:
#####################################################################