diff options
author | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-07-17 09:59:17 (GMT) |
---|---|---|
committer | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-07-17 09:59:17 (GMT) |
commit | 1f8e319e256ac15438d63080d11a860dfa16431c (patch) | |
tree | d20cfb5a3f290020f4e6ffc9052b7894f933fb8d /Swift/QtUI/Whiteboard/FreehandLineItem.cpp | |
parent | b2e11d7f32db65a6be001dfdf74b74f16f4c9ec3 (diff) | |
download | swift-contrib-1f8e319e256ac15438d63080d11a860dfa16431c.zip swift-contrib-1f8e319e256ac15438d63080d11a860dfa16431c.tar.bz2 |
Added handling of elements position updates
Diffstat (limited to 'Swift/QtUI/Whiteboard/FreehandLineItem.cpp')
-rw-r--r-- | Swift/QtUI/Whiteboard/FreehandLineItem.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/Whiteboard/FreehandLineItem.cpp b/Swift/QtUI/Whiteboard/FreehandLineItem.cpp index bd53843..92c4005 100644 --- a/Swift/QtUI/Whiteboard/FreehandLineItem.cpp +++ b/Swift/QtUI/Whiteboard/FreehandLineItem.cpp @@ -32,6 +32,7 @@ namespace Swift { void FreehandLineItem::setStartPoint(QPointF point) { + prepareGeometryChange(); points_.clear(); points_.append(point); QRectF rect(point, point); @@ -41,6 +42,8 @@ namespace Swift { void FreehandLineItem::lineTo(QPointF point) { + prepareGeometryChange(); + qreal x1, x2, y1, y2; x1 = points_.last().x(); x2 = point.x(); |