summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrenda-br2023-02-20 17:23:35 +0530
committerbrenda-br2023-02-20 17:23:35 +0530
commitace3fdf49db84e65c78a98a7cb81986bfbff3816 (patch)
treea1ea66be5395518effb57233f42b038560765dc0
parent0812086cb71a6c1e714c8bf0d115868b8d1f81d7 (diff)
downloadChemical-PFD-ace3fdf49db84e65c78a98a7cb81986bfbff3816.tar.gz
Chemical-PFD-ace3fdf49db84e65c78a98a7cb81986bfbff3816.tar.bz2
Chemical-PFD-ace3fdf49db84e65c78a98a7cb81986bfbff3816.zip
Make Size Grip Hover Area larger
-rw-r--r--src/main/python/shapes/shapes.py10
1 files 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