Basic Shapes: Dynamic Preview added when constructing the shape.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2876 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
abhishekm71
2014-02-24 14:22:26 +00:00
parent 389d4baccf
commit 25aa9603fc
3 changed files with 30 additions and 42 deletions

View File

@@ -16,6 +16,12 @@ class QetShapeItem : public QetGraphicsItem
QetShapeItem(QPointF, QPointF, ShapeType, bool lineAngle = false, QGraphicsItem *parent = 0);
virtual ~QetShapeItem();
void setStyle(Qt::PenStyle);
Qt::PenStyle getStyle() const { return _shapeStyle; }
ShapeType getType() const { return _shapeType; }
void setBoundingRect(QRectF rec) { _boundingRect = rec; }
void setLineAngle(bool lineAngle){ _lineAngle = lineAngle; }
private:
ShapeType _shapeType;
Qt::PenStyle _shapeStyle;
@@ -23,7 +29,6 @@ class QetShapeItem : public QetGraphicsItem
bool _lineAngle; // false if line from topleft corner to bottomright corner
// and true if line from topright corner to bottomleft corner
void setStyle(Qt::PenStyle);
virtual void editProperty() {}
protected: