[qet] [3397] text field editor: minor bug fix

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


Revision: 3397
Author:   blacksun
Date:     2014-10-25 10:32:47 +0200 (Sat, 25 Oct 2014)
Log Message:
-----------
text field editor: minor bug fix

Modified Paths:
--------------
    trunk/sources/editor/textfieldeditor.cpp

Modified: trunk/sources/editor/textfieldeditor.cpp
===================================================================
--- trunk/sources/editor/textfieldeditor.cpp	2014-10-24 18:51:12 UTC (rev 3396)
+++ trunk/sources/editor/textfieldeditor.cpp	2014-10-25 08:32:47 UTC (rev 3397)
@@ -145,19 +145,21 @@
 void TextFieldEditor::updateTagg() { addChangePartCommand(tr("tagg"), part, "tagg", m_tagg_cb->itemData(m_tagg_cb->currentIndex()).toString());}
 
 /**
-	Met a jour le formulaire d'edition
-*/
+ * @brief TextFieldEditor::updateForm
+ * Update the value of editor widget
+ */
 void TextFieldEditor::updateForm() {
 	if (!part) return;
 	activeConnections(false);
-	qle_x     -> setValue(part->property("x").toReal());
-	qle_y     -> setValue(part->property("y").toReal());
-	qle_text  -> setText(part -> property("text").toString());
-	font_size -> setValue(part -> property("size").toInt());
-	rotate	  -> setChecked(!part -> property("rotate").toBool());
-	rotation_angle_ -> setValue(part -> property("rotation angle").toDouble());
-	m_tagg_cb->setCurrentIndex(m_tagg_cb->findData(part->property("tagg")));
 
+	qle_x           -> setValue        (part      -> property ("x").toReal());
+	qle_y           -> setValue        (part      -> property ("y").toReal());
+	qle_text        -> setText         (part      -> property ("text").toString());
+	font_size       -> setValue        (part      -> property ("size").toInt());
+	rotate	        -> setChecked      (!part     -> property ("rotate").toBool());
+	rotation_angle_ -> setValue        (part      -> property ("rotation").toDouble());
+	m_tagg_cb       -> setCurrentIndex (m_tagg_cb -> findData (part -> property("tagg")));
+
 	activeConnections(true);
 }
 


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