More work on the ActiveStations features.

This commit is contained in:
Joe Taylor
2022-03-17 16:43:58 -04:00
parent f3bac687ba
commit 5668e74f61
5 changed files with 23 additions and 10 deletions
+5 -1
View File
@@ -3,6 +3,7 @@
#include <QSettings>
#include <QApplication>
#include <QTextCharFormat>
#include <QDateTime>
#include "SettingsGroup.hpp"
#include "qt_helpers.hpp"
@@ -20,7 +21,7 @@ ActiveStations::ActiveStations(QSettings * settings, QFont const& font, QWidget
ui->RecentStationsPlainTextEdit->setReadOnly (true);
changeFont (font);
read_settings ();
ui->header_label2->setText(" Call Grid Age Points");
ui->header_label2->setText(" N Call Grid Tx Age Points");
connect(ui->RecentStationsPlainTextEdit, &QPlainTextEdit::selectionChanged, this, select);
}
@@ -69,6 +70,9 @@ int ActiveStations::maxAge()
void ActiveStations::select()
{
qint64 msec=QDateTime::currentMSecsSinceEpoch();
if((msec-m_msec0)<500) return;
m_msec0=msec;
int nline=ui->RecentStationsPlainTextEdit->textCursor().blockNumber();
emit callSandP(nline);
}