summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-07-17 09:59:17 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-07-17 09:59:17 (GMT)
commit1f8e319e256ac15438d63080d11a860dfa16431c (patch)
treed20cfb5a3f290020f4e6ffc9052b7894f933fb8d /Swift/QtUI/Whiteboard/FreehandLineItem.cpp
parentb2e11d7f32db65a6be001dfdf74b74f16f4c9ec3 (diff)
downloadswift-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.cpp3
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();