void SUPERVGUI_PortIn::setValue(const char* d) {
Trace("SUPERVGUI_PortIn::setValue")
- if (port->Input((*Supervision.getEngine())->StringValue(d))) {
+ if (port->Input(Supervision.getEngine()->StringValue(d))) {
sync();
} else {
QMessageBox::warning(QAD_Application::getDesktop(), tr("ERROR"), tr("MSG_CANT_SETVAL"));
QPoint SUPERVGUI_PortIn::getConnectPnt() {
// Parent widget is internal node frame
// parent of parent is node it self
- QWidget* aNode = parentWidget()->parentWidget();
+ QWidget* aNode = parentWidget()->parentWidget()->parentWidget();
QPoint aPnt(aNode->pos()); // position of the node
if (parentWidget()->isVisible()) {
+ aPnt += parentWidget()->parentWidget()->pos();
aPnt += parentWidget()->pos();
return QPoint(aPnt.x() + pos().x(),
aPnt.y() + (pos().y() + height()/2));
QPoint SUPERVGUI_PortOut::getConnectPnt() {
// Parent widget is internal node frame
// parent of parent is node it self
- QWidget* aNode = parentWidget()->parentWidget();
+ QWidget* aNode = parentWidget()->parentWidget()->parentWidget();
QPoint aPnt(aNode->pos()); // position of the node
if (parentWidget()->isVisible()) {
+ aPnt += parentWidget()->parentWidget()->pos();
aPnt += parentWidget()->pos();
return QPoint(aPnt.x() + pos().x() + width(),
aPnt.y() + (pos().y() + height()/2));
void SUPERVGUI_PortInESNode::setValue(const char* d) {
Trace("SUPERVGUI_PortIn::setValue")
- if (port->Input((*Supervision.getEngine())->StringValue(d))) {
+ if (port->Input(Supervision.getEngine()->StringValue(d))) {
sync();
} else {
QMessageBox::warning(QAD_Application::getDesktop(), tr("ERROR"), tr("MSG_CANT_SETVAL"));
* Returns coordinates of connection point in content coordinates
*/
QPoint SUPERVGUI_PortInESNode::getConnectPnt() {
- QWidget* aNode = parentWidget()->parentWidget();
+ QWidget* aNode = parentWidget()->parentWidget()->parentWidget();
QPoint aPnt(aNode->pos());
if (parentWidget()->isVisible()) {
+ aPnt += parentWidget()->parentWidget()->pos();
aPnt += parentWidget()->pos();
return QPoint(aPnt.x() + pos().x(),
aPnt.y() + (pos().y() + height()/2));