Commit 5df7f620 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Properly update parent item's bounding rect when moving item

The bounding rect of an item is in the item-local coordinate space. If
the item is moved, its bounding rect won't change, but the parent's
bounding rect, may change.

BUG: 443756

(cherry picked from commit 59a4a908)
parent 65b878f6
......@@ -106,7 +106,9 @@ void Item::setPosition(const QPoint &point)
if (m_position != point) {
m_position = point;
if (m_parentItem) {
Q_EMIT positionChanged();
Supports Markdown
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