Review Request: Cleanup KLed

Thomas L├╝bking thomas.luebking at web.de
Fri Sep 17 20:48:52 BST 2010


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




More information about the kde-core-devel mailing list