[qet] [3510] Improve status bar about save information

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3510
Author:   scorpio810
Date:     2014-11-24 03:51:08 +0100 (Mon, 24 Nov 2014)
Log Message:
-----------
Improve status bar about save information

Modified Paths:
--------------
    trunk/sources/qetdiagrameditor.cpp

Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp	2014-11-23 20:10:09 UTC (rev 3509)
+++ trunk/sources/qetdiagrameditor.cpp	2014-11-24 02:51:08 UTC (rev 3510)
@@ -627,7 +627,12 @@
 		QETResult saved = project_view -> save();
 		if (saved.isOk()) {
 			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 {
 			showError(saved);
 		}
@@ -643,7 +648,12 @@
 		QETResult save_file = project_view -> saveAs();
 		if (save_file.isOk()) {
 			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 {
 			showError(save_file);
 		}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/