]> Shamusworld >> Repos - architektonas/blobdiff - src/base/paintinterface.cpp
Fixed Library Browser...
[architektonas] / src / base / paintinterface.cpp
index 55da307881a7cb13902759492b98c0755bf45bcf..d98db849261454baad24bd36c4a69d7f2e851925 100644 (file)
@@ -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 <jlhamm@acm.org>
 //
@@ -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);
 }