1 /* This file is part of Step.
2  *   Copyright (C) 2007 Vladimir Kuznetsov <ks.vladimir@gmail.com>
3  *
4  *   Step is free software; you can redistribute it and/or modify
5  *   it under the terms of the GNU General Public License as published by
6  *   the Free Software Foundation; either version 2 of the License, or
7  *   (at your option) any later version.
8  *
9  *   Step is distributed in the hope that it will be useful,
10  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *   GNU General Public License for more details.
13  *
14  *   You should have received a copy of the GNU General Public License
15  *   along with Step; if not, write to the Free Software
16  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  */
18 
19 #ifndef STEP_ARROW_H
20 #define STEP_ARROW_H
21 
22 #include <QLineF>
23 
24 class QPainter;
25 
26 class Arrow : public QLineF
27 {
28 public:
29     Arrow(const QLineF& line, int width);
30     Arrow(const QPointF& p1, const QPointF& p2, int width);
31     Arrow(qreal x1, qreal y1, qreal x2, qreal y2, int width);
32 
33     void draw(QPainter* painter) const;
34 
35 private:
36     int _width;
37 };
38 
39 #endif
40