diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-03-08 11:23:35 -0500 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-03-08 11:23:35 -0500 |
commit | e0b8cd475644807b28aaaa15e21b6a0d169e1634 (patch) | |
tree | de3f984e226fc6e695c3f207914059dd35bdce1a /gr-qtgui/lib/histogram_sink_f_impl.cc | |
parent | 8f755155e44e5c5db9f5eaa61bc1e5a4ef2ef4a9 (diff) |
qtgui: adds ability to set qss style sheet as a preference.
Diffstat (limited to 'gr-qtgui/lib/histogram_sink_f_impl.cc')
-rw-r--r-- | gr-qtgui/lib/histogram_sink_f_impl.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gr-qtgui/lib/histogram_sink_f_impl.cc b/gr-qtgui/lib/histogram_sink_f_impl.cc index 07620a1246..4b3aa29693 100644 --- a/gr-qtgui/lib/histogram_sink_f_impl.cc +++ b/gr-qtgui/lib/histogram_sink_f_impl.cc @@ -114,6 +114,13 @@ namespace gr { d_qApplication = new QApplication(d_argc, &d_argv); } + // If a style sheet is set in the prefs file, enable it here. + std::string qssfile = prefs::singleton()->get_string("qtgui","qss",""); + if(qssfile.size() > 0) { + QString sstext = get_qt_style_sheet(QString(qssfile.c_str())); + d_qApplication->setStyleSheet(sstext); + } + d_main_gui = new HistogramDisplayForm(d_nconnections, d_parent); d_main_gui->setNumBins(d_bins); d_main_gui->setNPoints(d_size); |