Add bottom border line on Linux
This commit is contained in:
parent
d4c3dac28f
commit
040e29dfb9
@ -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:
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user