mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
Remove unused variables
This commit is contained in:
parent
5557cfe5b3
commit
078a97c1d1
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user