~dismine/valentina/valentina

« back to all changes in this revision

Viewing changes to src/libs/vtools/visualization/path/vistoolcubicbezier.cpp

  • Committer: Roman Telezhynskyi
  • Date: 2017-06-16 18:14:33 UTC
  • Revision ID: git-v1:1e4e5cca9bdc5553aa1de1e6ca8082600aae5f91
Added new feature Zoom Fit Best Current pattern piece.

--HG--
branch : develop

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
 
151
151
    VisPath::paint(painter, option, widget);
152
152
}
153
 
 
154
 
//---------------------------------------------------------------------------------------------------------------------
155
 
QRectF VisToolCubicBezier::boundingRect() const
156
 
{
157
 
    QRectF rect = VisPath::boundingRect();
158
 
    rect = rect.united(point1->boundingRect());
159
 
    rect = rect.united(point2->boundingRect());
160
 
    rect = rect.united(point3->boundingRect());
161
 
    rect = rect.united(point4->boundingRect());
162
 
    rect = rect.united(helpLine1->boundingRect());
163
 
    rect = rect.united(helpLine2->boundingRect());
164
 
    return rect;
165
 
}