git-svn-id: svn://db.shs.com.ru/libs@597 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-09-19 13:22:51 +00:00
parent 575d710678
commit 18f484b37f

View File

@@ -840,7 +840,7 @@ void BlockView::setGhost(BlockItem * item) {
if (!item) return;
ghost_ = item;
ghost_->setOpacity(0.5);
addItem(item);
addItem(item, false);
}
@@ -1792,6 +1792,7 @@ void BlockView::removedBus(QObject * o) {
void BlockView::removedBlock(QObject * o) {
if (o == ghost_) return;
emit blockRemoved((BlockItem*)o);
emitActionEvent(BlockItemBase::BlockRemove, QList<QGraphicsItem*>() << qgraphicsitem_cast<QGraphicsItem*>((BlockItem*)o));
}