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,18 +145,20 @@ void TextFieldEditor::updateTextFieldRotationAngle() { addChangePartCommand(tr("
void TextFieldEditor::updateTagg() { addChangePartCommand(tr("tagg"), part, "tagg", m_tagg_cb->itemData(m_tagg_cb->currentIndex()).toString());} 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() { void TextFieldEditor::updateForm() {
if (!part) return; if (!part) return;
activeConnections(false); activeConnections(false);
qle_x -> setValue(part->property("x").toReal());
qle_y -> setValue(part->property("y").toReal()); qle_x -> setValue (part -> property ("x").toReal());
qle_text -> setText(part -> property("text").toString()); qle_y -> setValue (part -> property ("y").toReal());
font_size -> setValue(part -> property("size").toInt()); qle_text -> setText (part -> property ("text").toString());
rotate -> setChecked(!part -> property("rotate").toBool()); font_size -> setValue (part -> property ("size").toInt());
rotation_angle_ -> setValue(part -> property("rotation angle").toDouble()); rotate -> setChecked (!part -> property ("rotate").toBool());
m_tagg_cb->setCurrentIndex(m_tagg_cb->findData(part->property("tagg"))); rotation_angle_ -> setValue (part -> property ("rotation").toDouble());
m_tagg_cb -> setCurrentIndex (m_tagg_cb -> findData (part -> property("tagg")));
activeConnections(true); activeConnections(true);
} }