blockview updatet

git-svn-id: svn://db.shs.com.ru/libs@10 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
2015-04-30 10:54:17 +00:00
parent 56d64571d6
commit d39cc8fef7

View File

@@ -810,6 +810,7 @@ QList<BlockBusItem * > BlockView::connectionBuses(BlockItem * b0, BlockItem * b1
bool BlockView::connectPins(BlockItemPin * p0, BlockItemPin * p1) {
if (!p0 || !p1) return false;
if (p0 == p1) return false;
if (p0->busType() != p1->busType()) return false;
QList<BlockBusItem * > bl0 = p0->connectedBuses(), bl1 = p1->connectedBuses();
if (!(bl0.toSet() & bl1.toSet()).isEmpty()) return true;