mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user