animation in blockview 2

git-svn-id: svn://db.shs.com.ru/libs@317 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
2017-11-15 16:17:21 +00:00
parent ed362a6b55
commit d962dcb0f2
4 changed files with 37 additions and 16 deletions

View File

@@ -1168,8 +1168,8 @@ void BlockView::clearBusStates() {
if (i->data(1005) == "connection") {
BlockBusItem * b = qgraphicsitem_cast<BlockBusItem*>(i);
b->clearBusState();
if (i != bus_from && i != match_bus)
b->selPoint = b->selSegment = -1;
// if (i != bus_from && i != match_bus)
//b->selPoint = b->selSegment = -1;
}
}
@@ -1285,8 +1285,12 @@ void BlockView::markPins(int bus_type) {
if (p->busType() == bus_type)
p->setState(BlockItemPin::Accept);
} else {
if (p->busType() == bus_type && p->state() == BlockItemPin::Disconnected)
p->setState(BlockItemPin::Accept);
if (p->busType() == bus_type) {
if (p->state() == BlockItemPin::Disconnected)
p->setState(BlockItemPin::Accept);
// else
// p->animAccept();
}
}
}
}