diff options
author | Tom Rondeau | 2011-04-23 11:01:10 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-04-23 11:01:10 -0400 |
commit | ca8e6096da49c825c14ac05962bb7747f84c2ba6 (patch) | |
tree | b82a5e657d4287a2083faa98aef18faeb6865554 /gr-qtgui/lib/timedisplayform.cc | |
parent | 8b7b6e297e0d929aac2a604229a675d7fa46c3b1 (diff) | |
download | gnuradio-ca8e6096da49c825c14ac05962bb7747f84c2ba6.tar.gz gnuradio-ca8e6096da49c825c14ac05962bb7747f84c2ba6.tar.bz2 gnuradio-ca8e6096da49c825c14ac05962bb7747f84c2ba6.zip |
gr-qtgui: time domain sink now shows and receives updates.
Diffstat (limited to 'gr-qtgui/lib/timedisplayform.cc')
-rw-r--r-- | gr-qtgui/lib/timedisplayform.cc | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/gr-qtgui/lib/timedisplayform.cc b/gr-qtgui/lib/timedisplayform.cc index 809c88a9b..e90eaab06 100644 --- a/gr-qtgui/lib/timedisplayform.cc +++ b/gr-qtgui/lib/timedisplayform.cc @@ -24,6 +24,7 @@ #include <QColorDialog> #include <QMessageBox> #include <timedisplayform.h> +#include <iostream> TimeDisplayForm::TimeDisplayForm(QWidget* parent) : QWidget(parent) @@ -31,10 +32,15 @@ TimeDisplayForm::TimeDisplayForm(QWidget* parent) _systemSpecifiedFlag = false; _intValidator = new QIntValidator(this); _intValidator->setBottom(0); + + _layout = new QGridLayout(this); _timeDomainDisplayPlot = new TimeDomainDisplayPlot(this); + _layout->addWidget(_timeDomainDisplayPlot, 0, 0); _numRealDataPoints = 1024; - + + setLayout(_layout); + Reset(); // Create a timer to update plots at the specified rate @@ -75,12 +81,6 @@ TimeDisplayForm::newData( const TimeUpdateEvent* spectrumUpdateEvent) numTimeDomainDataPoints, d_update_time); - // Tell the system the GUI has been updated - //if(_systemSpecifiedFlag){ - // _system->SetLastGUIUpdateTime(generatedTimestamp); - // _system->DecrementPendingGUIUpdateEvents(); - //} - delete [] real; delete [] imag; } @@ -88,10 +88,7 @@ TimeDisplayForm::newData( const TimeUpdateEvent* spectrumUpdateEvent) void TimeDisplayForm::resizeEvent( QResizeEvent *e ) { - QSize s(0,0); - //s.setWidth(TimeDomainDisplayFrame->width()); - //s.setHeight(TimeDomainDisplayFrame->height()); - emit _timeDomainDisplayPlot->resizeSlot(&s); + emit _timeDomainDisplayPlot->resizeSlot(&size()); } void |