summaryrefslogtreecommitdiff
path: root/src/editorui/paths.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-12-02 19:07:13 +0100
committerTreeki <treeki@gmail.com>2011-12-02 19:07:13 +0100
commit3bdc780bd3eaa204b1df5d5e6727a876d5967401 (patch)
tree411f4300356797effc38bb5e599e9dff1a02d1dd /src/editorui/paths.py
parentcbadd29918da648190cd609130f808e11cf01a25 (diff)
downloadkoopatlas-3bdc780bd3eaa204b1df5d5e6727a876d5967401.tar.gz
koopatlas-3bdc780bd3eaa204b1df5d5e6727a876d5967401.zip
a really, really big commit
Diffstat (limited to 'src/editorui/paths.py')
-rw-r--r--src/editorui/paths.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/editorui/paths.py b/src/editorui/paths.py
index c1579be..2f4388a 100644
--- a/src/editorui/paths.py
+++ b/src/editorui/paths.py
@@ -230,10 +230,14 @@ class KPEditorNode(KPEditorItem):
def _updatePosition(self):
+ self.ignoreMovement = True
+
node = self._nodeRef()
x, y = node.position
self.setPos(x+12, y+12)
+ self.ignoreMovement = False
+
def _itemMoved(self, oldX, oldY, newX, newY):
node = self._nodeRef()
@@ -440,7 +444,13 @@ class KPEditorPath(QtGui.QGraphicsLineItem):
# Connections
- self.ExclusiveButtons.buttonReleased.connect(self.updatePathAnim)
+ # regular connect doesn't work for some reason...
+ #self.ExclusiveButtons.buttonReleased.connect(self.updatePathAnim)
+ QtCore.QObject.connect(
+ self.ExclusiveButtons,
+ QtCore.SIGNAL('buttonReleased(int)'),
+ self.updatePathAnim)
+
self.moveSpeedSpinner.valueChanged.connect(self.updateMoveSpeed)
self.linkedLayer.currentIndexChanged.connect(self.updateLinkLayer)
@@ -464,6 +474,7 @@ class KPEditorPath(QtGui.QGraphicsLineItem):
path = self._pathRef()
path.animation = buttonID
+ print path.animation
path.qtItem.update()