Commit 9fe2562a authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Style KCM] Forward geometryChanged to parent class

Required so properties width and height are correct.

Differential Revision: https://phabricator.kde.org/D25690
parent 1c56622f
......@@ -295,10 +295,10 @@ void PreviewItem::dispatchEnterLeave(QWidget *enter, QWidget *leave, const QPoin
void PreviewItem::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
{
if (!m_widget || newGeometry == oldGeometry) {
return;
if (m_widget && newGeometry != oldGeometry) {
m_widget->resize(qRound(newGeometry.width()), qRound(newGeometry.height()));
}
m_widget->resize(qRound(newGeometry.width()), qRound(newGeometry.height()));
QQuickPaintedItem::geometryChanged(newGeometry, oldGeometry);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment