PATCH: Return correct QVariant for KSkeletonItemBool

Simon Hausmann hausmann at kde.org
Tue Jan 6 10:50:57 GMT 2004


On Tuesday 06 January 2004 11:48, Cornelius Schumacher wrote:
> The attached patch fixes a problem with KSkeletonItemBool::property(). It
> did return an int variant instead of a bool one. I haven't checked the
> property functions of all other KSkeletonItem classes. Maybe there are
> still similar problems.

Slightly faster might be to use the QVariant constructor that takes a bool 
(and a dummy int) :

return QVariant( mReference, 42 /* dummy */ );

Simon




More information about the kde-core-devel mailing list