diff options
author | trondeau | 2009-07-06 04:39:24 +0000 |
---|---|---|
committer | trondeau | 2009-07-06 04:39:24 +0000 |
commit | 471ebf621da0426fefda870dfe29d75cd9ef2da6 (patch) | |
tree | 5b7f59db5b4b6ffd4d932450e4598dcf20865313 /gr-qtgui/src/lib/SpectrumGUIClass.cc | |
parent | fadb55f262e1b5514988c3dc86a5e580378655dc (diff) | |
download | gnuradio-471ebf621da0426fefda870dfe29d75cd9ef2da6.tar.gz gnuradio-471ebf621da0426fefda870dfe29d75cd9ef2da6.tar.bz2 gnuradio-471ebf621da0426fefda870dfe29d75cd9ef2da6.zip |
Merging trondeau/qt branch r11231:11360. This merge improves the usability and examples of the QT-based interface.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11361 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-qtgui/src/lib/SpectrumGUIClass.cc')
-rw-r--r-- | gr-qtgui/src/lib/SpectrumGUIClass.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gr-qtgui/src/lib/SpectrumGUIClass.cc b/gr-qtgui/src/lib/SpectrumGUIClass.cc index f35062ea0..f196d7c5f 100644 --- a/gr-qtgui/src/lib/SpectrumGUIClass.cc +++ b/gr-qtgui/src/lib/SpectrumGUIClass.cc @@ -10,7 +10,8 @@ const long SpectrumGUIClass::MAX_FFT_SIZE; const long SpectrumGUIClass::MIN_FFT_SIZE; SpectrumGUIClass::SpectrumGUIClass(const uint64_t maxDataSize, - const uint64_t fftSize, + const uint64_t fftSize, + const double newCenterFrequency, const double newStartFrequency, const double newStopFrequency) { @@ -25,7 +26,7 @@ SpectrumGUIClass::SpectrumGUIClass(const uint64_t maxDataSize, _pendingGUIUpdateEventsCount = 0; _droppedEntriesCount = 0; - _centerFrequency = 0; + _centerFrequency = newCenterFrequency; _startFrequency = newStartFrequency; _stopFrequency = newStopFrequency; @@ -113,6 +114,9 @@ SpectrumGUIClass::OpenSpectrumWindow(QWidget* parent, // Draw Blank Display UpdateWindow(false, NULL, 0, NULL, 0, NULL, 0, 1.0, get_highres_clock(), true); + // Set up the initial frequency axis settings + SetFrequencyRange(_centerFrequency, _startFrequency, _stopFrequency); + // GUI Thread only qApp->processEvents(); } |