diff options
author | Treeki <treeki@gmail.com> | 2012-01-07 22:49:22 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-01-07 22:49:22 +0100 |
commit | 321681e6092d87bf7e0a1430dcb1aab21c9df0be (patch) | |
tree | 836122f03fea4f002eda6cec85fd3eea5846bc17 /src | |
parent | 09c93037b1635ed8d2b4e501d992a1bf9979ceb4 (diff) | |
download | koopatlas-321681e6092d87bf7e0a1430dcb1aab21c9df0be.tar.gz koopatlas-321681e6092d87bf7e0a1430dcb1aab21c9df0be.zip |
quick fix to the layer widget
Diffstat (limited to '')
-rw-r--r-- | src/ui.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -328,21 +328,25 @@ class KPLayerList(QtGui.QWidget): def moveUp(self): index = self.selectedLayerIndex() KP.map.moveLayer(index, index - 1) + self.setButtonStates() KP.mainWindow.editor.viewport().update() def moveDown(self): index = self.selectedLayerIndex() KP.map.moveLayer(index, index + 2) + self.setButtonStates() KP.mainWindow.editor.viewport().update() def moveTop(self): index = self.selectedLayerIndex() KP.map.moveLayer(index, 0) + self.setButtonStates() KP.mainWindow.editor.viewport().update() def moveBottom(self): index = self.selectedLayerIndex() KP.map.moveLayer(index, len(KP.map.layers)) + self.setButtonStates() KP.mainWindow.editor.viewport().update() |