Fix repaint scheduling in Item::setVisible()
If an item disappears, we need a workspace repaint.
This commit is contained in:
parent
30076f297c
commit
94d30c2268
1 changed files with 5 additions and 1 deletions
|
@ -352,7 +352,11 @@ void Item::updateEffectiveVisibility()
|
|||
}
|
||||
|
||||
m_effectiveVisible = effectiveVisible;
|
||||
scheduleRepaintInternal(boundingRect());
|
||||
if (!m_effectiveVisible) {
|
||||
Compositor::self()->scene()->addRepaint(mapToGlobal(boundingRect()));
|
||||
} else {
|
||||
scheduleRepaintInternal(boundingRect());
|
||||
}
|
||||
|
||||
for (Item *childItem : qAsConst(m_childItems)) {
|
||||
childItem->updateEffectiveVisibility();
|
||||
|
|
Loading…
Reference in a new issue