Developers and getting them to improve their code.

Simon Hausmann kde-optimize@mail.kde.org
Wed, 8 Jan 2003 21:22:21 +0100


On Wed, Jan 08, 2003 at 03:13:35PM -0500, Benjamin Meyer wrote:
> > I _guess_ the dtor was added to allow future extensibility. The
> > Q_OBJECT looks necessary to me though, because without it it would
> > be impossible to use signals/slots in a class derived from the uic
> > generated one, or?
> 
> Nope works fine.  For quite a bit of QTE code I manually removed the 
> deconstructors and the QOBJECT lines to reduce binary size and increase 
> speed.  All fo the classes were inherited and implimented in a child.  A 
> class only needs QOBJECT if it has a signal or slot from what I understand.

Hm, you're right again, this isn't needed in Qt3 anymore. In Qt2 you
get a ugly warning though (QObject::badSuperClassWarning being
called)

Simon