27 Line(qreal x1, qreal y1, qreal x2, qreal y2);
32 Object *clone()
const override;
35 float getLinewidth()
const;
36 QPointF
getPos()
const override;
37 QString getProperty(
const QString &name)
const override;
40 void setLinewidth(
float w);
41 void setPos(
const QPointF &pos)
override;
42 void setProperty(
const QString &name,
const QString &value)
override;
45 bool operator==(
const Line &obj)
const;
46 bool operator!=(
const Line &obj)
const;
51 float linewidth = 0.5;
The abstract base class for all objects in a sheet.
Definition: object.h:21
Line()
Construct a null line.
A visual line object.
Definition: line.h:16
QPointF getPos() const override
Return the position of the object in the sheet.
void setPos(const QPointF &pos) override
Set the position of the object in the sheet.