[qet] qet/qet: [5463] Fix bug 164 :

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


Revision: 5463
Author:   scorpio810
Date:     2018-08-05 17:04:15 +0200 (Sun, 05 Aug 2018)
Log Message:
-----------
Fix bug 164 :
title block editor : show 'projectpath' as available value

Modified Paths:
--------------
    trunk/sources/qetproject.cpp
    trunk/sources/titleblock/templatecellwidget.cpp

Modified: trunk/sources/qetproject.cpp
===================================================================
--- trunk/sources/qetproject.cpp	2018-08-03 16:35:40 UTC (rev 5462)
+++ trunk/sources/qetproject.cpp	2018-08-05 15:04:15 UTC (rev 5463)
@@ -257,6 +257,7 @@
 	
 	emit(projectFilePathChanged(this, m_file_path));
 	emit(projectInformationsChanged(this));
+	updateDiagramsFolioData();
 }
 
 /**
@@ -1729,6 +1730,7 @@
 	
 	DiagramContext project_wide_properties = project_properties_;
 	project_wide_properties.addValue("projecttitle", title());
+	project_wide_properties.addValue("projectpath", filePath());
 	
 	for (int i = 0 ; i < total_folio ; ++ i) {
 		QString title = m_diagrams_list[i] -> title();

Modified: trunk/sources/titleblock/templatecellwidget.cpp
===================================================================
--- trunk/sources/titleblock/templatecellwidget.cpp	2018-08-03 16:35:40 UTC (rev 5462)
+++ trunk/sources/titleblock/templatecellwidget.cpp	2018-08-05 15:04:15 UTC (rev 5463)
@@ -445,6 +445,7 @@
 		"<li>%{folio-id} : position du folio dans le projet</li>"
 		"<li>%{folio-total} : nombre total de folios dans le projet</li>"
 		"<li>%{projecttitle} : titre du projet</li>"
+		"<li>%{projectpath} : chemin du projet</li>"
 		"</ul>"
 	);
 	return(def_var_string);


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