//
// 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>
//
setPen(QColor(r, g, b));
}
-void PaintInterface::disablePen()
+void PaintInterface::disablePen(void)
{
lpen = RS_Pen(RS2::FlagInvalid);
painter->setPen(Qt::NoPen);
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);
}