From 3001ce8e60db578d6aec9af8a4d3eb789a8fba20 Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Tue, 22 Nov 2011 11:57:29 -0600 Subject: imagey fixes --- src/editorui/paths.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/editorui') 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() -- cgit v1.2.3