mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-26 06:39:58 +02:00
Minor improvment : over element, highlight every linked elements
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3554 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -176,21 +176,20 @@ class Element : public QetGraphicsItem {
|
||||
int orientation() const;
|
||||
|
||||
protected:
|
||||
void drawAxes(QPainter *, const QStyleOptionGraphicsItem *);
|
||||
void drawAxes(QPainter *, const QStyleOptionGraphicsItem *);
|
||||
|
||||
private:
|
||||
bool internal_connections_;
|
||||
bool must_highlight_;
|
||||
void drawSelection(QPainter *, const QStyleOptionGraphicsItem *);
|
||||
void drawHighlight(QPainter *, const QStyleOptionGraphicsItem *);
|
||||
void updatePixmap();
|
||||
bool internal_connections_;
|
||||
bool must_highlight_;
|
||||
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;
|
||||
virtual void hoverEnterEvent ( QGraphicsSceneHoverEvent * );
|
||||
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * );
|
||||
private:
|
||||
bool m_mouse_over;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user