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 @@ -/*************************************************************************** - * * - * DrawPad - a drawing program for Opie Environment * - * * - * (C) 2002 by S. Prud'homme <prudhomme@laposte.net> * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -#include "rectangledrawmode.h" - -#include "drawpad.h" -#include "drawpadcanvas.h" - -RectangleDrawMode::RectangleDrawMode(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas) - : ShapeDrawMode(drawPad, drawPadCanvas) -{ -} - -RectangleDrawMode::~RectangleDrawMode() -{ -} - -void RectangleDrawMode::drawFinalShape(QPainter& p) -{ - p.setPen(m_pDrawPad->pen()); - p.drawRect(QRect(m_polyline[2], m_polyline[0])); -} - -void RectangleDrawMode::drawTemporaryShape(QPainter& p) -{ - p.setRasterOp(Qt::NotROP); - p.drawRect(QRect(m_polyline[2], m_polyline[1])); - p.drawRect(QRect(m_polyline[2], m_polyline[0])); -} |