[Libreoffice-commits] core.git: Branch 'distro/lhm/libreoffice-6-1+backports' - vcl/qt5 vcl/workben
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Jan 21 23:39:49 UTC 2019
vcl/qt5/Qt5Graphics_GDI.cxx | 8 +++++---
vcl/workben/vcldemo.cxx | 4 ++++
2 files changed, 9 insertions(+), 3 deletions(-)
New commits:
commit 55aabf5384991d45e4e31d6adb5af19ad1cbfa42
Author: Jan-Marek Glogowski <glogow at fbihome.de>
AuthorDate: Tue Dec 18 10:28:53 2018 +0000
Commit: Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Tue Jan 22 00:39:28 2019 +0100
Qt5 fix SalGraphics::invert
... and also print the invert mode name into the inverted region
when running "./bin/run vcldemo --show ellipse".
Conflicts:
vcl/workben/vcldemo.cxx
Reviewed-on: https://gerrit.libreoffice.org/65326
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow at fbihome.de>
(cherry picked from commit 6251e4080f4c1ed3bf1a5d615fc3ebdda4c87059)
Reviewed-on: https://gerrit.libreoffice.org/65474
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
(cherry picked from commit f5d7049f4eb39967625bac819e17170485ea6698)
Change-Id: Id461a32756583df1ef778320c29c45c0e7e4fbc8
Reviewed-on: https://gerrit.libreoffice.org/66608
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
diff --git a/vcl/qt5/Qt5Graphics_GDI.cxx b/vcl/qt5/Qt5Graphics_GDI.cxx
index cbe7ae287584..bec405517f7a 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
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 0df08ad41176..63476da30ffe 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -766,9 +766,13 @@ public:
{
auto aRegions = partition(rCtx, 2, 2);
doInvert(rDev, aRegions[0], InvertFlags::NONE);
+ rDev.DrawText(aRegions[0], "InvertFlags::NONE");
doInvert(rDev, aRegions[1], InvertFlags::N50);
+ rDev.DrawText(aRegions[1], "InvertFlags::N50");
doInvert(rDev, aRegions[2], InvertFlags::Highlight);
+ rDev.DrawText(aRegions[2], "InvertFlags::Highlight");
doInvert(rDev, aRegions[3], InvertFlags(0xffff));
+ rDev.DrawText(aRegions[3], "InvertFlags::0xffff");
}
}
};
More information about the Libreoffice-commits
mailing list