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
|
||||
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()
|
||||
|
@ -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 {
|
||||
|
@ -590,7 +590,7 @@ void QETDiagramEditor::setUpActions()
|
||||
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);
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user