#ifndef LINE_H #define LINE_H #include #include #include class Line : public QLine { public: Line(); Line(const Line &other); bool isHit(const QPoint & clickPoint); void setSelected(bool selected); void draw(QPainter * painter); private: bool m_selected; }; #endif // LINE_H