// (C) 2011 Underground Software
// See the README and GPLv3 files for licensing and warranty information
//
-// JLH = James L. Hammons <jlhamm@acm.org>
+// JLH = James Hammons <jlhamm@acm.org>
//
// WHO WHEN WHAT
// --- ---------- ------------------------------------------------------------
/*virtual*/ void DrawLineAction::Draw(Painter * painter)
{
- // Need to fix pen colors, etc...
+ painter->SetPen(QPen(Qt::red, 2.0, Qt::DotLine));
+
// I think stuff like crosshairs should be done in the DrawingView, tho
if (state == FIRST_POINT)
{
- painter->DrawPoint(p1.x, p1.y);
+ painter->DrawHandle(p1);
}
else
{
painter->DrawLine(p1, p2);
+ painter->DrawHandle(p2);
}
}