mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
element collection widget : highlight unused element in a project.
the feature "clean project" does not clean unused elements yet git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4561 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -691,6 +691,7 @@ void QETDiagramEditor::save() {
|
||||
if (title.isEmpty()) title = "QElectroTech ";
|
||||
QString filePath = (project_view -> project() -> filePath ());
|
||||
statusBar()-> showMessage(tr("Projet %1 enregistré dans le repertoire: %2.").arg(title).arg (filePath), 2000);
|
||||
m_element_collection_widget->highlightUnusedElement();
|
||||
}
|
||||
else {
|
||||
showError(saved);
|
||||
@@ -712,6 +713,7 @@ void QETDiagramEditor::saveAs() {
|
||||
if (title.isEmpty()) title = "QElectroTech ";
|
||||
QString filePath = (project_view -> project() -> filePath ());
|
||||
statusBar()->showMessage(tr("Projet %1 enregistré dans le repertoire: %2.").arg(title).arg (filePath), 2000);
|
||||
m_element_collection_widget->highlightUnusedElement();
|
||||
}
|
||||
else {
|
||||
showError(save_file);
|
||||
|
||||
Reference in New Issue
Block a user