Ctrl+A now aborts a QSO and selects Tx6. Should more be done?

This commit is contained in:
Joe Taylor 2018-10-18 15:45:16 -04:00
parent 52bb594ff8
commit a65930ea93
2 changed files with 14 additions and 1 deletions

View File

@ -1867,6 +1867,11 @@ void MainWindow::keyPressEvent (QKeyEvent * e)
}
}
return;
case Qt::Key_A:
if(e->modifiers() & Qt::ControlModifier) {
abortQSO();
return;
}
case Qt::Key_X:
if(e->modifiers() & Qt::AltModifier) {
foxTest();
@ -1931,7 +1936,6 @@ void MainWindow::keyPressEvent (QKeyEvent * e)
break;
case Qt::Key_PageDown:
band_changed(m_freqNominal-2000);
qDebug() << "Down" << m_freqNominal;
break; }
QMainWindow::keyPressEvent (e);
@ -4676,6 +4680,14 @@ void MainWindow::genCQMsg ()
}
}
void MainWindow::abortQSO()
{
bool b=m_auto;
clearDX();
if(b and !m_auto) auto_tx_mode(true);
ui->txrb6->setChecked(true);
}
bool MainWindow::stdCall(QString w)
{
int n=w.trimmed().length();

View File

@ -704,6 +704,7 @@ private:
void CQTxFreq();
void cabLog();
void useNextCall();
void abortQSO();
bool isWorked(int itype, QString key, float fMHz=0, QString="");
QString save_wave_file (QString const& name