File tree 1 file changed +10
-1
lines changed
src/plugins/score-lib-process/Process/Dataflow
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 17
17
#include < score/command/Dispatchers/CommandDispatcher.hpp>
18
18
#include < score/document/DocumentContext.hpp>
19
19
#include < score/graphics/GraphicWidgets.hpp>
20
+ #include < score/graphics/GraphicsLayout.hpp>
20
21
#include < score/graphics/TextItem.hpp>
21
22
#include < score/model/Skin.hpp>
22
23
#include < score/selection/SelectionDispatcher.hpp>
26
27
#include < ossia-qt/invoke.hpp>
27
28
28
29
#include < QCursor>
30
+ #include < QGraphicsScene>
29
31
#include < QGraphicsSceneMouseEvent>
30
32
#include < QKeyEvent>
31
33
#include < QPainter>
@@ -416,8 +418,11 @@ double NodeItem::minimalContentHeight() const noexcept
416
418
void NodeItem::updateSize ()
417
419
{
418
420
if (!m_label)
421
+ {
422
+ if (auto sc = this ->scene ())
423
+ sc->update ();
419
424
return ;
420
-
425
+ }
421
426
auto sz = m_fx ? m_fx->boundingRect ().size ()
422
427
: QSizeF{minimalContentWidth (), minimalContentHeight ()};
423
428
@@ -447,6 +452,8 @@ void NodeItem::updateSize()
447
452
}
448
453
updateTitlePos ();
449
454
update ();
455
+ if (auto sc = this ->scene ())
456
+ sc->update ();
450
457
}
451
458
}
452
459
@@ -477,6 +484,8 @@ void NodeItem::setSize(QSizeF sz)
477
484
m_uiButton->setPos ({m_contentSize.width () + TopButtonX0, TopButtonY0});
478
485
}
479
486
}
487
+ if (auto sc = this ->scene ())
488
+ sc->update ();
480
489
}
481
490
482
491
const Id<Process::ProcessModel>& NodeItem::id () const noexcept
You can’t perform that action at this time.
0 commit comments