From 708c7e81f24c4a93c00e66c2d6c7a0eb9a824a34 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 9 Nov 2017 19:59:32 +0100 Subject: [PATCH] handling Qt::GlobalColor --- src/controls/QskRgbValue.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/controls/QskRgbValue.h b/src/controls/QskRgbValue.h index f12b2726..e525502c 100644 --- a/src/controls/QskRgbValue.h +++ b/src/controls/QskRgbValue.h @@ -442,6 +442,11 @@ QSK_RGB_VALUES 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 ) { return ( rgb & ColorMask ) | ( ( alpha & 0xffu ) << 24 );