summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/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/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/sink_c_impl.cc')
-rw-r--r--gr-qtgui/lib/sink_c_impl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gr-qtgui/lib/sink_c_impl.cc b/gr-qtgui/lib/sink_c_impl.cc
index d9341bab88..b810a450b6 100644
--- a/gr-qtgui/lib/sink_c_impl.cc
+++ b/gr-qtgui/lib/sink_c_impl.cc
@@ -26,6 +26,7 @@
#include "sink_c_impl.h"
#include <gnuradio/io_signature.h>
+#include <gnuradio/prefs.h>
#include <string.h>
#include <volk/volk.h>
@@ -122,6 +123,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);
}