From 578329719374f2c55d60682e51013970f7afe44e Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 25 May 2015 13:03:28 -0700 Subject: Doc: update the moc docs as to what can't be used with class templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's not just signals and slots, it's everything that requires a meta object. That is, as soon as Q_OBJECT is used. Task-number: QTBUG-46318 Change-Id: Ia2e569fbca46406386c9ffff13e18fca0773fd4d Reviewed-by: Martin Smith Reviewed-by: Topi Reiniƶ --- doc/src/development/moc.qdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/development/moc.qdoc b/doc/src/development/moc.qdoc index 13f352357..6a609c1a2 100644 --- a/doc/src/development/moc.qdoc +++ b/doc/src/development/moc.qdoc @@ -252,7 +252,7 @@ \section1 Limitations \c moc does not handle all of C++. The main problem is that class - templates cannot have signals or slots. Here is an example: + templates cannot have the Q_OBJECT macro. Here is an example: \snippet snippets/code/doc_src_moc.cpp 5 -- cgit v1.2.3