Double-click on Erase button will now clear the Band Map and Messages windows.

This commit is contained in:
Joe Taylor 2021-05-14 14:49:14 -04:00
parent 51b0941b20
commit 0e07395f2b
2 changed files with 8 additions and 1 deletions

View File

@ -1460,11 +1460,17 @@ void MainWindow::readFromStdout() //readFromStdout
}
}
void MainWindow::on_EraseButton_clicked() //Erase
void MainWindow::on_EraseButton_clicked()
{
qint64 ms=QDateTime::currentMSecsSinceEpoch();
ui->decodedTextBrowser->clear();
if((ms-m_msErase)<500) {
on_actionErase_Band_Map_and_Messages_triggered();
}
m_msErase=ms;
}
void MainWindow::decodeBusy(bool b) //decodeBusy()
{
m_decoderBusy=b;

View File

@ -140,6 +140,7 @@ private slots:
private:
Ui::MainWindow *ui;
qint64 m_msErase;
qint32 m_nDevIn;
qint32 m_nDevOut;
qint32 m_idInt;