summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/const_sink_c_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/const_sink_c_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/const_sink_c_impl.cc')
-rw-r--r--gr-qtgui/lib/const_sink_c_impl.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/gr-qtgui/lib/const_sink_c_impl.cc b/gr-qtgui/lib/const_sink_c_impl.cc
index fd9338f111..8b1a804fd2 100644
--- a/gr-qtgui/lib/const_sink_c_impl.cc
+++ b/gr-qtgui/lib/const_sink_c_impl.cc
@@ -26,14 +26,14 @@
#include "const_sink_c_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 {
-
+
const_sink_c::sptr
const_sink_c::make(int size,
const std::string &name,
@@ -110,6 +110,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);
}
@@ -272,8 +274,8 @@ namespace gr {
memset(d_residbufs_imag[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;