Yes, you are right. it's an empty macro. #define emit
so, you can write emit emit emit emit someSignal(); too, if you like. On Tue, Mar 20, 2012 at 10:58 AM, Nikos Chantziaras <[email protected]> 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: > > emit someSignal(); > > or just call the signal member function directly: > > someSignal(); > > Is "emit" purely cosmetic? > > _______________________________________________ > Interest mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/interest _______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
