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

This commit is contained in:
2017-11-09 17:59:47 +00:00
parent bc2cc255b3
commit efeb95c1c3
4 changed files with 20 additions and 0 deletions

View File

@@ -161,6 +161,8 @@ protected:
int type() const {return Type;}
QRectF boundingRect() const;
void mouseMoveEvent(QGraphicsSceneMouseEvent * event);
void hoverEnterEvent(QGraphicsSceneHoverEvent * event);
void hoverLeaveEvent(QGraphicsSceneHoverEvent * event);
double left() const {return boundingRect().left();}
double right() const {return boundingRect().right();}
double top() const {return boundingRect().top();}
@@ -174,6 +176,9 @@ protected:
QMap<Qt::Alignment, QVector<BlockItemPin * > > pins_;
QList<QGraphicsItem * > decors_;
signals:
void blockHoverEnter(BlockItem * b);
void blockHoverLeave(BlockItem * b);
};