Deselect callsign after 1 hour
This commit is contained in:
parent
344635c75f
commit
2199b8b057
@ -905,6 +905,10 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
beaconTimer.setSingleShot(false);
|
||||
connect(&beaconTimer, &QTimer::timeout, this, &MainWindow::checkBeacon);
|
||||
|
||||
selectedCallTimer.setSingleShot(true);
|
||||
selectedCallTimer.setInterval(1000*60*60);
|
||||
connect(&selectedCallTimer, &QTimer::timeout, this, &MainWindow::clearCallsignSelected);
|
||||
|
||||
connect(m_wideGraph.data (), SIGNAL(setFreq3(int,int)),this,
|
||||
SLOT(setFreq4(int,int)));
|
||||
|
||||
@ -7972,12 +7976,15 @@ void MainWindow::on_tableWidgetRXAll_cellDoubleClicked(int row, int col){
|
||||
}
|
||||
|
||||
void MainWindow::on_tableWidgetRXAll_selectionChanged(const QItemSelection &/*selected*/, const QItemSelection &/*deselected*/){
|
||||
selectedCallTimer.stop();
|
||||
|
||||
on_extFreeTextMsgEdit_currentTextChanged(ui->extFreeTextMsgEdit->toPlainText());
|
||||
|
||||
auto placeholderText = QString("Type your outgoing messages here.");
|
||||
auto selectedCall = callsignSelected();
|
||||
if(!selectedCall.isEmpty()){
|
||||
placeholderText = QString("Type your outgoing directed message to %1 here.").arg(selectedCall);
|
||||
selectedCallTimer.start();
|
||||
}
|
||||
ui->extFreeTextMsgEdit->setPlaceholderText(placeholderText);
|
||||
|
||||
|
@ -382,6 +382,7 @@ private slots:
|
||||
void on_measure_check_box_stateChanged (int);
|
||||
void expiry_warning_message ();
|
||||
void not_GA_warning_message ();
|
||||
void clearCallsignSelected();
|
||||
|
||||
private:
|
||||
Q_SIGNAL void initializeAudioOutputStream (QAudioDeviceInfo,
|
||||
@ -644,6 +645,7 @@ private:
|
||||
QTimer splashTimer;
|
||||
QTimer p1Timer;
|
||||
QTimer beaconTimer;
|
||||
QTimer selectedCallTimer;
|
||||
|
||||
QString m_path;
|
||||
QString m_baseCall;
|
||||
@ -876,7 +878,6 @@ private:
|
||||
bool isMyCallIncluded(QString const &text);
|
||||
bool isAllCallIncluded(QString const &text);
|
||||
QString callsignSelected();
|
||||
void clearCallsignSelected();
|
||||
bool isRecentOffset(int offset);
|
||||
void markOffsetRecent(int offset);
|
||||
bool isDirectedOffset(int offset, bool *pIsAllCall);
|
||||
|
Loading…
Reference in New Issue
Block a user