combined setting of color/metric animators reverted as also need
animators for flags.
This commit is contained in:
parent
6df27afcc0
commit
5814e94cff
@ -94,26 +94,6 @@ const std::unordered_map< QskAspect::Aspect, QVariant >& QskSkinHintTable::hints
|
|||||||
return dummyHints;
|
return dummyHints;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QskSkinHintTable::setAnimation(
|
|
||||||
QskAspect::Aspect aspect, QskAnimationHint animation )
|
|
||||||
{
|
|
||||||
aspect.setAnimator( true );
|
|
||||||
|
|
||||||
const QVariant v = QVariant::fromValue( animation );
|
|
||||||
|
|
||||||
if ( aspect.type() == 0 )
|
|
||||||
{
|
|
||||||
using namespace QskAspect;
|
|
||||||
|
|
||||||
setHint( aspect | Color, v );
|
|
||||||
setHint( aspect | Metric, v );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
setHint( aspect, v );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void QskSkinHintTable::setHint( QskAspect::Aspect aspect, const QVariant& skinHint )
|
void QskSkinHintTable::setHint( QskAspect::Aspect aspect, const QVariant& skinHint )
|
||||||
{
|
{
|
||||||
if ( m_hints == nullptr )
|
if ( m_hints == nullptr )
|
||||||
|
@ -243,4 +243,11 @@ inline void QskSkinHintTable::setFlagHint( QskAspect::Aspect aspect, int flag )
|
|||||||
setHint( aspect, QVariant( flag ) );
|
setHint( aspect, QVariant( flag ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void QskSkinHintTable::setAnimation(
|
||||||
|
QskAspect::Aspect aspect, QskAnimationHint animation )
|
||||||
|
{
|
||||||
|
aspect.setAnimator( true );
|
||||||
|
setHint( aspect, QVariant::fromValue( animation ) );
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user