QRect r = getGateRect();
// r.setHeight(r.height()+1);
thePainter.drawRect(r);
- int x0 = (r.left() + r.right())/2;
+ //int x0 = (r.left() + r.right())/2;
// thePainter.drawLine(x0, r.top(), x0, r.bottom());
const QObjectList* list = myNode->children();
&& !myPort->Node()->IsMacro())
popup->insertItem(tr("ITM_COPY_PORT"), this, SLOT(copy()));
- int anItem = popup->insertItem(tr("MSG_BROWSE"), this, SLOT(browse()));
+//int anItem = popup->insertItem(tr("MSG_BROWSE"), this, SLOT(browse()));
// if (getEngine()->IsLinked())
// popup->setItemEnabled(anItem, getEngine()->State() == SUPERV_Ready);
// else
QPoint p = inverseWorldMatrix().map(theEvent->pos());
// compute collision rectangle
- QRect aSel(p.x()-MARGIN, p.y()-MARGIN, 1+2*MARGIN, 1+2*MARGIN);
+ //QRect aSel(p.x()-MARGIN, p.y()-MARGIN, 1+2*MARGIN, 1+2*MARGIN);
if (theEvent->button() == Qt::LeftButton) {
QCanvasItemList l = canvas()->collisions(p);
* asv : 14.01.05 : fix of a bug (exception on node creation):
* if origName and theFunc is null, return non-null empty strings!
*/
-bool replaceName( SUPERV::ListOfStrings_var& theFunc, const QString& origName, const QString& newName ) {
+void replaceName( SUPERV::ListOfStrings_var& theFunc, const QString& origName, const QString& newName ) {
for ( int i = 0, n = theFunc->length(); i < n; i++ ) {
QString aLine( theFunc[i] );
int index = aLine.find( origName, 0 ); // find FIRST occurance of origName in aLine