git-svn-id: svn://db.shs.com.ru/libs@597 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user