mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-03 03:49:59 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user