summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2018-06-04 16:45:58 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2018-06-04 16:49:58 +0200
commit8db52a95368a256e47f6b7229adb9b8d2a47453f (patch)
tree1abf543cbc52680680b62051ed4e250942f43d40 /vcl
parentea8efce49dc2b45be014b0709e913c322358deb5 (diff)
Qt's interpretation of transparency is different from vcl's one
thanks Sergei Reznikov for pointing this out Change-Id: Ib07d144bb50b178ee7b36f2c7b2eaede27ed10bc (cherry picked from commit e56c81cc996747e3768cf171d0d6e94753b7d2af)
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/qt5/Qt5Tools.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/inc/qt5/Qt5Tools.hxx b/vcl/inc/qt5/Qt5Tools.hxx
index a714f19e8a87..f075468ca3d3 100644
--- a/vcl/inc/qt5/Qt5Tools.hxx
+++ b/vcl/inc/qt5/Qt5Tools.hxx
@@ -58,7 +58,8 @@ inline Size toSize(const QSize& rSize) { return Size(rSize.width(), rSize.height
inline QColor toQColor(const Color& rColor)
{
- return QColor(rColor.GetRed(), rColor.GetGreen(), rColor.GetBlue(), rColor.GetTransparency());
+ return QColor(rColor.GetRed(), rColor.GetGreen(), rColor.GetBlue(),
+ 255 - rColor.GetTransparency());
}
static constexpr QImage::Format Qt5_DefaultFormat32 = QImage::Format_ARGB32;