Diffstat (limited to 'noncore/graphics/drawpad/rectangledrawmode.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/rectangledrawmode.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/noncore/graphics/drawpad/rectangledrawmode.cpp b/noncore/graphics/drawpad/rectangledrawmode.cpp deleted file mode 100644 index 0226544..0000000 --- a/noncore/graphics/drawpad/rectangledrawmode.cpp +++ b/dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * DrawPad - a drawing program for Opie Environment * | ||
4 | * * | ||
5 | * (C) 2002 by S. Prud'homme <prudhomme@laposte.net> * | ||
6 | * * | ||
7 | * This program is free software; you can redistribute it and/or modify * | ||
8 | * it under the terms of the GNU General Public License as published by * | ||
9 | * the Free Software Foundation; either version 2 of the License, or * | ||
10 | * (at your option) any later version. * | ||
11 | * * | ||
12 | ***************************************************************************/ | ||
13 | |||
14 | #include "rectangledrawmode.h" | ||
15 | |||
16 | #include "drawpad.h" | ||
17 | #include "drawpadcanvas.h" | ||
18 | |||
19 | RectangleDrawMode::RectangleDrawMode(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) | ||
20 | : ShapeDrawMode(drawPad, drawPadCanvas) | ||
21 | { | ||
22 | } | ||
23 | |||
24 | RectangleDrawMode::~RectangleDrawMode() | ||
25 | { | ||
26 | } | ||
27 | |||
28 | void RectangleDrawMode::drawFinalShape(QPainter& p) | ||
29 | { | ||
30 | p.setPen(m_pDrawPad->pen()); | ||
31 | p.drawRect(QRect(m_polyline[2], m_polyline[0])); | ||
32 | } | ||
33 | |||
34 | void RectangleDrawMode::drawTemporaryShape(QPainter& p) | ||
35 | { | ||
36 | p.setRasterOp(Qt::NotROP); | ||
37 | p.drawRect(QRect(m_polyline[2], m_polyline[1])); | ||
38 | p.drawRect(QRect(m_polyline[2], m_polyline[0])); | ||
39 | } | ||