Xref: Change Vertical Offset of Cross References

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4547 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
dfochi
2016-06-07 17:01:59 +00:00
parent 46464a67a6
commit 373f3bf5a6
8 changed files with 70 additions and 8 deletions

View File

@@ -57,8 +57,10 @@ QRectF CommentItem::boundingRect() const {
void CommentItem::autoPos() {
if (m_text_parent)
centerToParentBottom(this);
else
centerToBottomDiagram(this, m_element);
else {
XRefProperties xrp = m_element->diagram()->defaultXRefProperties(m_element->kindInformations()["type"].toString());
centerToBottomDiagram(this, m_element, xrp.offset());
}
}
/**