summaryrefslogtreecommitdiff
path: root/src/editorui/editormain.py
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-07-23 12:28:50 -0500
committerColin Noga <Tempus@chronometry.ca>2012-07-23 12:28:50 -0500
commite3bbfbabe74bb525adcf16b784338c4cf4e7507c (patch)
tree0cc5c2e0925cca094e48d031e502e7ad321aa41a /src/editorui/editormain.py
parentb12d27291609d79abe2e0e0817acdf5a1c3e2acb (diff)
downloadkoopatlas-e3bbfbabe74bb525adcf16b784338c4cf4e7507c.tar.gz
koopatlas-e3bbfbabe74bb525adcf16b784338c4cf4e7507c.zip
Reverted multi-layer selection changes to only the selected layer and path layers
Diffstat (limited to 'src/editorui/editormain.py')
-rw-r--r--src/editorui/editormain.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/editorui/editormain.py b/src/editorui/editormain.py
index 60a09a5..4b2e686 100644
--- a/src/editorui/editormain.py
+++ b/src/editorui/editormain.py
@@ -736,19 +736,19 @@ class KPEditorWidget(QtGui.QGraphicsView):
def mousePressEvent(self, event):
- itemsUnder = self.scene().items(self.mapToScene(event.pos()), Qt.IntersectsItemShape, Qt.AscendingOrder)
+ # itemsUnder = self.scene().items(self.mapToScene(event.pos()), Qt.IntersectsItemShape, Qt.AscendingOrder)
if event.button() == Qt.RightButton:
self._tryToPaint(event)
event.accept()
- elif itemsUnder:
- QtGui.QGraphicsView.mousePressEvent(self, event)
+ # elif itemsUnder:
+ # QtGui.QGraphicsView.mousePressEvent(self, event)
- if len(self.scene().selectedItems()) < 2:
- self.scene().clearSelection()
- itemsUnder[0].setSelected(True)
- itemsUnder[0].grabMouse()
+ # if len(self.scene().selectedItems()) < 2:
+ # self.scene().clearSelection()
+ # itemsUnder[0].setSelected(True)
+ # itemsUnder[0].grabMouse()
else:
QtGui.QGraphicsView.mousePressEvent(self, event)
@@ -765,10 +765,10 @@ class KPEditorWidget(QtGui.QGraphicsView):
def mouseReleaseEvent(self, event):
QtGui.QGraphicsView.mouseReleaseEvent(self, event)
- try:
- self.scene().mouseGrabberItem().ungrabMouse()
- except:
- pass
+ # try:
+ # self.scene().mouseGrabberItem().ungrabMouse()
+ # except:
+ # pass
self.userClick.emit()