text field editor: minor bug fix

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3397 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-10-25 08:32:47 +00:00
parent 4746d097eb
commit 52f71b89c3

View File

@@ -145,17 +145,19 @@ void TextFieldEditor::updateTextFieldRotationAngle() { addChangePartCommand(tr("
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());
rotation_angle_ -> setValue (part -> property ("rotation").toDouble());
m_tagg_cb -> setCurrentIndex (m_tagg_cb -> findData (part -> property("tagg")));
activeConnections(true);