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.