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
This commit is contained in:
ruglory
2009-01-27 01:18:25 +00:00
parent d2eac1cb69
commit f6adb5e773
+6 -1
View File
@@ -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;