uwerat / qskinny

A lightweight framework on top of the Qt scene graph and only few classes from Qt/Quick. It is usable from C++ and/or QML.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resolving of the QskAspect status bits

uwerat opened this issue · comments

commented

When retrieving skin hints the lookup algorithm removes the status bits of the aspect from high to low until an entry has been found. The idea behind this approach was to avoid having to define hints for all type of state bit combinations.

While this kind of works for the controls offered by QSkinny things are becoming too complex for custom controls with application specific additional states. In most situations there is no clear status hierarchy ( increasing importance ) and it is almost impossible to come up with something reasonable.

So the concept of clearing status bits in top down order has to be dropped - at least for the bits being set by application code ( FirstUserState - LastUserState ). Instead definitions have to be made somehow by using QskStateCombination