mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-06-11 13:43:13 +02:00
Compare commits
4 Commits
e371fe9845
...
5ba984be56
| Author | SHA1 | Date | |
|---|---|---|---|
| 5ba984be56 | |||
| ab03530a14 | |||
| 1b671990ee | |||
| ce18bd1666 |
+1
-1
Submodule elements updated: 789d3fef8b...96b1b5eb60
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>"
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user