handling Qt::GlobalColor
This commit is contained in:
parent
3f979fa6af
commit
708c7e81f2
@ -442,6 +442,11 @@ QSK_RGB_VALUES
|
|||||||
return QColor::fromRgba( ( c1.rgb() & ColorMask ) | ( ( alpha & 0xffu ) << 24 ) );
|
return QColor::fromRgba( ( c1.rgb() & ColorMask ) | ( ( alpha & 0xffu ) << 24 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline QColor toTransparent( Qt::GlobalColor color, int alpha = 0 )
|
||||||
|
{
|
||||||
|
return toTransparent( QColor( color ), alpha );
|
||||||
|
}
|
||||||
|
|
||||||
inline QRgb toTransparent( QRgb rgb, int alpha = 0 )
|
inline QRgb toTransparent( QRgb rgb, int alpha = 0 )
|
||||||
{
|
{
|
||||||
return ( rgb & ColorMask ) | ( ( alpha & 0xffu ) << 24 );
|
return ( rgb & ColorMask ) | ( ( alpha & 0xffu ) << 24 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user