34 border(0., 0., 0., 0.)
41 border = {0., 0., 0., 0.};
45 void update(QRectF rect) {
51 if (rect.x() < border.x())
52 border.setX(rect.x());
53 if (rect.y() < border.y())
54 border.setY(rect.y());
55 if (rect.x() + rect.width() > border.x() + border.width())
56 border.setWidth(rect.x() + rect.width() - border.x());
57 if (rect.y() + rect.height() > border.y() + border.height())
58 border.setHeight(rect.y() + rect.height() - border.y());
61 QRectF getBorder()
const {