0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-09-23 08:29:07 +03:00

Color property drawing has been changed

This commit is contained in:
Arin Alexander
2018-03-29 23:18:15 +03:00
parent b65292dea8
commit 891622e2b3
2 changed files with 12 additions and 9 deletions

View File

@@ -100,11 +100,12 @@ void ColorIndicator::paintEvent(QPaintEvent* event)
QPainter painter(this);
painter.save();
painter.setBrush(m_color);
painter.setPen(Qt::gray);
painter.setPen(Qt::transparent);
QRect rect = event->rect().adjusted(3,3,-4,-4);
rect.setWidth(rect.height());
painter.setRenderHint(QPainter::Antialiasing);
painter.drawEllipse(rect);
// painter.drawEllipse(rect);
painter.drawRoundedRect(rect,2,2);
painter.restore();
}