From 078a97c1d1a8547c4af6791e8d7208b82668e8de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Thu, 30 Sep 2021 21:59:08 +0200 Subject: [PATCH] Remove unused variables --- custom_widgets/rounded_corners_dialog.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/custom_widgets/rounded_corners_dialog.cpp b/custom_widgets/rounded_corners_dialog.cpp index f3ce5179..a47907a8 100644 --- a/custom_widgets/rounded_corners_dialog.cpp +++ b/custom_widgets/rounded_corners_dialog.cpp @@ -12,7 +12,6 @@ YACReader::RoundedCornersDialog::RoundedCornersDialog(QWidget *parent) void YACReader::RoundedCornersDialog::paintEvent(QPaintEvent *) { qreal radius = 36.0; // desired radius in absolute pixels - qreal borderWidth = 0.0; if (!(windowFlags() & Qt::FramelessWindowHint) && !testAttribute(Qt::WA_TranslucentBackground)) return; // nothing to do @@ -22,8 +21,7 @@ void YACReader::RoundedCornersDialog::paintEvent(QPaintEvent *) // Paint thyself. QRectF rect(QPointF(0, 0), size()); - // Check for a border size. - qreal penWidth = borderWidth; + p.setPen(Qt::NoPen); // Set the brush from palette role.