mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
minor: whitespace and comments
This commit is contained in:
parent
dc836248f0
commit
c2a2e5f5eb
@ -220,7 +220,7 @@ bool DiagramEventAddElement::buildElement()
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief DiagramEventAddElement::addElement
|
@brief DiagramEventAddElement::addElement
|
||||||
Add an element at the current pos en current rotation,
|
Add an element at the current pos and current rotation,
|
||||||
if project autoconductor option is enable, and the element can be wired, we do it.
|
if project autoconductor option is enable, and the element can be wired, we do it.
|
||||||
*/
|
*/
|
||||||
void DiagramEventAddElement::addElement()
|
void DiagramEventAddElement::addElement()
|
||||||
|
@ -216,7 +216,7 @@ void PartDynamicTextField::fromXml(const QDomElement &dom_elmt) {
|
|||||||
setFont(font_);
|
setFont(font_);
|
||||||
}
|
}
|
||||||
else if (dom_elmt.hasAttribute("font_size")) {
|
else if (dom_elmt.hasAttribute("font_size")) {
|
||||||
// plc-user: for convenience - to support font-size from old 'input' ?")
|
// to support font-size from old 'input'
|
||||||
setFont(QETApp::dynamicTextsItemFont(dom_elmt.attribute("font_size", QString::number(9)).toInt()));
|
setFont(QETApp::dynamicTextsItemFont(dom_elmt.attribute("font_size", QString::number(9)).toInt()));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -585,12 +585,12 @@ void QETDiagramEditor::setUpActions()
|
|||||||
connect(&m_row_column_actions_group, &QActionGroup::triggered, this, &QETDiagramEditor::rowColumnGroupTriggered);
|
connect(&m_row_column_actions_group, &QActionGroup::triggered, this, &QETDiagramEditor::rowColumnGroupTriggered);
|
||||||
|
|
||||||
//Selections Actions (related to a selected item)
|
//Selections Actions (related to a selected item)
|
||||||
m_delete_selection = m_selection_actions_group.addAction( QET::Icons::EditDelete, tr("Supprimer") );
|
m_delete_selection = m_selection_actions_group.addAction( QET::Icons::EditDelete, tr("Supprimer") );
|
||||||
m_rotate_selection = m_selection_actions_group.addAction( QET::Icons::TransformRotate, tr("Pivoter") );
|
m_rotate_selection = m_selection_actions_group.addAction( QET::Icons::TransformRotate, tr("Pivoter") );
|
||||||
m_rotate_texts = m_selection_actions_group.addAction( QET::Icons::ObjectRotateRight, tr("Orienter les textes") );
|
m_rotate_texts = m_selection_actions_group.addAction( QET::Icons::ObjectRotateRight, tr("Orienter les textes") );
|
||||||
m_find_element = m_selection_actions_group.addAction( QET::Icons::ZoomDraw, tr("Retrouver dans le panel") );
|
m_find_element = m_selection_actions_group.addAction( QET::Icons::ZoomDraw, tr("Retrouver dans le panel") );
|
||||||
m_edit_selection = m_selection_actions_group.addAction( QET::Icons::ElementEdit, tr("Éditer l'item sélectionné") );
|
m_edit_selection = m_selection_actions_group.addAction( QET::Icons::ElementEdit, tr("Éditer l'item sélectionné") );
|
||||||
m_group_selected_texts = m_selection_actions_group.addAction(QET::Icons::textGroup, tr("Grouper les textes sélectionnés"));
|
m_group_selected_texts = m_selection_actions_group.addAction( QET::Icons::textGroup, tr("Grouper les textes sélectionnés"));
|
||||||
|
|
||||||
m_delete_selection->setShortcut(Qt::Key_Delete);
|
m_delete_selection->setShortcut(Qt::Key_Delete);
|
||||||
m_rotate_selection->setShortcut(Qt::Key_Space);
|
m_rotate_selection->setShortcut(Qt::Key_Space);
|
||||||
|
@ -632,8 +632,8 @@ DynamicElementTextItem *Element::parseDynamicText(
|
|||||||
const QDomElement &dom_element)
|
const QDomElement &dom_element)
|
||||||
{
|
{
|
||||||
DynamicElementTextItem *deti = new DynamicElementTextItem(this);
|
DynamicElementTextItem *deti = new DynamicElementTextItem(this);
|
||||||
//Because the xml description of a .elmt file is the same as how a dynamic text field is save to xml in a .qet file
|
//Because the xml description of a .elmt file is the same as how a dynamic text field is saved to xml in a .qet file
|
||||||
//wa call fromXml, we just change the tagg name (.elmt = dynamic_text, .qet = dynamic_elmt_text)
|
//we call fromXml, we just change the tagg name (.elmt = dynamic_text, .qet = dynamic_elmt_text)
|
||||||
//and the uuid (because the uuid, is the uuid of the description and not the uuid of instantiated dynamic text field)
|
//and the uuid (because the uuid, is the uuid of the description and not the uuid of instantiated dynamic text field)
|
||||||
|
|
||||||
QDomElement dom(dom_element.cloneNode(true).toElement());
|
QDomElement dom(dom_element.cloneNode(true).toElement());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user