On Friday, July 13, 2012 12:00:07 Thiago Macieira wrote: > On sexta-feira, 13 de julho de 2012 11.51.07, Stephen Kelly wrote: > > > You can't connect to the private signal because the type > > > QPrivateSignal is private. > > > > I added some unit tests for this case: > > > > https://codereview.qt-project.org/30762 > > Why did the change have to be in Q_OBJECT? Couldn't it be done for this one > class that requires private signals only?
3 classes require it - QAbstractItemModel, QAbstractTransition and QAbstractState. Initially I had it as a private struct in QAbstractItemModel, but ossi suggested to put it in QObject because moc needed knowledge of what it was called anyway. I agree with ossi on that. Thanks, -- Stephen Kelly <[email protected]> | Software Engineer KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090 KDAB - Qt Experts - Platform-Independent Software Solutions
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
