mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 09:40:52 +01:00
Added position and folios variables handling to Elements (Master, Slave and Simple) Label
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4514 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -134,10 +134,8 @@ void SlaveElement::updateLabel() {
|
||||
label = elmt -> elementInformations()["label"].toString();
|
||||
XRefProperties xrp = elmt->diagram()->defaultXRefProperties(elmt->kindInformations()["type"].toString());
|
||||
Xreflabel = xrp.slaveLabel();
|
||||
Xreflabel.replace("%f", QString::number(elmt->diagram()->folioIndex()+1));
|
||||
Xreflabel.replace("%F", elmt->diagram() -> border_and_titleblock.folio());
|
||||
Xreflabel.replace("%c", QString::number(elmt->diagram() -> convertPosition(elmt -> scenePos()).number()));
|
||||
Xreflabel.replace("%l", elmt->diagram() -> convertPosition(elmt -> scenePos()).letter());
|
||||
Xreflabel = assignVariables(Xreflabel, elmt);
|
||||
label = assignVariables(label, elmt);
|
||||
}
|
||||
|
||||
// set the new label
|
||||
|
||||
Reference in New Issue
Block a user