Fix floating window's border, was appearing black

QPen was unused
This commit is contained in:
Sergio Martins
2020-10-01 18:22:07 +01:00
parent 9a53c36c14
commit 12ad3b3484

View File

@@ -42,6 +42,7 @@ void FloatingWindowWidget::paintEvent(QPaintEvent *)
QPen pen(0x666666);
pen.setWidth(1);
pen.setJoinStyle(Qt::MiterJoin);
p.setPen(pen);
const qreal halfPenWidth = p.pen().widthF() / 2;
const QRectF rectf = rect();
p.drawRect(rectf.adjusted(halfPenWidth, halfPenWidth, -halfPenWidth, -halfPenWidth));