mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -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 *)
|
void YACReader::RoundedCornersDialog::paintEvent(QPaintEvent *)
|
||||||
{
|
{
|
||||||
qreal radius = 36.0; // desired radius in absolute pixels
|
qreal radius = 36.0; // desired radius in absolute pixels
|
||||||
qreal borderWidth = 0.0;
|
|
||||||
|
|
||||||
if (!(windowFlags() & Qt::FramelessWindowHint) && !testAttribute(Qt::WA_TranslucentBackground))
|
if (!(windowFlags() & Qt::FramelessWindowHint) && !testAttribute(Qt::WA_TranslucentBackground))
|
||||||
return; // nothing to do
|
return; // nothing to do
|
||||||
@ -22,8 +21,7 @@ void YACReader::RoundedCornersDialog::paintEvent(QPaintEvent *)
|
|||||||
|
|
||||||
// Paint thyself.
|
// Paint thyself.
|
||||||
QRectF rect(QPointF(0, 0), size());
|
QRectF rect(QPointF(0, 0), size());
|
||||||
// Check for a border size.
|
|
||||||
qreal penWidth = borderWidth;
|
|
||||||
p.setPen(Qt::NoPen);
|
p.setPen(Qt::NoPen);
|
||||||
|
|
||||||
// Set the brush from palette role.
|
// Set the brush from palette role.
|
||||||
|
Loading…
Reference in New Issue
Block a user