mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-04 20:59:59 +01:00
Display Location Field in Diagram and assign Folio Variables to Element's Information Fields
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4546 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -161,9 +161,12 @@ void MasterElement::updateLabel(DiagramContext old_info, DiagramContext new_info
|
||||
}
|
||||
else {
|
||||
QString comment = elementInformations()["comment"].toString();
|
||||
bool must_show = elementInformations().keyMustShow("comment");
|
||||
bool must_show_comment = elementInformations().keyMustShow("comment");
|
||||
|
||||
if (! (comment.isEmpty() || !must_show)) {
|
||||
QString location = elementInformations()["location"].toString();
|
||||
bool must_show_location = elementInformations().keyMustShow("location");
|
||||
|
||||
if (! (comment.isEmpty() || !must_show_comment) || !(location.isEmpty() || !must_show_location)) {
|
||||
cri_ = new CrossRefItem(this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user