KFadeWidgetEffect bugfix

Aaron J. Seigo aseigo at kde.org
Fri Feb 15 00:22:15 GMT 2008


On Thursday 14 February 2008, Rafael Fernández López wrote:
> +    : QWidget(destWidget)

maybe:

QWidget(destWidget && destWidget->parentWidget() ?
	 destWidget->parentWidget() : destWidget)

that way if the destWidget has a parent, it gets used ... otherwise it's 
parented to the destWidget (or null if destWidget is 0)...

that would keep the behaviour the same for objects that have a parentWidget(), 
but add a nice fallback.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080214/8bd801b4/attachment.sig>


More information about the kde-core-devel mailing list