summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMateusz Piekos <mateuszpiekos@gmail.com>2012-06-26 12:23:47 (GMT)
committerMateusz Piekos <mateuszpiekos@gmail.com>2012-06-26 12:23:47 (GMT)
commit60076b8e5dc557716e82d7588ff9a99247e485bf (patch)
tree9d8cc54bed7036f93098cf60b76288217c1f06e3 /Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp
parent99bc38e1d21b0081618485e49b0ab1bcd5bef22f (diff)
downloadswift-contrib-60076b8e5dc557716e82d7588ff9a99247e485bf.zip
swift-contrib-60076b8e5dc557716e82d7588ff9a99247e485bf.tar.bz2
Added handling of text elements
Diffstat (limited to 'Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp')
-rw-r--r--Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp
index 55d3479..6e259a2 100644
--- a/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp
+++ b/Swift/QtUI/Whiteboard/QtWhiteboardWindow.cpp
@@ -266,7 +266,7 @@ namespace Swift {
QPointF point = textItem->pos();
WhiteboardTextElement::ref element = boost::make_shared<WhiteboardTextElement>(point.x(), point.y());
element->setText(textItem->toPlainText().toStdString());
-
+ element->setSize(textItem->font().pointSize());
QColor color = textItem->defaultTextColor();
element->setColor(Color(color.red(), color.green(), color.blue(), color.alpha()));