effects/overview: Call base QQuickItem::geometryChanged() in ExpoLayout

According to the Qt documentation, if an item overrides the
geometryChanged() method, it must call the base class method.

QQuickItem::geometryChanged() is responsible for emitting signals such
as xChanged(), yChanged(), etc.
This commit is contained in:
Vlad Zahorodnii 2021-08-26 11:14:16 +03:00
parent 2c2469f991
commit d841733ed8

View file

@ -286,6 +286,7 @@ void ExpoLayout::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeo
if (newGeometry.size() != oldGeometry.size()) {
scheduleUpdate();
}
QQuickItem::geometryChanged(newGeometry, oldGeometry);
}
static int distance(const QPoint &a, const QPoint &b)