Developers and getting them to improve their code.
Simon Hausmann
kde-optimize@mail.kde.org
Wed, 8 Jan 2003 21:08:53 +0100
On Wed, Jan 08, 2003 at 03:07:26PM -0500, Zack Rusin wrote:
> On Wednesday 08 January 2003 14:57, Benjamin Meyer wrote:
> > This may be wrong in the latest version, but in the qt 2 version if
> > there are no signals and no slots (just a constructor with widget
> > creation) it will still put in Q_OBJECT and will still add an empty
> > deconstructor.
>
> Well, designer generated widgets all have languageChange protected slot,
> therefore the need for the Q_OBJECT.
> And the empty destructor is not a problem because it's not virtual and
> designer generated gui's are rarely (never?) bases of inheritance
> hierarchies.
The dtor is always virtual because all designer generated objects
inherit from QObject.
Simon