diff options
author | Johannes Demel <demel@ant.uni-bremen.de> | 2016-09-28 18:07:39 +0200 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-10-02 09:07:00 -0700 |
commit | 8d8fffafb20c5d894e478ded9111f1a503131ef1 (patch) | |
tree | 8efae571203a48cd734d52332397c7ef3b59f4b4 /gr-qtgui/lib/TimeDomainDisplayPlot.cc | |
parent | 90c88a94945f889445f79c610a5e7d6fc6221310 (diff) |
Qt time sink now respects tag color from QSS stylesheet
Diffstat (limited to 'gr-qtgui/lib/TimeDomainDisplayPlot.cc')
-rw-r--r-- | gr-qtgui/lib/TimeDomainDisplayPlot.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-qtgui/lib/TimeDomainDisplayPlot.cc b/gr-qtgui/lib/TimeDomainDisplayPlot.cc index bc9f630235..51a1989a9a 100644 --- a/gr-qtgui/lib/TimeDomainDisplayPlot.cc +++ b/gr-qtgui/lib/TimeDomainDisplayPlot.cc @@ -343,9 +343,7 @@ TimeDomainDisplayPlot::plotNewData(const std::vector<double*> dataPoints, m->setXValue(sample_offset); m->setYValue(yval); - QBrush brush; - brush.setColor(QColor(0xC8, 0x2F, 0x1F)); - brush.setStyle(Qt::SolidPattern); + QBrush brush(getTagBackgroundColor(), getTagBackgroundStyle()); QPen pen; pen.setColor(Qt::black); @@ -367,8 +365,10 @@ TimeDomainDisplayPlot::plotNewData(const std::vector<double*> dataPoints, #else m->setSymbol(sym); #endif + QwtText tag_label(s.str().c_str()); + tag_label.setColor(getTagTextColor()); + m->setLabel(tag_label); - m->setLabel(QwtText(s.str().c_str())); m->attach(this); if(!(show && d_tag_markers_en[which])) { |