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