[education/rkward] rkward/rbackend/rkwarddevice: Silence a warning
Thomas Friedrichsmeier
null at kde.org
Sun Aug 24 16:08:55 BST 2025
Git commit 15ef520ea4fd89f1315992f96b085caafed36565 by Thomas Friedrichsmeier.
Committed on 24/08/2025 at 15:06.
Pushed by tfry into branch 'master'.
Silence a warning
M +6 -0 rkward/rbackend/rkwarddevice/rkgraphicsdevice.cpp
https://invent.kde.org/education/rkward/-/commit/15ef520ea4fd89f1315992f96b085caafed36565
diff --git a/rkward/rbackend/rkwarddevice/rkgraphicsdevice.cpp b/rkward/rbackend/rkwarddevice/rkgraphicsdevice.cpp
index 1be8a73e5..a12f3915b 100644
--- a/rkward/rbackend/rkwarddevice/rkgraphicsdevice.cpp
+++ b/rkward/rbackend/rkwarddevice/rkgraphicsdevice.cpp
@@ -151,9 +151,15 @@ int RKGraphicsDevice::finalizeTilingPattern(int extend) {
reflected.fill(Qt::transparent);
QPainter p(&reflected);
p.drawImage(0, 0, single);
+#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
+ p.drawImage(single.width(), 0, single.flipped(Qt::Horizontal));
+ p.drawImage(0, single.height(), single.flipped(Qt::Vertical));
+ p.drawImage(single.width(), single.height(), single.flipped(Qt::Horizontal | Qt::Vertical));
+#else
p.drawImage(single.width(), 0, single.mirrored(true, false));
p.drawImage(0, single.height(), single.mirrored(false, true));
p.drawImage(single.width(), single.height(), single.mirrored(true, true));
+#endif
p.end();
QBrush brush(reflected);
brush.setTransform(QTransform().translate(c.capture_coords.left(), c.capture_coords.top()));
More information about the rkward-tracker
mailing list