Added tooltips to waterfall controls

This commit is contained in:
Jordan Sherer 2019-12-17 12:43:19 -05:00
parent b34956457c
commit 1f3168b115
4 changed files with 14 additions and 4 deletions

View File

@ -9476,6 +9476,7 @@ void MainWindow::handle_transceiver_update (Transceiver::TransceiverState const&
} }
if (m_astroWidget) m_astroWidget->nominal_frequency (m_freqNominal, m_freqTxNominal); if (m_astroWidget) m_astroWidget->nominal_frequency (m_freqNominal, m_freqTxNominal);
} }
// ensure frequency display is correct // ensure frequency display is correct
if (m_astroWidget && old_state.ptt () != s.ptt ()) setRig (); if (m_astroWidget && old_state.ptt () != s.ptt ()) setRig ();

View File

@ -775,3 +775,8 @@ void WideGraph::setDrift(int n){
ui->driftSpinBox->setValue(n); ui->driftSpinBox->setValue(n);
} }
} }
void WideGraph::setQSYEnabled(bool enabled){
ui->qsyPushButton->setEnabled(enabled);
ui->centerSpinBox->setEnabled(enabled);
}

View File

@ -72,6 +72,7 @@ public slots:
void setControlsVisible(bool visible); void setControlsVisible(bool visible);
bool controlsVisible(); bool controlsVisible();
void setDrift(int n); void setDrift(int n);
void setQSYEnabled(bool enabled);
protected: protected:
void keyPressEvent (QKeyEvent *e) override; void keyPressEvent (QKeyEvent *e) override;

View File

@ -160,7 +160,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>-158</y> <y>0</y>
<width>267</width> <width>267</width>
<height>338</height> <height>338</height>
</rect> </rect>
@ -169,7 +169,7 @@
<item> <item>
<widget class="QGroupBox" name="groupBox_7"> <widget class="QGroupBox" name="groupBox_7">
<property name="title"> <property name="title">
<string>Dial</string> <string>Offset</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_11"> <layout class="QVBoxLayout" name="verticalLayout_11">
<item> <item>
@ -205,6 +205,9 @@
<layout class="QVBoxLayout" name="verticalLayout_9"> <layout class="QVBoxLayout" name="verticalLayout_9">
<item> <item>
<widget class="QPushButton" name="qsyPushButton"> <widget class="QPushButton" name="qsyPushButton">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Adjust the dial frequency to center the current offset at the center of the bandpass (position defined below).&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text"> <property name="text">
<string>QSY</string> <string>QSY</string>
</property> </property>
@ -358,7 +361,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>-435</y> <y>0</y>
<width>267</width> <width>267</width>
<height>615</height> <height>615</height>
</rect> </rect>
@ -837,7 +840,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>-32</y> <y>0</y>
<width>281</width> <width>281</width>
<height>198</height> <height>198</height>
</rect> </rect>