diff --git a/mainwindow.cpp b/mainwindow.cpp index 5cb306f..645d68f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -10551,7 +10551,7 @@ void MainWindow::displayBandActivity() { tdrift = item.tdrift; } - auto joined = text.join(""); + auto joined = Varicode::rstrip(text.join("")); if (joined.isEmpty()) { continue; } @@ -10579,7 +10579,10 @@ void MainWindow::displayBandActivity() { // align right if eliding... int colWidth = ui->tableWidgetRXAll->columnWidth(3); auto textItem = new QTableWidgetItem(joined); - textItem->setToolTip(joined); + auto html = QString("%1").arg(joined.toHtmlEscaped()); + html = html.replace("\u2301", "\u2301

"); + html = html.replace(QRegularExpression("([<]br[/][>])+$"), ""); + textItem->setToolTip(html); QFontMetrics fm(textItem->font()); auto elidedText = fm.elidedText(joined, Qt::ElideLeft, colWidth);