From ace3fdf49db84e65c78a98a7cb81986bfbff3816 Mon Sep 17 00:00:00 2001 From: brenda-br Date: Mon, 20 Feb 2023 17:23:35 +0530 Subject: Make Size Grip Hover Area larger --- src/main/python/shapes/shapes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/python/shapes/shapes.py b/src/main/python/shapes/shapes.py index d14eee6..f579b1e 100644 --- a/src/main/python/shapes/shapes.py +++ b/src/main/python/shapes/shapes.py @@ -144,13 +144,13 @@ class SizeGripItem(QGraphicsPathItem): width = self.parentItem().boundingRect().width()+35 path = QPainterPath() if(m_index == 0): - tempRect = QRectF((-width / 2),( -height / 2)-20, width, height) + tempRect = QRectF((-width / 2),( -height / 2)-20, width, height+10) if(m_index == 1): - tempRect = QRectF((-width / 2)-17.5,( -height / 2), width, height) + tempRect = QRectF((-width / 2)-17.5,( -height / 2), width+8.75, height) if(m_index == 2): - tempRect = QRectF((-width / 2),( -height / 2)+20, width, height) + tempRect = QRectF((-width / 2),( -height / 2)+20, width, height-10) if(m_index == 3): - tempRect = QRectF((-width / 2)+17.5,( -height / 2), width, height) + tempRect = QRectF((-width / 2)+17.5,( -height / 2), width-8.75, height) #print(tempRect) path.addRect(tempRect) self.setPath(path) @@ -228,7 +228,7 @@ class SizeGripItem(QGraphicsPathItem): def show(self): # make self visible - self.setPen(QPen(QColor(128, 128, 128,150), 4)) + self.setPen(QPen(QColor(128, 128, 128,150), 2)) def hide(self): # hide self by setting pen to transparent -- cgit