aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/curveeditor/detail/handleitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/components/curveeditor/detail/handleitem.cpp')
-rw-r--r--src/plugins/qmldesigner/components/curveeditor/detail/handleitem.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/curveeditor/detail/handleitem.cpp b/src/plugins/qmldesigner/components/curveeditor/detail/handleitem.cpp
index 891f6896ea..0fdb00ff1b 100644
--- a/src/plugins/qmldesigner/components/curveeditor/detail/handleitem.cpp
+++ b/src/plugins/qmldesigner/components/curveeditor/detail/handleitem.cpp
@@ -41,8 +41,11 @@ struct HandleGeometry
handle = QRectF(topLeft, -topLeft);
toKeyframe = QLineF(QPointF(0.0, 0.0), -pos);
angle = -toKeyframe.angle() + 45.0;
+ bbox = handle.united(QRectF(-pos, QSizeF(1.0,1.0)));
}
+ QRectF bbox;
+
QRectF handle;
QLineF toKeyframe;
@@ -97,7 +100,7 @@ HandleItem::Slot HandleItem::slot() const
QRectF HandleItem::boundingRect() const
{
HandleGeometry geom(pos(), m_style);
- return geom.handle;
+ return geom.bbox;
}
bool HandleItem::contains(const QPointF &point) const