diff options
Diffstat (limited to 'Swift/QtUI/Whiteboard/FreehandLineItem.h')
-rw-r--r-- | Swift/QtUI/Whiteboard/FreehandLineItem.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Swift/QtUI/Whiteboard/FreehandLineItem.h b/Swift/QtUI/Whiteboard/FreehandLineItem.h index aa9fdff..e995cab 100644 --- a/Swift/QtUI/Whiteboard/FreehandLineItem.h +++ b/Swift/QtUI/Whiteboard/FreehandLineItem.h @@ -15,6 +15,7 @@ using namespace std; namespace Swift { class FreehandLineItem : public QGraphicsItem { public: + enum {Type = UserType + 1}; FreehandLineItem(QGraphicsItem* parent = 0); QRectF boundingRect() const; void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); @@ -23,10 +24,12 @@ namespace Swift { bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; void setPen(const QPen& pen); QPen pen() const; + QVector<QPointF> points() const; + int type() const; private: - QPen _pen; - QVector<QPointF> points; + QPen pen_; + QVector<QPointF> points_; QRectF boundRect; }; } |