[Kst] branches/work/kst/portto4/kst/src/libkstapp

Adam Treat treat at kde.org
Wed Sep 19 19:41:19 CEST 2007


SVN commit 714486 by treat:

* Reduce the gripBoundingRect so that the centers of
the grips are the same as the vertice they are operating
on.


 M  +3 -3      viewitem.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/viewitem.cpp #714485:714486
@@ -338,9 +338,9 @@
 
 QRectF ViewItem::gripBoundingRect() const {
   QRectF bound = selectBoundingRect();
-  bound.setTopLeft(bound.topLeft() - QPointF(sizeOfGrip().width(), sizeOfGrip().height()));
-  bound.setWidth(bound.width() + sizeOfGrip().width());
-  bound.setHeight(bound.height() + sizeOfGrip().height());
+  bound.setTopLeft(bound.topLeft() - QPointF(sizeOfGrip().width() / 2.0, sizeOfGrip().height() / 2.0));
+  bound.setWidth(bound.width() + sizeOfGrip().width() / 2.0);
+  bound.setHeight(bound.height() + sizeOfGrip().height() / 2.0);
   return bound;
 }
 


More information about the Kst mailing list