]> Shamusworld >> Repos - architektonas/blobdiff - src/line.cpp
Fixed Container loading, informative display.
[architektonas] / src / line.cpp
index 37b43c8865cb86740da00abda5767ad562a512d7..74c40b5a3b6a027f409bf574ada59b9e475e6b5a 100644 (file)
@@ -93,11 +93,9 @@ Line::~Line()
                double absAngle = (Vector(endpoint - position).Angle()) * RADIANS_TO_DEGREES;
                double absLength = Vector(position - endpoint).Magnitude();
 
-               QString text;
-
-               text = QObject::tr("Length: %1 in.\n") + QChar(0x2221) + QObject::tr(": %2");
+               QString text = QObject::tr("Length: %1 in.\n") + QChar(0x2221) + QObject::tr(": %2");
                text = text.arg(absLength).arg(absAngle);
-
+#if 0
                QPen pen = QPen(QColor(0x00, 0xFF, 0x00), 1.0, Qt::SolidLine);
                painter->SetPen(pen);
                painter->SetBrush(QBrush(QColor(0x40, 0xFF, 0x40, 0x9F)));
@@ -109,6 +107,9 @@ Line::~Line()
                pen = QPen(QColor(0x00, 0x5F, 0xDF));
                painter->SetPen(pen);
                painter->DrawText(textRect, Qt::AlignVCenter, text);
+#else
+               painter->DrawInformativeText(text);
+#endif
        }
 }