summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/histogram_sink_f_impl.cc
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-02-24 17:48:25 -0500
committerTom Rondeau <tom@trondeau.com>2014-02-24 17:48:25 -0500
commitb9cce7ab281d7ff8dc69559a41e57c36a1eb7ee5 (patch)
tree2e1d5ea437b0e0d514b303fc5170756a2c8d269a /gr-qtgui/lib/histogram_sink_f_impl.cc
parent43edc292c10c51f5ce771fe94c1acbd325851d99 (diff)
qtgui: adds ability to set the graphics style rendering of the qtgui sinks.
Set through gr-qtgui.conf prefs file. Documented in QT GUI section of manual.
Diffstat (limited to 'gr-qtgui/lib/histogram_sink_f_impl.cc')
-rw-r--r--gr-qtgui/lib/histogram_sink_f_impl.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/gr-qtgui/lib/histogram_sink_f_impl.cc b/gr-qtgui/lib/histogram_sink_f_impl.cc
index 8a3ba6987e..07620a1246 100644
--- a/gr-qtgui/lib/histogram_sink_f_impl.cc
+++ b/gr-qtgui/lib/histogram_sink_f_impl.cc
@@ -26,14 +26,14 @@
#include "histogram_sink_f_impl.h"
#include <gnuradio/io_signature.h>
+#include <gnuradio/prefs.h>
#include <string.h>
#include <volk/volk.h>
-#include <gnuradio/fft/fft.h>
#include <qwt_symbol.h>
namespace gr {
namespace qtgui {
-
+
histogram_sink_f::sptr
histogram_sink_f::make(int size, int bins,
double xmin, double xmax,
@@ -109,6 +109,8 @@ namespace gr {
d_qApplication = qApp;
}
else {
+ std::string style = prefs::singleton()->get_string("qtgui", "style", "raster");
+ QApplication::setGraphicsSystem(QString(style.c_str()));
d_qApplication = new QApplication(d_argc, &d_argv);
}
@@ -270,8 +272,8 @@ namespace gr {
memset(d_residbufs[i], 0, newsize*sizeof(double));
}
- // Set new size and reset buffer index
- // (throws away any currently held data, but who cares?)
+ // Set new size and reset buffer index
+ // (throws away any currently held data, but who cares?)
d_size = newsize;
d_index = 0;