Master element : comment is displayed even if there isn't slave linked

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3414 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-10-28 15:45:28 +00:00
parent 23457271e6
commit cf887b8c3c
7 changed files with 117 additions and 33 deletions

View File

@@ -21,25 +21,35 @@
#include "customelement.h"
class CrossRefItem;
class CommentItem;
/**
* @brief The MasterElement class
* This class is a custom element, with extended behavior
* to be a master element. Master element can be linked with slave element
* and display a cross ref item for know with what other element he is linked
*/
class MasterElement : public CustomElement
{
Q_OBJECT
public:
explicit MasterElement(const ElementsLocation &, QGraphicsItem * = 0, Diagram * = 0, int * = 0);
~MasterElement();
virtual void linkToElement(Element *elmt);
virtual void unlinkAllElements();
virtual void unlinkElement(Element *elmt);
explicit MasterElement(const ElementsLocation &, QGraphicsItem * = 0, Diagram * = 0, int * = 0);
~MasterElement();
virtual void linkToElement (Element *elmt);
virtual void unlinkAllElements ();
virtual void unlinkElement (Element *elmt);
virtual void initLink (QETProject *project);
signals:
public slots:
void updateLabel();
void updateLabel();
private:
CrossRefItem *cri_;
CrossRefItem *cri_;
CommentItem *m_ci;
};
#endif // MASTERELEMENT_H