AppFwk : Add border to icons with one color

This commit is contained in:
Magne Sjaastad 2020-06-18 09:01:44 +02:00
parent bcb38a7207
commit e3960f13f1

View File

@ -171,7 +171,6 @@ std::unique_ptr<QIcon> IconProvider::icon(const QSize& size) const
{
validIcon = true;
{
// Draw color gradient based on background colors
QLinearGradient gradient (QPointF(0.0f, 0.0f), QPoint(size.width(), 0.0f));
@ -191,7 +190,6 @@ std::unique_ptr<QIcon> IconProvider::icon(const QSize& size) const
painter.fillRect(0, 0, size.width(), size.height(), gradientBrush);
}
{
// Draw border
QPainter painter2(&pixmap);
@ -199,8 +197,6 @@ std::unique_ptr<QIcon> IconProvider::icon(const QSize& size) const
painter2.setPen(QPen(Qt::black, 1));
painter2.drawRect(QRectF(0, 0, size.width(), size.height()));
}
}
}
else pixmap.fill(Qt::transparent);
if (!m_iconResourceString.isEmpty())