diff --git a/sources/diagramevent/diagrameventaddelement.cpp b/sources/diagramevent/diagrameventaddelement.cpp index ac1580dd4..c6c8bdb4d 100644 --- a/sources/diagramevent/diagrameventaddelement.cpp +++ b/sources/diagramevent/diagrameventaddelement.cpp @@ -220,7 +220,7 @@ bool DiagramEventAddElement::buildElement() /** @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. */ void DiagramEventAddElement::addElement() diff --git a/sources/editor/graphicspart/partdynamictextfield.cpp b/sources/editor/graphicspart/partdynamictextfield.cpp index bcc25435b..1dd22c4d9 100644 --- a/sources/editor/graphicspart/partdynamictextfield.cpp +++ b/sources/editor/graphicspart/partdynamictextfield.cpp @@ -216,7 +216,7 @@ void PartDynamicTextField::fromXml(const QDomElement &dom_elmt) { setFont(font_); } 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())); } else { diff --git a/sources/qetdiagrameditor.cpp b/sources/qetdiagrameditor.cpp index ad941588f..e50b158e4 100644 --- a/sources/qetdiagrameditor.cpp +++ b/sources/qetdiagrameditor.cpp @@ -585,12 +585,12 @@ void QETDiagramEditor::setUpActions() connect(&m_row_column_actions_group, &QActionGroup::triggered, this, &QETDiagramEditor::rowColumnGroupTriggered); //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_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_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_rotate_selection->setShortcut(Qt::Key_Space); diff --git a/sources/qetgraphicsitem/element.cpp b/sources/qetgraphicsitem/element.cpp index ba31b815e..1e8d010de 100644 --- a/sources/qetgraphicsitem/element.cpp +++ b/sources/qetgraphicsitem/element.cpp @@ -632,8 +632,8 @@ DynamicElementTextItem *Element::parseDynamicText( const QDomElement &dom_element) { 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 - //wa call fromXml, we just change the tagg name (.elmt = dynamic_text, .qet = dynamic_elmt_text) + //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 + //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) QDomElement dom(dom_element.cloneNode(true).toElement());