mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-01 09:09:58 +01:00
Add new entry if the main QElectroTech dialog conf, to set a defaut font and rotation of independent text item.
Revamp some GUI git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5767 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -43,8 +43,8 @@ DynamicElementTextItem::DynamicElementTextItem(Element *parent_element) :
|
||||
setText(tr("Texte"));
|
||||
setParentItem(parent_element);
|
||||
QSettings settings;
|
||||
setRotation(settings.value("dynamic_rotation", 0).toInt());
|
||||
setTextWidth(settings.value("dynamic_with", -1).toInt());
|
||||
setRotation(settings.value("dynamic_text_rotation", 0).toInt());
|
||||
setTextWidth(settings.value("dynamic_text_widht", -1).toInt());
|
||||
connect(this, &DynamicElementTextItem::textEdited, [this](const QString &old_str, const QString &new_str)
|
||||
{
|
||||
if(this->m_parent_element && this->m_parent_element->diagram())
|
||||
@@ -53,7 +53,6 @@ DynamicElementTextItem::DynamicElementTextItem(Element *parent_element) :
|
||||
undo->setText(tr("Éditer un texte d'élément"));
|
||||
this->m_parent_element->diagram()->undoStack().push(undo);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
//Option when text is displayed in multiple line
|
||||
|
||||
Reference in New Issue
Block a user