On Thursday 22 September 2011 09:25:06 ext Frans Klaver wrote:
> On Thu, Sep 22, 2011 at 8:31 AM, Wolf-Michael Bolle
> 
> <[email protected]> wrote:
> > Why doesn't a class simply provide public connector method templates for
> > the not so public signals?
> > 
> > // Very simplified example
> > class Xyz
> > {
> > private:
> >    void eventHasHappened();   // A signal
> > public:
> >    template<...>
> >    void connectToEventHasHappened(...)
> >    {
> >        connect(...);
> >    }
> > };
> > 
> > Xyz xyz;
> > xyz.connectToEventHasHappened(...);
> 
> That would mean having to declare a connectTo... definition for every
> declared signal, right?

For every non-public signal, right.

That is not very nice. I understand. Maybe though with the help of some 
creative macros, this can be made less painful.
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to