@@ -91,18 +91,18 public: | |||||
91 | protected: |
|
91 | protected: | |
92 | void mousePressEvent(QGraphicsSceneMouseEvent *event) |
|
92 | void mousePressEvent(QGraphicsSceneMouseEvent *event) | |
93 | { |
|
93 | { | |
94 | m_parent->markerSelected(this); |
|
|||
95 | QGraphicsEllipseItem::mousePressEvent(event); |
|
94 | QGraphicsEllipseItem::mousePressEvent(event); | |
|
95 | m_parent->markerSelected(this); | |||
96 | } |
|
96 | } | |
97 | void hoverEnterEvent(QGraphicsSceneHoverEvent *event) |
|
97 | void hoverEnterEvent(QGraphicsSceneHoverEvent *event) | |
98 | { |
|
98 | { | |
99 | m_parent->markerHovered(this, true); |
|
|||
100 | QGraphicsEllipseItem::hoverEnterEvent(event); |
|
99 | QGraphicsEllipseItem::hoverEnterEvent(event); | |
|
100 | m_parent->markerHovered(this, true); | |||
101 | } |
|
101 | } | |
102 | void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) |
|
102 | void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) | |
103 | { |
|
103 | { | |
104 | m_parent->markerHovered(this, false); |
|
|||
105 | QGraphicsEllipseItem::hoverLeaveEvent(event); |
|
104 | QGraphicsEllipseItem::hoverLeaveEvent(event); | |
|
105 | m_parent->markerHovered(this, false); | |||
106 | } |
|
106 | } | |
107 |
|
107 | |||
108 | private: |
|
108 | private: | |
@@ -123,18 +123,18 public: | |||||
123 | protected: |
|
123 | protected: | |
124 | void mousePressEvent(QGraphicsSceneMouseEvent *event) |
|
124 | void mousePressEvent(QGraphicsSceneMouseEvent *event) | |
125 | { |
|
125 | { | |
126 | m_parent->markerSelected(this); |
|
|||
127 | QGraphicsRectItem::mousePressEvent(event); |
|
126 | QGraphicsRectItem::mousePressEvent(event); | |
|
127 | m_parent->markerSelected(this); | |||
128 | } |
|
128 | } | |
129 | void hoverEnterEvent(QGraphicsSceneHoverEvent *event) |
|
129 | void hoverEnterEvent(QGraphicsSceneHoverEvent *event) | |
130 | { |
|
130 | { | |
131 | m_parent->markerHovered(this, true); |
|
|||
132 | QGraphicsRectItem::hoverEnterEvent(event); |
|
131 | QGraphicsRectItem::hoverEnterEvent(event); | |
|
132 | m_parent->markerHovered(this, true); | |||
133 | } |
|
133 | } | |
134 | void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) |
|
134 | void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) | |
135 | { |
|
135 | { | |
136 | m_parent->markerHovered(this, false); |
|
|||
137 | QGraphicsRectItem::hoverLeaveEvent(event); |
|
136 | QGraphicsRectItem::hoverLeaveEvent(event); | |
|
137 | m_parent->markerHovered(this, false); | |||
138 | } |
|
138 | } | |
139 |
|
139 | |||
140 | private: |
|
140 | private: |
General Comments 0
You need to be logged in to leave comments.
Login now