[Development] Fixing connecting to private signals

Thiago Macieira thiago.macieira at intel.com
Fri Jul 13 09:30:44 CEST 2012


On sexta-feira, 13 de julho de 2012 08.33.42, Girish Ramakrishnan wrote:
> Hi,
> 
> On Wed, Jul 11, 2012 at 10:40 PM, Olivier Goffart <olivier at woboq.com> wrote:
> > On Wednesday 11 July 2012 18:50:15 Stephen Kelly wrote:
> >> So, either the code should stay as is - leaving the signals private and
> >> making function pointer connects not work, or the patches should be
> >> applied, making function pointer connects work.
> >> 
> >> Making the signals public is not an option for me.
> > 
> > I personally beleive allowing the new syntax is more important than
> > keeping
> > those signal private.
> > Anyway, i'm quite happy with the current implementation in moc.
> 
> Is this really important given that we are in feature freeze? Changes
> to moc, however small, is not advisable at all.

As I wrote in the change, this breaks if there are overloads to the signal:

signals:
    void somethingChanged();
    void somethingChanged(int, QPrivateSignal);

You can't connect to the private signal because the type QPrivateSignal is 
private.

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120713/e7c79ae3/attachment.sig>


More information about the Development mailing list