[Kde-games-devel] KZoomMainWindow and adjustSize() tale :)

Burkhard Lehner Burkhard.Lehner at gmx.de
Mon Jul 31 20:25:16 CEST 2006


Hi,

just one little idea:

Instead of creating a base class one could also demand a slot "zoomChanged()" for the widgets that are added to the KZoomMainWindow.
This is not the nice object oriented approach for it doesn't use polymorphism, but the result would be the same.
The disadvantage: The compiler wouldn't complain about adding a widget that doesn't have this slot. Only at runtime the KZoomMainWindow would fail to connect to that slot (with the usual message on the console).

Just my $0.02,
Burkhard

-------- Original-Nachricht --------
Datum: Mon, 31 Jul 2006 22:13:49 +0400
Von: Dmitry Suzdalev <dimsuz at gmail.com>
An: KDE games development <kde-games-devel at kde.org>
Betreff: Re: [Kde-games-devel] KZoomMainWindow and adjustSize() tale :)

> On Monday 31 July 2006 21:26, Albert Astals Cid wrote:
> > I vote for adding it to libkdegames.
> OK, I'll do it.
> The only thing that confuses me is that ZoomedWidget will contain only one
> virtual method "zoomChanged()". Well, it's supposed to be a kind of
> interface 
> class after all. Maybe it's ok for it to be so small.
> And maybe it'll contain some more methods/functionality later.
> 
> Btw, maybe you have somewhat better names than ZoomableWidget/zoomChanged?
> :)
> Or let them be?
> 
> Cheers,
> Dmitry.
> _______________________________________________
> kde-games-devel mailing list
> kde-games-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-games-devel

-- 
Dipl.-Inform. Burkhard Lehner
Walter-Flex-Straße 20, 67663 Kaiserslautern
Tel./Fax: (06 31) 1 03 63, E-Mail: Burkhard.Lehner at gmx.de

"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail


More information about the kde-games-devel mailing list