Add bottom border line on Linux

This commit is contained in:
Konstantinos Sideris 2018-08-09 18:45:18 +03:00
parent d4c3dac28f
commit 040e29dfb9
2 changed files with 6 additions and 2 deletions

View file

@ -78,8 +78,10 @@ protected:
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
#if !defined(Q_OS_MAC)
p.setPen(QPen(borderColor()));
p.drawLine(QPointF(0, height()), QPointF(width(), height()));
p.drawLine(QPointF(0, height() - p.pen().width()), QPointF(width(), height()));
#endif
}
private:

View file

@ -161,6 +161,8 @@ UserInfoWidget::paintEvent(QPaintEvent *event)
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
#if !defined(Q_OS_MAC)
p.setPen(QPen(borderColor()));
p.drawLine(QPointF(0, height()), QPointF(width(), height()));
p.drawLine(QPointF(0, height() - p.pen().width()), QPointF(width(), height()));
#endif
}