]> Shamusworld >> Repos - architektonas/blobdiff - src/drawlineaction.cpp
Fixed Container loading, informative display.
[architektonas] / src / drawlineaction.cpp
index b0b992a3de7e1d077d2222087ecc40eb54464da3..d4b35db336ae70c35bc8f7c6e69ca199d7e7426f 100644 (file)
@@ -45,6 +45,10 @@ DrawLineAction::~DrawLineAction()
        {
                painter->DrawLine(p1, p2);
                painter->DrawHandle(p2);
+
+               QString text = tr("Length: %1 in.");
+               text = text.arg(Vector::Magnitude(p1, p2));
+               painter->DrawInformativeText(text);
        }
 }
 
@@ -82,7 +86,8 @@ DrawLineAction::~DrawLineAction()
                // We don't need no stinkin' sentinels, when we have signals & slots!
                emit ObjectReady(line);
 
-               p1 = p2;
+//             p1 = p2;
+               state = FIRST_POINT;
        }
 }