[Kde-games-devel] KZoomMainWindow and adjustSize() tale :)
Burkhard Lehner
B.Lehner at gmx.de
Tue Aug 1 20:47:24 CEST 2006
On Tuesday 01 August 2006 11:24, Albert Astals Cid wrote:
> A Dimarts 01 Agost 2006 17:55, Dmitry Suzdalev va escriure:
> > Well, I moved KZoomMainWindow to libkdegames.
> > But I left it unchanged, i.e. didn't implemented things that I suggested
> > yesterday. And here's why.
> >
> > The idea of
> >
> > class ZoomableWidget : public QWidget
> > {
> > public:
> > virtual zoomChanged();
> > }
>
> class Zoomable
> {
> public:
> virtual void zoomChanged() = 0;
> }
>
> AFAIK that should work.
Yes, that would be the Java-like interface way to do it. In this case,
multiple inheritance doesn't cause any problems. I would vote for that
solution.
(And it is of course no hack like the slot "zoomChanged" I suggested. ;-))
Burkhard
--
Burkhard Lehner
Walter-Flex-Strasse 20
67663 Kaiserslautern
More information about the kde-games-devel
mailing list