X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fline.cpp;h=74c40b5a3b6a027f409bf574ada59b9e475e6b5a;hb=143b369c0308a8cd524cb0ed51c5d67d6be69603;hp=37b43c8865cb86740da00abda5767ad562a512d7;hpb=e8987f4028a1f9c0eeb33a45bd11b2e409b9c2c5;p=architektonas diff --git a/src/line.cpp b/src/line.cpp index 37b43c8..74c40b5 100644 --- a/src/line.cpp +++ b/src/line.cpp @@ -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 } }