summaryrefslogtreecommitdiff
path: root/src/editorui.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/editorui.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/editorui.py b/src/editorui.py
index e89810c..48164a0 100644
--- a/src/editorui.py
+++ b/src/editorui.py
@@ -115,6 +115,10 @@ class KPEditorObject(KPEditorItem):
def hoverMoveEvent(self, event):
+ if self._layerRef() != KP.mapScene.currentLayer:
+ self.setCursor(Qt.ArrowCursor)
+ return
+
pos = event.pos()
bit = self.resizerPortionAt(pos.x(), pos.y())
@@ -135,7 +139,7 @@ class KPEditorObject(KPEditorItem):
pos = event.pos()
bit = self.resizerPortionAt(pos.x(), pos.y())
- if bit:
+ if self._layerRef() == KP.mapScene.currentLayer and bit:
event.accept()
x, xSide, y, ySide = False, None, False, None
@@ -240,6 +244,7 @@ class KPMapScene(QtGui.QGraphicsScene):
# todo: look up why I used setItemIndexMethod(self.NoIndex) in Reggie
self.currentLayer = None
+ KP.mapScene = self
def drawBackground(self, painter, rect):
@@ -446,4 +451,3 @@ class KPEditorWidget(QtGui.QGraphicsView):
QtGui.QGraphicsView.mouseMoveEvent(self, event)
-