mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 19:00:29 -04:00
Use white as background color
This commit is contained in:
parent
c5800d98b2
commit
12495c60ef
@ -25,7 +25,8 @@ void YACReader::RoundedCornersDialog::paintEvent(QPaintEvent *)
|
|||||||
p.setPen(Qt::NoPen);
|
p.setPen(Qt::NoPen);
|
||||||
|
|
||||||
// Set the brush from palette role.
|
// Set the brush from palette role.
|
||||||
p.setBrush(palette().brush(backgroundRole()));
|
// p.setBrush(palette().brush(backgroundRole()));
|
||||||
|
p.setBrush(QBrush(QColor(255, 255, 255))); // TODO: the rest of the colors are hardcoded
|
||||||
// Got radius? Otherwise draw a quicker rect.
|
// Got radius? Otherwise draw a quicker rect.
|
||||||
if (radius > 0.0)
|
if (radius > 0.0)
|
||||||
p.drawRoundedRect(rect, radius, radius, Qt::AbsoluteSize);
|
p.drawRoundedRect(rect, radius, radius, Qt::AbsoluteSize);
|
||||||
|
Loading…
Reference in New Issue
Block a user