mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
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:
@@ -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());
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user