r24029 by jghali - Fix deprecation warning related to use of QPainter::drawRoundRect()
scribus-commit
scribus-commit at lists.scribus.net
Thu Sep 24 16:11:23 UTC 2020
Author: jghali
Date: Thu Sep 24 16:11:23 2020
New Revision: 24029
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24029
Log:
Fix deprecation warning related to use of QPainter::drawRoundRect()
Modified:
trunk/Scribus/scribus/ui/picstatus.cpp
Modified: trunk/Scribus/scribus/ui/picstatus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24029&path=/trunk/Scribus/scribus/ui/picstatus.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/picstatus.cpp (original)
+++ trunk/Scribus/scribus/ui/picstatus.cpp Thu Sep 24 16:11:23 2020
@@ -93,7 +93,7 @@
p.fillRect(0, 0, 128, 128, imageViewArea->palette().window());
p.setPen(QPen(Qt::black, 1, Qt::SolidLine, Qt::FlatCap, Qt::MiterJoin));
p.setBrush(palette().window());
- p.drawRoundRect(0, 0, 127, 127, 10, 10);
+ p.drawRoundedRect(0, 0, 127, 127, 10, 10, Qt::RelativeSize);
p.setPen(Qt::NoPen);
p.setBrush(b);
p.drawRect(12, 12, 104, 104);
More information about the scribus-commit
mailing list