mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Fix bug 164 :
title block editor : show 'projectpath' as available value git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5463 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -257,6 +257,7 @@ void QETProject::setFilePath(const QString &filepath) {
|
|||||||
|
|
||||||
emit(projectFilePathChanged(this, m_file_path));
|
emit(projectFilePathChanged(this, m_file_path));
|
||||||
emit(projectInformationsChanged(this));
|
emit(projectInformationsChanged(this));
|
||||||
|
updateDiagramsFolioData();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1729,6 +1730,7 @@ void QETProject::updateDiagramsFolioData() {
|
|||||||
|
|
||||||
DiagramContext project_wide_properties = project_properties_;
|
DiagramContext project_wide_properties = project_properties_;
|
||||||
project_wide_properties.addValue("projecttitle", title());
|
project_wide_properties.addValue("projecttitle", title());
|
||||||
|
project_wide_properties.addValue("projectpath", filePath());
|
||||||
|
|
||||||
for (int i = 0 ; i < total_folio ; ++ i) {
|
for (int i = 0 ; i < total_folio ; ++ i) {
|
||||||
QString title = m_diagrams_list[i] -> title();
|
QString title = m_diagrams_list[i] -> title();
|
||||||
|
|||||||
@@ -445,6 +445,7 @@ QString TitleBlockTemplateCellWidget::defaultVariablesString() const {
|
|||||||
"<li>%{folio-id} : position du folio dans le projet</li>"
|
"<li>%{folio-id} : position du folio dans le projet</li>"
|
||||||
"<li>%{folio-total} : nombre total de folios dans le projet</li>"
|
"<li>%{folio-total} : nombre total de folios dans le projet</li>"
|
||||||
"<li>%{projecttitle} : titre du projet</li>"
|
"<li>%{projecttitle} : titre du projet</li>"
|
||||||
|
"<li>%{projectpath} : chemin du projet</li>"
|
||||||
"</ul>"
|
"</ul>"
|
||||||
);
|
);
|
||||||
return(def_var_string);
|
return(def_var_string);
|
||||||
|
|||||||
Reference in New Issue
Block a user