From 78d983eeedecc0aa83fbce219e90cd5e22ebc162 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 24 Sep 2020 16:10:59 +0200 Subject: [PATCH] drawRoundRect -> drawRoundedRect --- generators/dvi/special.cpp | 2 +- ui/pageviewutils.cpp | 4 ++-- ui/side_reviews.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/generators/dvi/special.cpp b/generators/dvi/special.cpp index 79d680774..f7c696d84 100644 --- a/generators/dvi/special.cpp +++ b/generators/dvi/special.cpp @@ -410,7 +410,7 @@ void dviRenderer::epsf_special(const QString &cp) else foreGroundPainter->setBrush(Qt::red); foreGroundPainter->setPen(Qt::black); - foreGroundPainter->drawRoundRect(bbox, 2, 2); + foreGroundPainter->drawRoundedRect(bbox, 2, 2); QFont f = foreGroundPainter->font(); f.setPointSize(8); foreGroundPainter->setFont(f); diff --git a/ui/pageviewutils.cpp b/ui/pageviewutils.cpp index 5f0e04260..b396c76ff 100644 --- a/ui/pageviewutils.cpp +++ b/ui/pageviewutils.cpp @@ -343,7 +343,7 @@ void PageViewMessage::paintEvent(QPaintEvent * /* e */) } int textXOffset = 0, - // add 2 to account for the reduced drawRoundRect later + // add 2 to account for the reduced drawRoundedRect later textYOffset = (geometry().height() - textRect.height() - detailsRect.height() - m_lineSpacing + 2) / 2, iconXOffset = 0, iconYOffset = !m_symbol.isNull() ? (geometry().height() - m_symbol.height()) / 2 : 0, shadowOffset = 1; if (layoutDirection() == Qt::RightToLeft) @@ -357,7 +357,7 @@ void PageViewMessage::paintEvent(QPaintEvent * /* e */) painter.setPen(Qt::black); painter.setBrush(palette().color(QPalette::Window)); painter.translate(0.5, 0.5); - painter.drawRoundRect(1, 1, width() - 2, height() - 2, 1600 / width(), 1600 / height()); + painter.drawRoundedRect(1, 1, width() - 2, height() - 2, 1600.0 / width(), 1600.0 / height()); // draw icon if present if (!m_symbol.isNull()) diff --git a/ui/side_reviews.cpp b/ui/side_reviews.cpp index cf8c4d0a8..476fdbfd3 100644 --- a/ui/side_reviews.cpp +++ b/ui/side_reviews.cpp @@ -75,7 +75,7 @@ protected: p.setBrush(palette().window()); p.translate(0.5, 0.5); - p.drawRoundRect(15, 15, w, h, (8 * 200) / w, (8 * 200) / h); + p.drawRoundedRect(15, 15, w, h, (8 * 200.0) / w, (8 * 200.0) / h); p.translate(20, 20); document.drawContents(&p);