[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Review Request: Cleanup KLed
From:       Thomas =?iso-8859-15?q?L=FCbking?= <thomas.luebking () web ! de>
Date:       2010-09-17 19:48:52
Message-ID: 201009172148.52367.thomas.luebking () web ! de
[Download RAW message or body]

Am Friday 17 September 2010 schrieben Sie:
> Is there a way to safely add a custom QStyleOption subclass for this
> purpose?
QnD solution:
abuse the type or version memeber - they only serve the cast and are nice int, 
ie. QRgb =)

Ideal solution:
Qt should have "QStyleOptionGeneric", providing "QMap<QString, QVariant> 
parameters;" as only extra member

Clean solution:
Subclass QStyleOption in kdelibs/kdeui - restricts usage to kdelibs linkers 
(don't mind me, i'd just clone the header for bespin ;-)

The qstyleoption_cast() iirc only operates on the type member, which you could 
(in doubt) fetch from a dynamic stylehint

Thomas
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic