Working toward display of points in left decode window.

This commit is contained in:
Joe Taylor
2022-03-22 11:22:56 -04:00
parent f47596b2eb
commit f3ee013e43
3 changed files with 25 additions and 6 deletions
+12 -1
View File
@@ -372,11 +372,17 @@ QString DisplayText::appendWorkedB4 (QString message, QString call, QString cons
}
m_CQPriority=DecodeHighlightingModel::highlight_name(top_highlight);
if(m_npts == -1) return message;
return leftJustifyAppendage (message, extra);
}
QString DisplayText::leftJustifyAppendage (QString message, QString const& appendage) const
QString DisplayText::leftJustifyAppendage (QString message, QString const& appendage0) const
{
QString appendage=appendage0;
if(m_npts>0) {
appendage=" " + QString::number(m_npts);
if(m_npts<10) appendage=" " + appendage;
}
if (appendage.size ())
{
// allow for seconds
@@ -660,3 +666,8 @@ void DisplayText::highlight_callsign (QString const& callsign, QColor const& bg,
}
setCurrentCharFormat (old_format);
}
void DisplayText::displayPoints(int npts)
{
m_npts=npts;
}