mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-01 16:37:44 -07:00
Fixed implicit conversions from double to int warnings regarding
QPainter.drawRect()
This commit is contained in:
@@ -77,7 +77,7 @@ void ToggleButton::paintEvent(QPaintEvent *event)
|
||||
painter.setPen(QPen(Qt::green, 3));
|
||||
else
|
||||
painter.setPen(QPen(Qt::red, 3));
|
||||
painter.drawRect(1.5, 1.5, width() - 3, height() - 3);
|
||||
painter.drawRect(1, 1, width() - 3, height() - 3);
|
||||
}
|
||||
|
||||
void ToggleButton::setState(bool _state)
|
||||
|
||||
Reference in New Issue
Block a user