From 9932a2f647bc5a61c5cbb4d4b57f4f67382b9489 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 13 Mar 2024 11:15:04 +0100 Subject: [PATCH] qtversionchecks.h: hide Q_OBJECT macro in C-style comment from automoc Due to https://gitlab.kitware.com/cmake/cmake/-/issues/25770, the presence of the Q_OBJECT macro here triggers automoc rule generation, followed by moc's "No relevant classes found. No output generated." warning. Comment the macro out until the issue is fixed, leaving a comment to avoid a helpful soul commenting the macro back in again. Amends 32a1151245034e4d5d3162df21518e38b6f81fcd. Task-number: QTBUG-123229 Change-Id: I5387128f8fcd2793f0d4b9ff73a551999fea84b0 Reviewed-by: Joerg Bornemann Reviewed-by: Ahmad Samir (cherry picked from commit c07a47cbf0972578f066f0085eb857dba210aae1) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/global/qtversionchecks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/global/qtversionchecks.h b/src/corelib/global/qtversionchecks.h index 14df2780d85..86fc094f4ec 100644 --- a/src/corelib/global/qtversionchecks.h +++ b/src/corelib/global/qtversionchecks.h @@ -95,7 +95,7 @@ To mark parts of a class: class QClass : public QObject { - Q_OBJECT + // Q_OBJECT omitted d/t QTBUG-123229 QT_TECH_PREVIEW_API Q_PROPERTY(int countNG ...) // this is TP