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