summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/moc/tst_moc.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2024-02-02 12:39:03 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2024-02-20 05:01:09 +0100
commit32a1151245034e4d5d3162df21518e38b6f81fcd (patch)
treee697facbe172a1362e711a41f184a7fcc4d27192 /tests/auto/tools/moc/tst_moc.cpp
parent7500577a92b74e68eeda91816017c8324c436eb1 (diff)
Long live QT_TECH_PREVIEW_API
A macro to mark tech preview APIs, in order to make header reviews easier: * newly introduced TP APIs are clearly marked as such; * an API that leaves TP and becomes stable requires to change the header, and not just the documentation (and therefore will again appear in the header review). The idea is to use this macro as if it were a C++ attribute. It can't actually be an attribute, because we want to use it to tag e.g. macro expansions (like Q_PROPERTY). Change-Id: I05c5a91a4fa5bedfbd1c6146d4dc00e1d1d28628 Pick-to: 6.7 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/tools/moc/tst_moc.cpp')
-rw-r--r--tests/auto/tools/moc/tst_moc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp
index 3fe170a9a7..a671d92dad 100644
--- a/tests/auto/tools/moc/tst_moc.cpp
+++ b/tests/auto/tools/moc/tst_moc.cpp
@@ -62,6 +62,8 @@
#include "qmlmacro.h"
+#include "tech-preview.h"
+
using namespace Qt::StringLiterals;
#ifdef Q_MOC_RUN