path: root/doc
diff options
authorChristian Kandeler <christian.kandeler@qt.io>2018-11-19 11:22:35 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2019-01-29 10:14:21 +0000
commit5c84373d8d60a8b13df1fcdcd77480736952c095 (patch)
tree1bc6648f64a8b31b9407d359ca715164f30718e6 /doc
parent1cf4e24eb45498570b4302d25be90c0aa2923450 (diff)
Qt: Allow users to explicitly tag files as mocable
This is helpful for declaring a QObject-derived class via a macro, in which case the moc scanner will not help. Fixes: QBS-1410 Change-Id: I19ee30eac670228686b5528888159220cf39abd3 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'doc')
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/reference/modules/qt-core-module.qdoc b/doc/reference/modules/qt-core-module.qdoc
index 922b1889b..c8c3dc7de 100644
--- a/doc/reference/modules/qt-core-module.qdoc
+++ b/doc/reference/modules/qt-core-module.qdoc
@@ -109,6 +109,18 @@
\li \c{*.ts}
\li 1.0
\li Files with this tag serve as inputs to the rule running the \c lrelease tool.
+ \row
+ \li \c{"mocable"}
+ \li -
+ \li 1.13
+ \li Use this tag to force \QBS to run \c moc on the respective files, even though
+ they do not contain \c Q_OBJECT or a related macro.
+ \row
+ \li \c{"unmocable"}
+ \li -
+ \li 1.2
+ \li Use this tag for files that \QBS should not run \c moc on, even though they contain
+ \c Q_OBJECT or a related macro.