diff options
author | Tom Rondeau | 2013-05-23 16:37:57 -0400 |
---|---|---|
committer | Tom Rondeau | 2013-05-23 16:37:57 -0400 |
commit | bbd55843d06cb2a9ae1f025b3ef358595ed02299 (patch) | |
tree | 40ccb262e10d31fe0e39a9d512ec9be3957f998e /gr-qtgui | |
parent | 105f046c7c4cd0262c3b0c95bfa35c2557a02101 (diff) | |
download | gnuradio-bbd55843d06cb2a9ae1f025b3ef358595ed02299.tar.gz gnuradio-bbd55843d06cb2a9ae1f025b3ef358595ed02299.tar.bz2 gnuradio-bbd55843d06cb2a9ae1f025b3ef358595ed02299.zip |
qtgui: init FFT Size box for QTGUI sink to the right FFT value. Issue #542.
Diffstat (limited to 'gr-qtgui')
-rw-r--r-- | gr-qtgui/lib/SpectrumGUIClass.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-qtgui/lib/SpectrumGUIClass.cc b/gr-qtgui/lib/SpectrumGUIClass.cc index d2dbc7772..3efba3f40 100644 --- a/gr-qtgui/lib/SpectrumGUIClass.cc +++ b/gr-qtgui/lib/SpectrumGUIClass.cc @@ -133,6 +133,10 @@ SpectrumGUIClass::OpenSpectrumWindow(QWidget* parent, // GUI Thread only qApp->processEvents(); + + // Set the FFT Size combo box to display the right number + int idx = _spectrumDisplayForm->FFTSizeComboBox->findText(QString("%1").arg(_fftSize)); + _spectrumDisplayForm->FFTSizeComboBox->setCurrentIndex(idx); } void |