Compare commits

...

4 Commits

Author SHA1 Message Date
plc-user 5ba984be56 add copyright-sign to about-dialog 2025-05-30 10:49:32 +02:00
Laurent Trinques ab03530a14 git submodule update --remote elements 2025-05-30 10:01:03 +02:00
plc-user 1b671990ee prevent crash, when adding text to element in diagram-editor 2025-05-30 09:42:22 +02:00
plc-user ce18bd1666 use "%" for string-concatenation (less memory-usage) 2025-05-30 09:40:11 +02:00
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -64,8 +64,8 @@ bool ConductorNumExport::toCsv()
if(!QFile::remove(filename))
{
QMessageBox::critical(m_parent_widget, QObject::tr("Erreur"),
QObject::tr("Impossible de remplacer le fichier!\n\n")+
"Destination : "+filename+"\n");
QObject::tr("Impossible de remplacer le fichier!\n\n") %
"Destination : " % filename % "\n");
return false;
}
}
+1 -1
View File
@@ -60,7 +60,7 @@ void AboutQETDialog::setAbout()
{
QString str = tr("QElectroTech, une application de réalisation de schémas électriques.", "about tab, description line") +
"<br><br> 2006-"+QDate::currentDate().toString("yyyy")+
"<br><br>© 2006-"+QDate::currentDate().toString("yyyy")+
tr(" Les développeurs de QElectroTech", "about tab, developers line") +
"<br><br>"
"<a href=\"https://qelectrotech.org/\">https://qelectrotech.org/</a>"
+2 -2
View File
@@ -144,9 +144,9 @@ void DynamicElementTextItemEditor::setCurrentText(DynamicElementTextItem *text)
QModelIndex index = m_model->indexFromText(text);
if(!index.isValid())
return;
ui->m_tree_view->expand(index);
ui->m_tree_view->expand(index.QModelIndex::model()->index(0,0));
// ui->m_tree_view->expand(index.QModelIndex::model()->index(0,0)); // commented by plc-user: leads to crash, when other textitem was selected before
ui->m_tree_view->setCurrentIndex(index);
ui->m_remove_selection->setEnabled(true);
}