[qet] qet/qet: [5343] fix bug

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5343
Author:   blacksun
Date:     2018-04-28 15:56:04 +0200 (Sat, 28 Apr 2018)
Log Message:
-----------
fix bug

Modified Paths:
--------------
    trunk/sources/conductorproperties.cpp
    trunk/sources/qetgraphicsitem/conductor.cpp

Modified: trunk/sources/conductorproperties.cpp
===================================================================
--- trunk/sources/conductorproperties.cpp	2018-04-28 13:35:23 UTC (rev 5342)
+++ trunk/sources/conductorproperties.cpp	2018-04-28 13:56:04 UTC (rev 5343)
@@ -392,8 +392,8 @@
 	horiz_rotate_text    = settings.value((prefix + "horizrotatetext"), "0").toDouble();
 	
 	QMetaEnum me = QMetaEnum::fromType<Qt::Alignment>();
-	m_horizontal_alignment = Qt::Alignment(me.keyToValue(settings.value((prefix + "horizontal-alignment", "AlignBottom")).toString().toStdString().data()));
-	m_vertical_alignment = Qt::Alignment(me.keyToValue(settings.value((prefix + "vertical-alignment", "AlignRight")).toString().toStdString().data()));
+	m_horizontal_alignment = Qt::Alignment(me.keyToValue(settings.value(prefix + "horizontal-alignment", "AlignBottom").toString().toStdString().data()));
+	m_vertical_alignment = Qt::Alignment(me.keyToValue(settings.value(prefix + "vertical-alignment", "AlignRight").toString().toStdString().data()));
 	
 	readStyle(settings.value(prefix + "style").toString());
 }

Modified: trunk/sources/qetgraphicsitem/conductor.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/conductor.cpp	2018-04-28 13:35:23 UTC (rev 5342)
+++ trunk/sources/qetgraphicsitem/conductor.cpp	2018-04-28 13:56:04 UTC (rev 5343)
@@ -1324,7 +1324,6 @@
 		{
 			if(rotation == Qt::Vertical)
 			{
-				qWarning() << "v";
 				if(m_properties.m_vertical_alignment == Qt::AlignRight)
 					m_text_item->setX(m_text_item->x()+1);
 				else if (m_properties.m_vertical_alignment == Qt::AlignLeft)


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/