mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Revert "Try Clazy fix-its"
Segfault on old Qt versions!
This reverts commit dba7caed30.
This commit is contained in:
@@ -929,10 +929,7 @@ void QETDiagramEditor::save()
|
||||
QString title = (project_view -> project() -> title ());
|
||||
if (title.isEmpty()) title = "QElectroTech ";
|
||||
QString filePath = (project_view -> project() -> filePath ());
|
||||
statusBar()->showMessage(
|
||||
tr("Projet %1 enregistré dans le repertoire: %2.")
|
||||
.arg(title, filePath),
|
||||
2000);
|
||||
statusBar()-> showMessage(tr("Projet %1 enregistré dans le repertoire: %2.").arg(title).arg (filePath), 2000);
|
||||
m_element_collection_widget->highlightUnusedElement();
|
||||
}
|
||||
else {
|
||||
@@ -955,10 +952,7 @@ void QETDiagramEditor::saveAs()
|
||||
QString title = (project_view -> project() -> title ());
|
||||
if (title.isEmpty()) title = "QElectroTech ";
|
||||
QString filePath = (project_view -> project() -> filePath ());
|
||||
statusBar()->showMessage(
|
||||
tr("Projet %1 enregistré dans le repertoire: %2.")
|
||||
.arg(title, filePath),
|
||||
2000);
|
||||
statusBar()->showMessage(tr("Projet %1 enregistré dans le repertoire: %2.").arg(title).arg (filePath), 2000);
|
||||
m_element_collection_widget->highlightUnusedElement();
|
||||
}
|
||||
else {
|
||||
@@ -1620,7 +1614,7 @@ void QETDiagramEditor::slot_updateComplexActions()
|
||||
<< m_rotate_selection
|
||||
<< m_edit_selection
|
||||
<< m_group_selected_texts;
|
||||
for (QAction* action : std::as_const(action_list))
|
||||
for(QAction *action : action_list)
|
||||
action->setEnabled(false);
|
||||
|
||||
return;
|
||||
@@ -1652,13 +1646,13 @@ void QETDiagramEditor::slot_updateComplexActions()
|
||||
QList<ElementTextItemGroup *> groups = DiagramContent(diagram_).selectedTextsGroup();
|
||||
int selected_texts = texts.count();
|
||||
int selected_conductor_texts = 0;
|
||||
for (DiagramTextItem* dti : std::as_const(texts))
|
||||
for(DiagramTextItem *dti : texts)
|
||||
{
|
||||
if(dti->type() == ConductorTextItem::Type)
|
||||
selected_conductor_texts++;
|
||||
}
|
||||
int selected_dynamic_elmt_text = 0;
|
||||
for (DiagramTextItem* dti : std::as_const(texts))
|
||||
for(DiagramTextItem *dti : texts)
|
||||
{
|
||||
if(dti->type() == DynamicElementTextItem::Type)
|
||||
selected_dynamic_elmt_text++;
|
||||
@@ -1671,7 +1665,7 @@ void QETDiagramEditor::slot_updateComplexActions()
|
||||
{
|
||||
Element *elmt = deti_list.first()->parentElement();
|
||||
bool ok = true;
|
||||
for (DynamicElementTextItem* deti : std::as_const(deti_list))
|
||||
for(DynamicElementTextItem *deti : deti_list)
|
||||
{
|
||||
if(elmt != deti->parentElement())
|
||||
ok = false;
|
||||
|
||||
Reference in New Issue
Block a user