mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Improve status bar about save information
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3510 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -627,7 +627,12 @@ void QETDiagramEditor::save() {
|
|||||||
QETResult saved = project_view -> save();
|
QETResult saved = project_view -> save();
|
||||||
if (saved.isOk()) {
|
if (saved.isOk()) {
|
||||||
QETApp::projectsRecentFiles() -> fileWasOpened(project_view -> project() -> filePath());
|
QETApp::projectsRecentFiles() -> fileWasOpened(project_view -> project() -> filePath());
|
||||||
statusBar()->showMessage(tr("Projet enregistr\351"), 2000);
|
|
||||||
|
QString title = (project_view -> project() -> title ());
|
||||||
|
if (title.isEmpty()) title = "QElectroTech ";
|
||||||
|
QString filePath = (project_view -> project() -> filePath ());
|
||||||
|
|
||||||
|
statusBar()->showMessage(tr("Projet %1 enregistr\351 dans le repertoire: %2.").arg(title).arg (filePath), 2000);
|
||||||
} else {
|
} else {
|
||||||
showError(saved);
|
showError(saved);
|
||||||
}
|
}
|
||||||
@@ -643,7 +648,12 @@ void QETDiagramEditor::saveAs() {
|
|||||||
QETResult save_file = project_view -> saveAs();
|
QETResult save_file = project_view -> saveAs();
|
||||||
if (save_file.isOk()) {
|
if (save_file.isOk()) {
|
||||||
QETApp::projectsRecentFiles() -> fileWasOpened(project_view -> project() -> filePath());
|
QETApp::projectsRecentFiles() -> fileWasOpened(project_view -> project() -> filePath());
|
||||||
statusBar()->showMessage(tr("Projet enregistr\351"), 2000);
|
|
||||||
|
QString title = (project_view -> project() -> title ());
|
||||||
|
if (title.isEmpty()) title = "QElectroTech ";
|
||||||
|
QString filePath = (project_view -> project() -> filePath ());
|
||||||
|
|
||||||
|
statusBar()->showMessage(tr("Projet %1 enregistr\351 dans le repertoire: %2.").arg(title).arg (filePath), 2000);
|
||||||
} else {
|
} else {
|
||||||
showError(save_file);
|
showError(save_file);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user