Qet shape item : rectangle and ellipse can be resized by the edges

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4055 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2015-07-19 15:52:44 +00:00
parent e953459e90
commit d55508df05
4 changed files with 82 additions and 52 deletions

View File

@@ -97,9 +97,8 @@ void ElementPrimitiveDecorator::paint(QPainter *painter, const QStyleOptionGraph
pen.setCosmetic(true);
painter -> setPen(pen);
painter -> drawRect(modified_bounding_rect_);
//Draw the handler
foreach (QPointF point, getResizingsPoints())
m_handler.DrawHandler(painter, point, decorated_items_.size()-1);
//Draw the handlers
m_handler.drawHandler(painter, getResizingsPoints(), decorated_items_.size()-1);
// uncomment to draw the real bouding rect (=adjusted internal bounding rect)
// painter -> setBrush(QBrush(QColor(240, 0, 0, 127)));