From 1f3168b115979c4573b118330cc0f52b34938b94 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Tue, 17 Dec 2019 12:43:19 -0500 Subject: [PATCH] Added tooltips to waterfall controls --- mainwindow.cpp | 1 + widegraph.cpp | 5 +++++ widegraph.h | 1 + widegraph.ui | 11 +++++++---- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 4e68284..5e971a6 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -9476,6 +9476,7 @@ void MainWindow::handle_transceiver_update (Transceiver::TransceiverState const& } if (m_astroWidget) m_astroWidget->nominal_frequency (m_freqNominal, m_freqTxNominal); } + // ensure frequency display is correct if (m_astroWidget && old_state.ptt () != s.ptt ()) setRig (); diff --git a/widegraph.cpp b/widegraph.cpp index 6917ad0..c7beae9 100644 --- a/widegraph.cpp +++ b/widegraph.cpp @@ -775,3 +775,8 @@ void WideGraph::setDrift(int n){ ui->driftSpinBox->setValue(n); } } + +void WideGraph::setQSYEnabled(bool enabled){ + ui->qsyPushButton->setEnabled(enabled); + ui->centerSpinBox->setEnabled(enabled); +} diff --git a/widegraph.h b/widegraph.h index 0a8dd67..bdb7461 100644 --- a/widegraph.h +++ b/widegraph.h @@ -72,6 +72,7 @@ public slots: void setControlsVisible(bool visible); bool controlsVisible(); void setDrift(int n); + void setQSYEnabled(bool enabled); protected: void keyPressEvent (QKeyEvent *e) override; diff --git a/widegraph.ui b/widegraph.ui index a8fd85a..63db71c 100644 --- a/widegraph.ui +++ b/widegraph.ui @@ -160,7 +160,7 @@ 0 - -158 + 0 267 338 @@ -169,7 +169,7 @@ - Dial + Offset @@ -205,6 +205,9 @@ + + <html><head/><body><p>Adjust the dial frequency to center the current offset at the center of the bandpass (position defined below).</p></body></html> + QSY @@ -358,7 +361,7 @@ 0 - -435 + 0 267 615 @@ -837,7 +840,7 @@ 0 - -32 + 0 281 198