X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdrawlineaction.cpp;h=780ad58a66c3fd49f9e563f3156aa3af29ffa98f;hb=9d5d4488ba75c407709556a7ed56b8d16e21834e;hp=65b9fc1b85e6ced0bb085e53840cd44fda222e05;hpb=d17a8b124d6800959675741a45434f8dbe8a50ba;p=architektonas diff --git a/src/drawlineaction.cpp b/src/drawlineaction.cpp index 65b9fc1..780ad58 100644 --- a/src/drawlineaction.cpp +++ b/src/drawlineaction.cpp @@ -4,7 +4,7 @@ // (C) 2011 Underground Software // See the README and GPLv3 files for licensing and warranty information // -// JLH = James L. Hammons +// JLH = James Hammons // // WHO WHEN WHAT // --- ---------- ------------------------------------------------------------ @@ -33,15 +33,17 @@ DrawLineAction::~DrawLineAction() /*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); } }