summaryrefslogtreecommitdiff
path: root/noncore/graphics/drawpad/ellipsedrawmode.h
authorleseb <leseb>2002-03-21 17:33:38 (UTC)
committer leseb <leseb>2002-03-21 17:33:38 (UTC)
commit29baf8dcda3d05d91d340b739de0fdd9e37f5749 (patch) (side-by-side diff)
tree5f2958a16cc1f065cdef3e31c2c9500f8aac2e7b /noncore/graphics/drawpad/ellipsedrawmode.h
parent60c9126183ea72c08ad5cb77b8939812627aae17 (diff)
downloadopie-29baf8dcda3d05d91d340b739de0fdd9e37f5749.zip
opie-29baf8dcda3d05d91d340b739de0fdd9e37f5749.tar.gz
opie-29baf8dcda3d05d91d340b739de0fdd9e37f5749.tar.bz2
Enable any size pages
Diffstat (limited to 'noncore/graphics/drawpad/ellipsedrawmode.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/ellipsedrawmode.h16
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 @@
#ifndef ELLIPSEDRAWMODE_H
#define ELLIPSEDRAWMODE_H
-#include "drawmode.h"
+#include "shapedrawmode.h"
-#include <qpointarray.h>
-
-class EllipseDrawMode : public DrawMode
+class EllipseDrawMode : public ShapeDrawMode
{
public:
EllipseDrawMode(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas);
~EllipseDrawMode();
- void mousePressEvent(QMouseEvent* e);
- void mouseReleaseEvent(QMouseEvent* e);
- void mouseMoveEvent(QMouseEvent* e);
-
-private:
- bool m_mousePressed;
- QPointArray m_polyline;
+protected:
+ void drawFinalShape(QPainter& p);
+ void drawTemporaryShape(QPainter& p);
};
#endif // ELLIPSEDRAWMODE_H