From 776c773f17632d12247a13640cc294f5dbb2fa7d Mon Sep 17 00:00:00 2001 From: Blaine Date: Wed, 17 Jun 2020 19:25:56 +0530 Subject: minor fixes --- src/main/python/shapes/shapes.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/python/shapes/shapes.py b/src/main/python/shapes/shapes.py index 05ac233..dbf3e9e 100644 --- a/src/main/python/shapes/shapes.py +++ b/src/main/python/shapes/shapes.py @@ -102,9 +102,13 @@ class SizeGripItem(QGraphicsPathItem): self.setPen(QPen(QColor("black"), 0)) self.setZValue(2) # property direction - self._direction = orientationEnum.index(direction) - self.m_index = index + self._direction = (orientationEnum.index(direction) + self.parentItem().rotation) % 4 + self._m_index = index + @property + def m_index(self): + return (self._m_index + self.parentItem().rotation) % 4 + @property def direction(self): """ -- cgit