mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-07-15 15:24:25 -04:00
Attempting to make WSJT-X display messages like "<K1ABC W9XYZ> R26".
[For now, I'll make do with () in place of <>.] git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6418 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+3
-3
@@ -52,8 +52,10 @@ void DisplayText::insertLineSpacer(QString const& line)
|
||||
|
||||
void DisplayText::appendText(QString const& text, QString const& bg)
|
||||
{
|
||||
QString t=text.trimmed().replace('<','(');
|
||||
t=t.replace('>',')');
|
||||
QString s = "<table border=0 cellspacing=0 width=100%><tr><td bgcolor=\"" +
|
||||
bg + "\">" + text.trimmed ().replace (' ', " ") + "</td></tr></table>";
|
||||
bg + "\">" + t.trimmed ().replace (' ', " ") + "</td></tr></table>";
|
||||
auto cursor = textCursor ();
|
||||
cursor.movePosition (QTextCursor::End);
|
||||
auto pos = cursor.position ();
|
||||
@@ -66,7 +68,6 @@ void DisplayText::appendText(QString const& text, QString const& bg)
|
||||
// position so viewport scrolled to left
|
||||
cursor.movePosition (QTextCursor::Up);
|
||||
cursor.movePosition (QTextCursor::StartOfLine);
|
||||
|
||||
setTextCursor (cursor);
|
||||
ensureCursorVisible ();
|
||||
}
|
||||
@@ -163,7 +164,6 @@ void DisplayText::displayDecodedText(DecodedText decodedText, QString myCall,
|
||||
if (displayDXCCEntity && CQcall)
|
||||
_appendDXCCWorkedB4(/*mod*/decodedText,bg,logBook,color_CQ,
|
||||
color_DXCC,color_NewCall);
|
||||
|
||||
appendText(decodedText.string(),bg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user