summaryrefslogtreecommitdiff
path: root/src/editorui/editormain.py
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-05-12 18:49:08 -0500
committerColin Noga <Tempus@chronometry.ca>2012-05-12 18:49:08 -0500
commite037c2d4256e2975e50d00517526794dff444f0d (patch)
tree866248cb5f6e2a66e708f89c5c574c683281233d /src/editorui/editormain.py
parent225b688b188d22fe00976b2febc03f78ca3b2d7e (diff)
downloadkoopatlas-e037c2d4256e2975e50d00517526794dff444f0d.tar.gz
koopatlas-e037c2d4256e2975e50d00517526794dff444f0d.zip
Fixed up some formatting, made the animation panel into a dock widget, added a delay value to doodad animations and implemented it editor-side
Diffstat (limited to 'src/editorui/editormain.py')
-rw-r--r--src/editorui/editormain.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/editorui/editormain.py b/src/editorui/editormain.py
index 1cd2948..263c547 100644
--- a/src/editorui/editormain.py
+++ b/src/editorui/editormain.py
@@ -703,8 +703,8 @@ class KPEditorWidget(QtGui.QGraphicsView):
else:
QtGui.QGraphicsView.mousePressEvent(self, event)
-
+
def mouseMoveEvent(self, event):
if event.buttons() == Qt.RightButton and self.painting:
self._movedWhilePainting(event)
@@ -714,6 +714,11 @@ class KPEditorWidget(QtGui.QGraphicsView):
QtGui.QGraphicsView.mouseMoveEvent(self, event)
+ def mouseReleaseEvent(self, event):
+ QtGui.QGraphicsView.mouseReleaseEvent(self, event)
+ self.userClick.emit()
+
+
def keyPressEvent(self, event):
if event.key() == QtCore.Qt.Key_Delete or event.key() == QtCore.Qt.Key_Backspace:
scene = self.scene()
@@ -730,6 +735,7 @@ class KPEditorWidget(QtGui.QGraphicsView):
else:
QtGui.QGraphicsView.keyPressEvent(self, event)
+ userClick = QtCore.pyqtSignal()