private slots

Rafael Fernández López ereslibre at gmail.com
Wed Jan 3 15:37:24 GMT 2007


Hi,

I have done another approach for this problem. You can check it out at
http://websvn.kde.org/trunk/KDE/kdelibs/kutils/kpluginselector_p.h.

As you can see, to let it have private SLOTS, I made the Private class
inherit QObject, and as usually with the Q_OBJECT macro.

This way, the d-pointer stills do what it has to do (contain all
private methods and attributes of the class).

Bye,
Rafael Fernández López.


More information about the kde-core-devel mailing list