26 Line(
int x1,
int y1,
int x2,
int y2, QColor color,
int penWidth);
28 void draw(QPainter *painter)
override;
Base class for elements that can be drawn on display.
Definition: shape.h:22
Line(int x1, int y1, int x2, int y2, QColor color, int penWidth)
Line defined by its end points (x1,y1) and (x2, y2).
Definition: line.cpp:19
Presents a line to draw on display.
Definition: line.h:22
Definition: trikCommunicator.h:27
bool equals(const Shape *other) const override
Checks whether to shapes are equal.
Definition: line.cpp:32
void draw(QPainter *painter) override
Draws a shape with a given painter.
Definition: line.cpp:26