summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-07-09 09:56:51 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-13 01:51:42 +0200
commit0efa445141ce3d7243f28e7b6da730d8dec17e23 (patch)
treedea4b906324ec959ca73071726390a084f871bfb /qmake
parenta2b0ab4f579151bd2a6145dd18ce684fadedfe23 (diff)
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>
Diffstat (limited to 'qmake')
0 files changed, 0 insertions, 0 deletions