Add variable for properties %machine and %locmach

can now be called in the xref propertie widget (run now for slave and
master)


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4632 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2016-08-17 06:04:37 +00:00
parent 1f627708ce
commit a0c55ea4ad
2 changed files with 4 additions and 2 deletions

View File

@@ -95,6 +95,8 @@ QString CrossRefItem::elementPositionText(const Element *elmt, const bool &add_p
txt = xrp.masterLabel();
txt.replace("%f", QString::number(elmt->diagram()->folioIndex()+1));
txt.replace("%F", elmt->diagram() -> border_and_titleblock.folio());
txt.replace("%M", elmt->diagram() -> border_and_titleblock.machine());
txt.replace("%LM", elmt->diagram() -> border_and_titleblock.locmach());
txt.replace("%c", QString::number(elmt->diagram() -> convertPosition(elmt -> scenePos()).number()));
txt.replace("%l", elmt->diagram() -> convertPosition(elmt -> scenePos()).letter());

View File

@@ -200,8 +200,8 @@
%F: le label de folio
%l : le numéro de ligne
%c : le numéro de colonne
%M: Installation (esclave seulement)
%LM: localisation (esclave seulement)</string>
%M: Installation
%LM: Localisation </string>
</property>
</widget>
</item>