mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 03:10:52 +01:00
New fields titleblock properties %machine and %locmach can now be called
in the element rules autonum git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4628 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -754,6 +754,8 @@ QString Element::assignVariables(QString label, Element *elmt){
|
||||
//Default Variables
|
||||
label.replace("%f", QString::number(elmt->diagram()->folioIndex()+1));
|
||||
label.replace("%F", elmt->diagram() -> border_and_titleblock.folio());
|
||||
label.replace("%M", elmt->diagram() -> border_and_titleblock.machine());
|
||||
label.replace("%LM", elmt->diagram() -> border_and_titleblock.locmach());
|
||||
label.replace("%c", QString::number(elmt->diagram() -> convertPosition(elmt -> scenePos()).number()));
|
||||
label.replace("%l", elmt->diagram() -> convertPosition(elmt -> scenePos()).letter());
|
||||
label.replace("%id", QString::number(elmt->diagram()->folioIndex()+1));
|
||||
|
||||
Reference in New Issue
Block a user