|
|
@ -1615,6 +1615,7 @@ void UBGraphicsScene::addItems(const QSet<QGraphicsItem*>& items) |
|
|
|
void UBGraphicsScene::removeItem(QGraphicsItem* item) |
|
|
|
void UBGraphicsScene::removeItem(QGraphicsItem* item) |
|
|
|
{ |
|
|
|
{ |
|
|
|
setModified(true); |
|
|
|
setModified(true); |
|
|
|
|
|
|
|
item->setSelected(false); |
|
|
|
UBCoreGraphicsScene::removeItem(item); |
|
|
|
UBCoreGraphicsScene::removeItem(item); |
|
|
|
UBApplication::boardController->freezeW3CWidget(item, true); |
|
|
|
UBApplication::boardController->freezeW3CWidget(item, true); |
|
|
|
|
|
|
|
|
|
|
@ -2235,7 +2236,6 @@ void UBGraphicsScene::keyReleaseEvent(QKeyEvent * keyEvent) |
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
default: |
|
|
|
{ |
|
|
|
{ |
|
|
|
item->setSelected(false); |
|
|
|
|
|
|
|
UBGraphicsItem *ubgi = dynamic_cast<UBGraphicsItem*>(item); |
|
|
|
UBGraphicsItem *ubgi = dynamic_cast<UBGraphicsItem*>(item); |
|
|
|
if (0 != ubgi) |
|
|
|
if (0 != ubgi) |
|
|
|
ubgi->remove(); |
|
|
|
ubgi->remove(); |
|
|
|