From f6adb5e773df2b955bbda72635845aa5edb2c8f7 Mon Sep 17 00:00:00 2001 From: ruglory Date: Tue, 27 Jan 2009 01:18:25 +0000 Subject: [PATCH] Round text reading bug fixed (did not read angle) git-svn-id: https://svn.code.sf.net/p/qlscribe/svn/trunk@20 cac9541e-1b8d-4bfa-827e-589bba606050 --- src/qgraphicsroundtextitem.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/qgraphicsroundtextitem.cpp b/src/qgraphicsroundtextitem.cpp index a8192a7..99beef1 100644 --- a/src/qgraphicsroundtextitem.cpp +++ b/src/qgraphicsroundtextitem.cpp @@ -16,7 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - $Id:$ */ + $Id$ */ #include "qgraphicsroundtextitem.h" #include "qdialogroundtext.h" @@ -287,6 +287,11 @@ void QShapeControllerRoundText::readData( const QString &element, return; } + if( element == "angle" ) { + textItem->setAngle( data.toDouble() ); + return; + } + if( element == "alignment" ) { textItem->setAlignment( Qt::Alignment( data.toInt() ) ); return;