Remove unused variables

This commit is contained in:
Luis Ángel San Martín 2021-09-30 21:59:08 +02:00
parent 5557cfe5b3
commit 078a97c1d1

View File

@ -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.