From ffd2ad4dc01031176a49234bd0b66b754810f2d1 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Wed, 22 Jul 2020 01:05:14 +0100 Subject: [PATCH] Narrower decodes display and move AP info into extra appended info --- widgets/displaytext.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/widgets/displaytext.cpp b/widgets/displaytext.cpp index 6d807c353..2f19774de 100644 --- a/widgets/displaytext.cpp +++ b/widgets/displaytext.cpp @@ -434,7 +434,13 @@ void DisplayText::displayDecodedText(DecodedText const& decodedText, QString con QString extra; if (haveFSpread) { - extra = QString {"%1"}.arg (fSpread, 5, 'f', fSpread < 0.95 ? 3 : 2) + QChar {' '}; + extra += QString {"%1"}.arg (fSpread, 5, 'f', fSpread < 0.95 ? 3 : 2) + QChar {' '}; + } + auto ap_pos = message.lastIndexOf (QRegularExpression {R"((?:\?\s)?a[0-9]$)"}); + if (ap_pos >= 0) + { + extra += message.mid (ap_pos) + QChar {' '}; + message = message.left (ap_pos).trimmed (); } m_CQPriority=""; if (CQcall)