Make Item::hostWidget be a Layouting::Widget instead of QWidget

Just an abstraction preparing for QQuickItem support
This commit is contained in:
Sergio Martins
2020-05-24 16:27:28 +01:00
parent 7016656264
commit e28f82dcad
25 changed files with 222 additions and 120 deletions

View File

@@ -72,7 +72,7 @@ void FrameWidget::paintEvent(QPaintEvent *)
QPainter p(this);
QPen pen(QColor(184, 184, 184, 184));
p.setPen(pen);
p.drawRoundedRect(rect().adjusted(0, 0, -1, -1), 2, 2);
p.drawRoundedRect(QWidget::rect().adjusted(0, 0, -1, -1), 2, 2);
}
}