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);
|
beaconTimer.setSingleShot(false);
|
||||||
connect(&beaconTimer, &QTimer::timeout, this, &MainWindow::checkBeacon);
|
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,
|
connect(m_wideGraph.data (), SIGNAL(setFreq3(int,int)),this,
|
||||||
SLOT(setFreq4(int,int)));
|
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*/){
|
void MainWindow::on_tableWidgetRXAll_selectionChanged(const QItemSelection &/*selected*/, const QItemSelection &/*deselected*/){
|
||||||
|
selectedCallTimer.stop();
|
||||||
|
|
||||||
on_extFreeTextMsgEdit_currentTextChanged(ui->extFreeTextMsgEdit->toPlainText());
|
on_extFreeTextMsgEdit_currentTextChanged(ui->extFreeTextMsgEdit->toPlainText());
|
||||||
|
|
||||||
auto placeholderText = QString("Type your outgoing messages here.");
|
auto placeholderText = QString("Type your outgoing messages here.");
|
||||||
auto selectedCall = callsignSelected();
|
auto selectedCall = callsignSelected();
|
||||||
if(!selectedCall.isEmpty()){
|
if(!selectedCall.isEmpty()){
|
||||||
placeholderText = QString("Type your outgoing directed message to %1 here.").arg(selectedCall);
|
placeholderText = QString("Type your outgoing directed message to %1 here.").arg(selectedCall);
|
||||||
|
selectedCallTimer.start();
|
||||||
}
|
}
|
||||||
ui->extFreeTextMsgEdit->setPlaceholderText(placeholderText);
|
ui->extFreeTextMsgEdit->setPlaceholderText(placeholderText);
|
||||||
|
|
||||||
|
@ -382,6 +382,7 @@ private slots:
|
|||||||
void on_measure_check_box_stateChanged (int);
|
void on_measure_check_box_stateChanged (int);
|
||||||
void expiry_warning_message ();
|
void expiry_warning_message ();
|
||||||
void not_GA_warning_message ();
|
void not_GA_warning_message ();
|
||||||
|
void clearCallsignSelected();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Q_SIGNAL void initializeAudioOutputStream (QAudioDeviceInfo,
|
Q_SIGNAL void initializeAudioOutputStream (QAudioDeviceInfo,
|
||||||
@ -644,6 +645,7 @@ private:
|
|||||||
QTimer splashTimer;
|
QTimer splashTimer;
|
||||||
QTimer p1Timer;
|
QTimer p1Timer;
|
||||||
QTimer beaconTimer;
|
QTimer beaconTimer;
|
||||||
|
QTimer selectedCallTimer;
|
||||||
|
|
||||||
QString m_path;
|
QString m_path;
|
||||||
QString m_baseCall;
|
QString m_baseCall;
|
||||||
@ -876,7 +878,6 @@ private:
|
|||||||
bool isMyCallIncluded(QString const &text);
|
bool isMyCallIncluded(QString const &text);
|
||||||
bool isAllCallIncluded(QString const &text);
|
bool isAllCallIncluded(QString const &text);
|
||||||
QString callsignSelected();
|
QString callsignSelected();
|
||||||
void clearCallsignSelected();
|
|
||||||
bool isRecentOffset(int offset);
|
bool isRecentOffset(int offset);
|
||||||
void markOffsetRecent(int offset);
|
void markOffsetRecent(int offset);
|
||||||
bool isDirectedOffset(int offset, bool *pIsAllCall);
|
bool isDirectedOffset(int offset, bool *pIsAllCall);
|
||||||
|
Loading…
Reference in New Issue
Block a user