Qt/TAS: Enable antialiasing for Stick/IR widgets

This commit is contained in:
spycrab 2018-08-13 15:05:30 +02:00
parent 84c24516b1
commit 55c608b482
2 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,9 @@ void IRWidget::paintEvent(QPaintEvent* event)
{
QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing, true);
painter.setRenderHint(QPainter::SmoothPixmapTransform, true);
painter.setBrush(Qt::white);
painter.drawRect(0, 0, width() - 1, height() - 1);

View File

@ -35,6 +35,9 @@ void StickWidget::paintEvent(QPaintEvent* event)
{
QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing, true);
painter.setRenderHint(QPainter::SmoothPixmapTransform, true);
painter.setBrush(Qt::white);
painter.drawEllipse(0, 0, width() - 1, height() - 1);