mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-05 20:20:52 +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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user