Diffstat (limited to 'noncore/graphics/drawpad/rectangledrawmode.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/rectangledrawmode.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/noncore/graphics/drawpad/rectangledrawmode.h b/noncore/graphics/drawpad/rectangledrawmode.h index 62b85b1..186533d 100644 --- a/noncore/graphics/drawpad/rectangledrawmode.h +++ b/noncore/graphics/drawpad/rectangledrawmode.h | |||
@@ -16,7 +16,5 @@ | |||
16 | 16 | ||
17 | #include "drawmode.h" | 17 | #include "shapedrawmode.h" |
18 | 18 | ||
19 | #include <qpointarray.h> | 19 | class RectangleDrawMode : public ShapeDrawMode |
20 | |||
21 | class RectangleDrawMode : public DrawMode | ||
22 | { | 20 | { |
@@ -26,9 +24,5 @@ public: | |||
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 | }; |