Diffstat (limited to 'noncore/graphics/drawpad/ellipsedrawmode.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/ellipsedrawmode.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/noncore/graphics/drawpad/ellipsedrawmode.h b/noncore/graphics/drawpad/ellipsedrawmode.h index 4787518..0246caa 100644 --- a/noncore/graphics/drawpad/ellipsedrawmode.h +++ b/noncore/graphics/drawpad/ellipsedrawmode.h | |||
@@ -14,23 +14,17 @@ | |||
14 | #ifndef ELLIPSEDRAWMODE_H | 14 | #ifndef ELLIPSEDRAWMODE_H |
15 | #define ELLIPSEDRAWMODE_H | 15 | #define ELLIPSEDRAWMODE_H |
16 | 16 | ||
17 | #include "drawmode.h" | 17 | #include "shapedrawmode.h" |
18 | 18 | ||
19 | #include <qpointarray.h> | 19 | class EllipseDrawMode : public ShapeDrawMode |
20 | |||
21 | class EllipseDrawMode : public DrawMode | ||
22 | { | 20 | { |
23 | public: | 21 | public: |
24 | EllipseDrawMode(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas); | 22 | EllipseDrawMode(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas); |
25 | ~EllipseDrawMode(); | 23 | ~EllipseDrawMode(); |
26 | 24 | ||
27 | void mousePressEvent(QMouseEvent* e); | 25 | protected: |
28 | void mouseReleaseEvent(QMouseEvent* e); | 26 | void drawFinalShape(QPainter& p); |
29 | void mouseMoveEvent(QMouseEvent* e); | 27 | void drawTemporaryShape(QPainter& p); |
30 | |||
31 | private: | ||
32 | bool m_mousePressed; | ||
33 | QPointArray m_polyline; | ||
34 | }; | 28 | }; |
35 | 29 | ||
36 | #endif // ELLIPSEDRAWMODE_H | 30 | #endif // ELLIPSEDRAWMODE_H |