summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-qtgui/lib/qtgui_time_sink_c.cc17
1 files changed, 1 insertions, 16 deletions
diff --git a/gr-qtgui/lib/qtgui_time_sink_c.cc b/gr-qtgui/lib/qtgui_time_sink_c.cc
index d6e6f0a13..064463162 100644
--- a/gr-qtgui/lib/qtgui_time_sink_c.cc
+++ b/gr-qtgui/lib/qtgui_time_sink_c.cc
@@ -58,7 +58,7 @@ qtgui_time_sink_c::qtgui_time_sink_c (int size, double bw,
qtgui_time_sink_c::~qtgui_time_sink_c()
{
- delete d_main_gui;
+ // d_main_gui is a qwidget destroyed with its parent
delete [] d_residbuf;
}
@@ -83,21 +83,6 @@ qtgui_time_sink_c::initialize()
d_qApplication = new QApplication(argc, argv);
}
- /*
- uint64_t maxBufferSize = 32768;
- d_main_gui = new SpectrumGUIClass(maxBufferSize, d_fftsize,
- d_center_freq,
- -d_bandwidth/2.0,
- d_bandwidth/2.0);
-
- d_main_gui->SetDisplayTitle(d_name);
- d_main_gui->SetFFTSize(d_size);
-
- d_main_gui->OpenSpectrumWindow(d_parent,
- d_plotfreq, d_plotwaterfall,
- d_plottime, d_plotconst);
- */
-
d_main_gui = new TimeDisplayForm(d_parent);
// initialize update time to 10 times a second