[qet] qet/qet: [5225] forget file from previous commit |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 5225
Author: blacksun
Date: 2018-02-01 19:42:26 +0100 (Thu, 01 Feb 2018)
Log Message:
-----------
forget file from previous commit
Modified Paths:
--------------
trunk/sources/qetgraphicsitem/masterelement.cpp
trunk/sources/qetgraphicsitem/masterelement.h
Modified: trunk/sources/qetgraphicsitem/masterelement.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/masterelement.cpp 2018-02-01 18:40:12 UTC (rev 5224)
+++ trunk/sources/qetgraphicsitem/masterelement.cpp 2018-02-01 18:42:26 UTC (rev 5225)
@@ -118,6 +118,19 @@
}
/**
+ * @brief MasterElement::XrefBoundingRect
+ * @return The bounding rect of the Xref, if this element
+ * haven't got a xref, return a default QRectF
+ */
+QRectF MasterElement::XrefBoundingRect() const
+{
+ if(m_Xref_item)
+ return m_Xref_item->boundingRect();
+ else
+ return QRectF();
+}
+
+/**
* @brief MasterElement::updateLabel
* update label of this element
* and the comment item if he's displayed.
Modified: trunk/sources/qetgraphicsitem/masterelement.h
===================================================================
--- trunk/sources/qetgraphicsitem/masterelement.h 2018-02-01 18:40:12 UTC (rev 5224)
+++ trunk/sources/qetgraphicsitem/masterelement.h 2018-02-01 18:42:26 UTC (rev 5225)
@@ -40,6 +40,7 @@
void unlinkAllElements () override;
void unlinkElement (Element *elmt) override;
void initLink (QETProject *project) override;
+ QRectF XrefBoundingRect() const;
public slots:
void updateLabel(DiagramContext old_info, DiagramContext new_info);