diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-05-17 12:55:55 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-06-01 10:06:30 +0200 |
commit | 8c98a74906d3e132eaab349806627a9340edc191 (patch) | |
tree | 28dd35511c0daeb6a253a6afb954ad9f151e45d9 /vcl/qt5 | |
parent | f174739d36b61422bd86a3c756c84ae87aa5a4ac (diff) |
Unify Color -> QColor conversion
this also resolves build failures on 32bit platforms
Change-Id: I53fa2faae52a8cb322644c5bd5e5e84d71110d8e
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/Qt5Graphics_GDI.cxx | 2 | ||||
-rw-r--r-- | vcl/qt5/Qt5Graphics_Text.cxx | 2 | ||||
-rw-r--r-- | vcl/qt5/Qt5Painter.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/vcl/qt5/Qt5Graphics_GDI.cxx b/vcl/qt5/Qt5Graphics_GDI.cxx index 7bed0a43aed6..61b92b109bfe 100644 --- a/vcl/qt5/Qt5Graphics_GDI.cxx +++ b/vcl/qt5/Qt5Graphics_GDI.cxx @@ -172,7 +172,7 @@ void Qt5Graphics::drawPixel(long nX, long nY) void Qt5Graphics::drawPixel(long nX, long nY, Color nColor) { Qt5Painter aPainter(*this); - aPainter.setPen(QColor(QRgb(nColor))); + aPainter.setPen(toQColor(nColor)); aPainter.setPen(Qt::SolidLine); aPainter.drawPoint(nX, nY); aPainter.update(nX, nY, 1, 1); diff --git a/vcl/qt5/Qt5Graphics_Text.cxx b/vcl/qt5/Qt5Graphics_Text.cxx index a719bef57085..d95795953ff9 100644 --- a/vcl/qt5/Qt5Graphics_Text.cxx +++ b/vcl/qt5/Qt5Graphics_Text.cxx @@ -179,7 +179,7 @@ void Qt5Graphics::DrawTextLayout(const GenericSalLayout &rLayout ) aGlyphRun.setRawFont( aRawFont ); Qt5Painter aPainter(*this); - QColor aColor = QColor::fromRgb(QRgb(m_aTextColor)); + QColor aColor = toQColor(m_aTextColor); aPainter.setPen(aColor); aPainter.drawGlyphRun( QPointF(), aGlyphRun ); } diff --git a/vcl/qt5/Qt5Painter.cxx b/vcl/qt5/Qt5Painter.cxx index 5bf0db22b3f0..88e9b10b1885 100644 --- a/vcl/qt5/Qt5Painter.cxx +++ b/vcl/qt5/Qt5Painter.cxx @@ -37,7 +37,7 @@ Qt5Painter::Qt5Painter(Qt5Graphics& rGraphics, bool bPrepareBrush, sal_uInt8 nTr setClipRegion(rGraphics.m_aClipRegion); if (SALCOLOR_NONE != rGraphics.m_aLineColor) { - QColor aColor = QColor::fromRgb(QRgb(rGraphics.m_aLineColor)); + QColor aColor = toQColor(rGraphics.m_aLineColor); aColor.setAlpha(nTransparency); setPen(aColor); } @@ -45,7 +45,7 @@ Qt5Painter::Qt5Painter(Qt5Graphics& rGraphics, bool bPrepareBrush, sal_uInt8 nTr setPen(Qt::NoPen); if (bPrepareBrush && SALCOLOR_NONE != rGraphics.m_aFillColor) { - QColor aColor = QColor::fromRgb(QRgb(rGraphics.m_aFillColor)); + QColor aColor = toQColor(rGraphics.m_aFillColor); aColor.setAlpha(nTransparency); setBrush(Qt::SolidPattern); setBrush(aColor); |