summaryrefslogtreecommitdiff
path: root/vcl/qt5/Qt5Graphics_GDI.cxx
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2018-12-18 10:28:53 +0000
committerJan-Marek Glogowski <glogow@fbihome.de>2018-12-18 13:01:51 +0100
commit6251e4080f4c1ed3bf1a5d615fc3ebdda4c87059 (patch)
tree4114d84e2c8b35157bb7f9c702575b314430eb3d /vcl/qt5/Qt5Graphics_GDI.cxx
parente801f17c1d312f189c8de6dca0ec7f90b4fdcdc5 (diff)
Qt5 fix SalGraphics::invert
... and also print the invert mode name into the inverted region when running "./bin/run vcldemo --show ellipse". Change-Id: Id461a32756583df1ef778320c29c45c0e7e4fbc8 Reviewed-on: https://gerrit.libreoffice.org/65326 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/qt5/Qt5Graphics_GDI.cxx')
-rw-r--r--vcl/qt5/Qt5Graphics_GDI.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/vcl/qt5/Qt5Graphics_GDI.cxx b/vcl/qt5/Qt5Graphics_GDI.cxx
index fb766205f654..156c487ad57d 100644
--- a/vcl/qt5/Qt5Graphics_GDI.cxx
+++ b/vcl/qt5/Qt5Graphics_GDI.cxx
@@ -485,15 +485,17 @@ void Qt5Graphics::invert(long nX, long nY, long nWidth, long nHeight, SalInvert
if (SalInvert::N50 & nFlags)
{
aPainter.setCompositionMode(QPainter::RasterOp_SourceXorDestination);
- aPainter.setBrush(Qt::DiagCrossPattern);
- aPainter.fillRect(nX, nY, nWidth, nHeight, aPainter.brush());
+ QBrush aBrush(Qt::white, Qt::Dense4Pattern);
+ aPainter.fillRect(nX, nY, nWidth, nHeight, aBrush);
}
else
{
if (SalInvert::TrackFrame & nFlags)
{
aPainter.setCompositionMode(QPainter::RasterOp_SourceXorDestination);
- aPainter.setPen(Qt::DashLine);
+ QPen aPen(Qt::white);
+ aPen.setStyle(Qt::DotLine);
+ aPainter.setPen(aPen);
aPainter.drawRect(nX, nY, nWidth, nHeight);
}
else