On Wednesday, 21 de September de 2011 18:47:38 Andre Somers wrote: > Is it really nessecairy that _everyone_ has public access to the signal? > What if only QObject had access to it? Would that work? If so, it could > work to just make QObject a friend class of every class that has the > Q_OBJECT macro defined, right? Could that work?
I don't know what you mean here. The access rights are only these: public,
protected, private.
If I need to write &MyClass::signalName in my code, then I need signalName to
be public or that my code is a friend of MyClass. Listing all possible classes
that may want to connect to the signals is an impossible task.
So public is the only option.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Qt5-feedback mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback
