mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 22:00:35 +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,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);
|
||||
|
||||
Reference in New Issue
Block a user