PATCH: Return correct QVariant for KSkeletonItemBool
Cornelius Schumacher
schumacher at kde.org
Tue Jan 6 11:14:39 GMT 2004
On Tuesday 06 January 2004 11:50, Simon Hausmann wrote:
> 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 */ );
Looks like black magic, but if it works... ;-)
--
Cornelius Schumacher <schumacher at kde.org>
More information about the kde-core-devel
mailing list