28 #include <QGraphicsSceneDragDropEvent>
36 using namespace YACS::ENGINE;
37 using namespace YACS::HMI;
41 QString label,
Subject *subject)
51 parent->removeInPortFromList(
this);
62 bool accepted =
false;
64 if (myData && myData->hasFormat(
"yacs/subjectOutPort"))
67 if (sub && (dynamic_cast<SubjectOutputPort*>(sub) ||
68 dynamic_cast<SubjectOutputDataStreamPort*>(sub)))
70 event->setAccepted(
true);
72 QGraphicsItem::update();
76 event->setAccepted(accepted);
83 QGraphicsItem::update();
90 QGraphicsItem::update();
94 if(!myData->hasFormat(
"yacs/subjectOutPort"))
return;
100 if (!outItem)
return;