]> Shamusworld >> Repos - architektonas/blobdiff - src/base/paintinterface.cpp
Still in the middle of fixing preview/snapper rendering...
[architektonas] / src / base / paintinterface.cpp
index 1ea8f8c95c9a0953991064ccacdfb18960a4b649..d98db849261454baad24bd36c4a69d7f2e851925 100644 (file)
@@ -582,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);
@@ -596,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);
 }