mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-21 19:48:54 -04:00
Double-click on AS window to leave Tx Enable OFF.
This commit is contained in:
parent
b84742b1fc
commit
495170e7a1
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user