summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Noga <Tempus@Spectrum-Song.local>2011-11-22 11:57:29 -0600
committerColin Noga <Tempus@Spectrum-Song.local>2011-11-22 11:57:29 -0600
commit3001ce8e60db578d6aec9af8a4d3eb789a8fba20 (patch)
treea76b8fa57312dfbf41cd76a69dde899c83ace3e3
parent95e6d049fd23ba1919d8b67d2071d57a422bdc85 (diff)
downloadkoopatlas-3001ce8e60db578d6aec9af8a4d3eb789a8fba20.tar.gz
koopatlas-3001ce8e60db578d6aec9af8a4d3eb789a8fba20.zip
imagey fixes
Diffstat (limited to '')
-rw-r--r--Resources/Key.pngbin2174 -> 2045 bytes
-rw-r--r--Resources/KeyArrow.pngbin2245 -> 1446 bytes
-rw-r--r--Resources/SecretKey.pngbin2045 -> 2174 bytes
-rw-r--r--src/editorui/paths.py7
4 files changed, 5 insertions, 2 deletions
diff --git a/Resources/Key.png b/Resources/Key.png
index 2e557f4..56b94c0 100644
--- a/Resources/Key.png
+++ b/Resources/Key.png
Binary files differ
diff --git a/Resources/KeyArrow.png b/Resources/KeyArrow.png
index fb09bed..7436b7e 100644
--- a/Resources/KeyArrow.png
+++ b/Resources/KeyArrow.png
Binary files differ
diff --git a/Resources/SecretKey.png b/Resources/SecretKey.png
index 56b94c0..2e557f4 100644
--- a/Resources/SecretKey.png
+++ b/Resources/SecretKey.png
Binary files differ
diff --git a/src/editorui/paths.py b/src/editorui/paths.py
index 8b45ea9..c978a9b 100644
--- a/src/editorui/paths.py
+++ b/src/editorui/paths.py
@@ -270,7 +270,9 @@ class KPEditorPath(QtGui.QGraphicsLineItem):
QtGui.QIcon("Resources/SecretKey.png")]
self.unlockIcon = QtGui.QIcon("Resources/Unlock.png")
- self.arrowIcon = QtGui.QIcon("Resources/KeyArrow.png")
+ self.arrowIcon = [QtGui.QIcon("Resources/KeyArrow.png"),
+ QtGui.QIcon("Resources/SecretKeyArrow.png")]
+
self._pathRef = pathRef
@@ -309,6 +311,7 @@ class KPEditorPath(QtGui.QGraphicsLineItem):
def paintEvent(self, event):
painter = QtGui.QPainter(self)
contentsRect = self.contentsRect()
+ painter.setRenderHint(QtGui.QPainter.SmoothPixmapTransform)
if self.path > 0:
painter.save()
@@ -325,7 +328,7 @@ class KPEditorPath(QtGui.QGraphicsLineItem):
painter.translate(displaceX, displaceY)
painter.rotate(angle)
painter.translate(-displaceX, -displaceY)
- self.arrowIcon.paint(painter, contentsRect, Qt.AlignCenter)
+ self.arrowIcon[self.secret].paint(painter, contentsRect, Qt.AlignCenter)
painter.restore()