mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fixed cursor / single click behaviour on map.
This commit is contained in:
parent
15d72a8dcb
commit
2012ad0aa3
@ -12,7 +12,9 @@ class QLiberationScene(QGraphicsScene):
|
|||||||
item.setDefaultTextColor(CONST.COLORS["white"])
|
item.setDefaultTextColor(CONST.COLORS["white"])
|
||||||
|
|
||||||
def mouseMoveEvent(self, event: QGraphicsSceneMouseEvent):
|
def mouseMoveEvent(self, event: QGraphicsSceneMouseEvent):
|
||||||
|
super(QLiberationScene, self).mouseMoveEvent(event)
|
||||||
self.parent().sceneMouseMovedEvent(event)
|
self.parent().sceneMouseMovedEvent(event)
|
||||||
|
|
||||||
def mousePressEvent(self, event:QGraphicsSceneMouseEvent):
|
def mousePressEvent(self, event:QGraphicsSceneMouseEvent):
|
||||||
|
super(QLiberationScene, self).mousePressEvent(event)
|
||||||
self.parent().sceneMousePressEvent(event)
|
self.parent().sceneMousePressEvent(event)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user