mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-08 07:59:58 +01:00
Light change in user interface
When mouse over a element, coonductor, text, the graphic symbol draw his bounding box. and draw a tooltip with his name For conductor the conductor size change. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3490 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -186,6 +186,14 @@ class Element : public QetGraphicsItem {
|
||||
void drawSelection(QPainter *, const QStyleOptionGraphicsItem *);
|
||||
void drawHighlight(QPainter *, const QStyleOptionGraphicsItem *);
|
||||
void updatePixmap();
|
||||
|
||||
protected:
|
||||
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *);
|
||||
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *);
|
||||
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *);
|
||||
|
||||
bool bMouseOver;
|
||||
|
||||
};
|
||||
|
||||
bool comparPos(const Element * elmt1, const Element * elmt2);
|
||||
|
||||
Reference in New Issue
Block a user