X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fpaintinterface.cpp;h=d98db849261454baad24bd36c4a69d7f2e851925;hb=bd2b29c8735d83ab48df13c3efee53f63570473e;hp=55da307881a7cb13902759492b98c0755bf45bcf;hpb=d774c2655ba2c3657a565f325411144452392277;p=architektonas diff --git a/src/base/paintinterface.cpp b/src/base/paintinterface.cpp index 55da307..d98db84 100644 --- a/src/base/paintinterface.cpp +++ b/src/base/paintinterface.cpp @@ -2,7 +2,9 @@ // // Part of the Architektonas Project // Extensively rewritten and refactored by James L. Hammons -// (C) 2010 Underground Software +// Portions copyright (C) 2001-2003 RibbonSoft +// Copyright (C) 2010 Underground Software +// See the README and GPLv2 files for licensing and warranty information // // JLH = James L. Hammons // @@ -580,7 +582,7 @@ void PaintInterface::setPen(int r, int g, int b) setPen(QColor(r, g, b)); } -void PaintInterface::disablePen() +void PaintInterface::disablePen(void) { lpen = RS_Pen(RS2::FlagInvalid); painter->setPen(Qt::NoPen); @@ -594,17 +596,23 @@ void PaintInterface::setBrush(const RS_Color & color) painter->setBrush(color); } +void PaintInterface::disableBrush(void) +{ +// lpen = RS_Pen(RS2::FlagInvalid); + painter->setBrush(Qt::NoBrush); +} + void PaintInterface::drawPolygon(const QPolygon & a) { painter->drawPolygon(a); } -void PaintInterface::setXORMode() +void PaintInterface::setXORMode(void) { painter->setCompositionMode(QPainter::CompositionMode_Xor); } -void PaintInterface::setNormalMode() +void PaintInterface::setNormalMode(void) { painter->setCompositionMode(QPainter::CompositionMode_SourceOver); }