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

This commit is contained in:
2016-12-03 23:43:50 +00:00
parent a85a1a8f31
commit 1f0efdec0f
2 changed files with 8 additions and 5 deletions

View File

@@ -66,12 +66,13 @@ void BlockItemPin::hoverEnterEvent(QGraphicsSceneHoverEvent * e) {
if ((state() != Disconnected) && !m_pin_mc) return;
saveState();
setState(BlockItemPin::Hover);
update();
}
void BlockItemPin::hoverLeaveEvent(QGraphicsSceneHoverEvent * e) {
//if (state() == Hover)
restoreState();
update();
}
#define BLOCKITEM_DEFAULT_PIN_MARGIN 20
@@ -351,6 +352,7 @@ BlockItem * BlockItem::copy() const {
np->setBusType(p->busType());
np->setAlignment(p->alignment());
np->setText(p->text());
np->setToolTip(p->toolTip());
np->properties() = p->properties();
ret->addPin(np);
}