simple element : comment is snapped and centered to the bottom of text tagged "label"

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3432 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-11-02 14:12:38 +00:00
parent 305b8845cc
commit 822da4fe66
5 changed files with 161 additions and 58 deletions

View File

@@ -45,14 +45,14 @@ class CommentItem : public QGraphicsObject
protected:
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent * event );
virtual bool setTextParent ();
private:
Element *m_element;
QPicture m_picture;
QRectF m_bounding_rect;
QString m_comment;
bool m_show;
bool m_text_parent;
};
#endif // COMMENTITEM_H