On terça-feira, 20 de março de 2012 19.58.00, Nikos Chantziaras wrote:
> I noticed that when emitting signals, I can simply omit the "emit"
> keyword.  moc seems to produce the same code, regardless of whether I do:

moc doesn't parse your source code. So it doesn't see any "emit" at all.
>
>    emit someSignal();
>
> or just call the signal member function directly:
>
>    someSignal();
>
> Is "emit" purely cosmetic?

Yes.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to