qt6-bb10/tests/auto/tools/moc
Stephen Kelly 0efa445141 Create a way to inform moc about private signals.
Moc checks for the use of the QPrivateSignal struct, which is part of
the Q_OBJECT macro and is private to each class that uses it. Moc then
generates a name of the signal which does not include the private
struct, and generates code to invoke such signals with an instance of
the private struct.

This way we can mark private signals as such and prevent them from
being emitted from subclasses or from outside of the class entirely.

The drawback to this is that it only works if the private
signal has no default arguments. However, at least in Qt, there are
no such signals.

Change-Id: Id16eadaa8d3c36a2c3b265077877f3e1d8304c84
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2012-07-13 01:51:42 +02:00
..
Test.framework/Headers Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
task71021 Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
testproject Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
.gitattributes Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
.gitignore Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
Header Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
assign-namespace.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
backslash-newlines.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
c-comments.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
cstyle-enums.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
cxx11-enums.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
dir-in-include-path.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
error-on-wrong-notify.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
escapes-in-string-literals.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
extraqualification.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
forgotten-qinterface.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
gadgetwithnoenums.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
interface-from-framework.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
macro-on-cmdline.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
moc.pro Change *-clang mkspec globs to *-clang* 2012-06-20 15:45:07 +02:00
namespaced-flags.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
no-keywords.h Update the moc no-keywords test for the signals replacement. 2012-07-09 15:55:15 +02:00
oldstyle-casts.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
os9-newlines.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
parse-boost.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
pure-virtual-signals.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qinvokable.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qprivateslots.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
single_function_keyword.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
slots-with-void-template.h moc: test signature with (void) 2012-03-16 17:37:18 +01:00
task87883.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
task189996.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
task192552.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
task234909.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
task240368.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
template-gtgt.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
trigraphs.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
tst_moc.cpp Create a way to inform moc about private signals. 2012-07-13 01:51:42 +02:00
using-namespaces.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
warn-on-multiple-qobject-subclasses.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
warn-on-property-without-read.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
win-newlines.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00