Clean up what the Erase button does.

This commit is contained in:
Joe Taylor 2022-12-12 19:45:41 -05:00
parent 00d405137a
commit d1d92334bd
2 changed files with 2 additions and 6 deletions

View File

@ -36,7 +36,7 @@ MainWindow::MainWindow(QWidget *parent) :
m_gui_timer {new QTimer {this}} m_gui_timer {new QTimer {this}}
{ {
ui->setupUi(this); ui->setupUi(this);
on_EraseButton_clicked(); // ui->decodedTextBrowser->clear();
ui->labUTC->setStyleSheet( \ ui->labUTC->setStyleSheet( \
"QLabel { background-color : black; color : yellow; }"); "QLabel { background-color : black; color : yellow; }");
ui->labTol1->setStyleSheet( \ ui->labTol1->setStyleSheet( \
@ -903,11 +903,8 @@ void MainWindow::decode() //decode()
void MainWindow::on_EraseButton_clicked() void MainWindow::on_EraseButton_clicked()
{ {
qint64 ms=QDateTime::currentMSecsSinceEpoch();
ui->decodedTextBrowser->clear(); ui->decodedTextBrowser->clear();
if((ms-m_msErase)<500) { lab5->clear();
}
m_msErase=ms;
} }

View File

@ -96,7 +96,6 @@ private:
QScopedPointer<Astro> m_astro_window; QScopedPointer<Astro> m_astro_window;
QScopedPointer<WideGraph> m_wide_graph_window; QScopedPointer<WideGraph> m_wide_graph_window;
QPointer<QTimer> m_gui_timer; QPointer<QTimer> m_gui_timer;
qint64 m_msErase;
qint32 m_idInt; qint32 m_idInt;
qint32 m_waterfallAvg; qint32 m_waterfallAvg;
qint32 m_DF; qint32 m_DF;