Changeset 68dfc58 in OpenModelica for OMEdit/OMEditGUI/ShapeAnnotation.cpp
- Timestamp:
- 2011-03-06T04:24:22+01:00 (13 years ago)
- Branches:
- Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
- Children:
- 30eb505b
- Parents:
- b605a21
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OMEdit/OMEditGUI/ShapeAnnotation.cpp
r58e39c4a r68dfc58 178 178 this->setPos(this->pos().x(), this->mapFromScene(this->mapToScene(this->pos())).y()+1); 179 179 mpGraphicsView->scene()->update(); 180 emit updateShapeAnnotation(); 180 181 } 181 182 … … 188 189 this->setPos(this->pos().x(), this->mapFromScene(this->mapToScene(this->pos())).y()-1); 189 190 mpGraphicsView->scene()->update(); 191 emit updateShapeAnnotation(); 190 192 } 191 193 … … 198 200 this->setPos(this->mapFromScene(this->mapToScene(this->pos())).x()-1, this->pos().y()); 199 201 mpGraphicsView->scene()->update(); 202 emit updateShapeAnnotation(); 200 203 } 201 204 … … 208 211 this->setPos(this->mapFromScene(this->mapToScene(this->pos())).x()+1, this->pos().y()); 209 212 mpGraphicsView->scene()->update(); 213 emit updateShapeAnnotation(); 210 214 } 211 215 … … 307 311 { 308 312 setSelectionBoxActive(); 313 // we first need to disconnect just to make sure we don't make connections two times. 314 /* since we dont do the disconnect when user click on corner item so selecting the item back can 315 create two connections */ 316 disconnect(mpGraphicsView, SIGNAL(keyPressDelete()), this, SLOT(deleteMe())); 317 disconnect(mpGraphicsView, SIGNAL(keyPressUp()), this, SLOT(moveUp())); 318 disconnect(mpGraphicsView, SIGNAL(keyPressDown()), this, SLOT(moveDown())); 319 disconnect(mpGraphicsView, SIGNAL(keyPressLeft()), this, SLOT(moveLeft())); 320 disconnect(mpGraphicsView, SIGNAL(keyPressRight()), this, SLOT(moveRight())); 321 disconnect(mpGraphicsView, SIGNAL(keyPressRotateClockwise()), this, SLOT(rotateClockwise())); 322 disconnect(mpGraphicsView, SIGNAL(keyPressRotateAntiClockwise()), this, SLOT(rotateAntiClockwise())); 323 // make the connections now 309 324 connect(mpGraphicsView, SIGNAL(keyPressDelete()), SLOT(deleteMe())); 310 325 connect(mpGraphicsView, SIGNAL(keyPressUp()), SLOT(moveUp()));
Note: See TracChangeset
for help on using the changeset viewer.