Double-click on AS window to leave Tx Enable OFF.

This commit is contained in:
Joe Taylor 2024-01-24 15:10:15 -05:00
parent b84742b1fc
commit 495170e7a1
2 changed files with 10 additions and 1 deletions

View File

@ -599,6 +599,8 @@ void CPlotter::mousePressEvent(QMouseEvent *event) //mousePressEvent
int x=event->x();
int y=event->y();
int button=event->button();
// qDebug() << "aa" << x << y << int(FreqfromX(x)+0.5)
// << floor(datcom_.fcenter) + 0.001*int(FreqfromX(x)+0.5);
if(y < h+30) { // Wideband waterfall
if(button==1) {
setFQSO(x,false);

View File

@ -3954,7 +3954,14 @@ void MainWindow::callSandP2(int n)
}
setTxMsg(1);
ui->txFirstCheckBox->setChecked(m_txFirst);
if (!ui->autoButton->isChecked()) ui->autoButton->click(); // Enable Tx
static qint64 ms0=0;
qint64 ms=QDateTime::currentMSecsSinceEpoch();
if(ui->autoButton->isChecked()) {
if((ms-ms0)<=500) ui->autoButton->click(); // Disable Tx on double click
} else if((ms-ms0)>500) {
ui->autoButton->click(); // Enable Tx on single click
}
ms0=ms;
if(m_transmitting) m_restart=true;
}