|
|
@ -541,12 +541,14 @@ bool UBGraphicsScene::inputDeviceRelease() |
|
|
|
mAddedItems.remove(mArcPolygonItem); |
|
|
|
mAddedItems.remove(mArcPolygonItem); |
|
|
|
removeItem(mArcPolygonItem); |
|
|
|
removeItem(mArcPolygonItem); |
|
|
|
UBCoreGraphicsScene::removeItemFromDeletion(mArcPolygonItem); |
|
|
|
UBCoreGraphicsScene::removeItemFromDeletion(mArcPolygonItem); |
|
|
|
|
|
|
|
mArcPolygonItem->setStrokesGroup(pStrokes); |
|
|
|
pStrokes->addToGroup(mArcPolygonItem); |
|
|
|
pStrokes->addToGroup(mArcPolygonItem); |
|
|
|
|
|
|
|
|
|
|
|
// Add the center cross
|
|
|
|
// Add the center cross
|
|
|
|
foreach(QGraphicsItem* item, mAddedItems){ |
|
|
|
foreach(QGraphicsItem* item, mAddedItems){ |
|
|
|
removeItem(item); |
|
|
|
removeItem(item); |
|
|
|
UBCoreGraphicsScene::removeItemFromDeletion(item); |
|
|
|
UBCoreGraphicsScene::removeItemFromDeletion(item); |
|
|
|
|
|
|
|
mArcPolygonItem->setStrokesGroup(pStrokes); |
|
|
|
pStrokes->addToGroup(item); |
|
|
|
pStrokes->addToGroup(item); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|