mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-21 01:59:59 +02:00
QetShapeItem: user can add polyline shape
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3144 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -33,7 +33,8 @@ class QetShapeItem : public QetGraphicsItem
|
||||
Q_ENUMS(ShapeType)
|
||||
enum ShapeType {Line =0,
|
||||
Rectangle =1,
|
||||
Ellipse =2};
|
||||
Ellipse =2,
|
||||
Polyline =3 };
|
||||
|
||||
enum { Type = UserType + 1008 };
|
||||
|
||||
@@ -55,7 +56,8 @@ class QetShapeItem : public QetGraphicsItem
|
||||
|
||||
virtual void editProperty();
|
||||
|
||||
void setP2(QPointF P2);
|
||||
void setP2 (QPointF P2);
|
||||
void setNextPoint (QPointF P);
|
||||
|
||||
QRectF boundingRect() const;
|
||||
QPainterPath shape() const;
|
||||
@@ -74,5 +76,6 @@ class QetShapeItem : public QetGraphicsItem
|
||||
ShapeType m_shapeType;
|
||||
Qt::PenStyle m_shapeStyle;
|
||||
QPointF m_P1, m_P2;
|
||||
QPolygonF m_polygon;
|
||||
};
|
||||
#endif // QETSHAPEITEM_H
|
||||
|
||||
Reference in New Issue
Block a user