22 ItemClipsToShape | ItemClipsChildrenToShape | ItemIsSelectable
27 void setCurveView(
Curve::View* view) { m_curveView = view; }
31 QPixmap pixmap()
noexcept override
34 return m_curveView->pixmap();
39 void paint_impl(QPainter* painter)
const override { }
40 void dropEvent(QGraphicsSceneDragDropEvent* event)
override
43 dropReceived(event->pos(), *event->mimeData());
55 : CurveProcessPresenter{style, layer, view, context, parent}
58 for(
int i = 0; i < 2; i++)
60 QObject::connect(layer.inlets()[i], &Process::Inlet::addressChanged,
this, [
this] {
64 QObject::connect(layer.inlets()[i], &Process::Inlet::cablesChanged,
this, [
this] {
70 void setFullView()
override { m_curve.setBoundedMove(
false); }
73 void disableIfNeeded()
75 bool should_disable{
false};
78 for(
int i = 0; i < 2; i++)
80 const auto inlet{m_process.inlets()[i]};
82 if(inlet->address().isSet() || !inlet->cables().empty())
83 should_disable =
true;
Definition ProcessContext.hpp:12