diff options
author | Tom Rondeau | 2011-10-16 17:56:51 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-10-16 17:56:51 -0400 |
commit | df09ce46e6783352e09981f61f1f25f1db1ab68c (patch) | |
tree | 35e4fc1ee76e511f77ed89fe99196c8ef48dd137 /gr-qtgui/lib | |
parent | bade47de8c8e9fe92ae7a777260e900d6c708f09 (diff) | |
download | gnuradio-df09ce46e6783352e09981f61f1f25f1db1ab68c.tar.gz gnuradio-df09ce46e6783352e09981f61f1f25f1db1ab68c.tar.bz2 gnuradio-df09ce46e6783352e09981f61f1f25f1db1ab68c.zip |
qtgui: adjusting intensity knobs and auto scale in waterfall works in qwt6.
Diffstat (limited to 'gr-qtgui/lib')
-rw-r--r-- | gr-qtgui/lib/WaterfallDisplayPlot.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gr-qtgui/lib/WaterfallDisplayPlot.cc b/gr-qtgui/lib/WaterfallDisplayPlot.cc index ba15608e9..643370b96 100644 --- a/gr-qtgui/lib/WaterfallDisplayPlot.cc +++ b/gr-qtgui/lib/WaterfallDisplayPlot.cc @@ -306,11 +306,7 @@ WaterfallDisplayPlot::WaterfallDisplayPlot(QWidget* parent) _lastReplot = 0; _intensityColorMapType = INTENSITY_COLOR_MAP_TYPE_MULTI_COLOR; - - QwtLinearColorMap *colorMap = new QwtLinearColorMap(Qt::darkCyan, Qt::white); - colorMap->addColorStop(0.25, Qt::cyan); - colorMap->addColorStop(0.5, Qt::yellow); - colorMap->addColorStop(0.75, Qt::red); + QwtLinearColorMap *colorMap = new ColorMap_MultiColor(); d_data = new WaterfallData(_startFrequency, _stopFrequency, _numPoints, 200); @@ -488,6 +484,8 @@ WaterfallDisplayPlot::SetIntensityRange(const double minIntensity, emit UpdatedLowerIntensityLevel(minIntensity); emit UpdatedUpperIntensityLevel(maxIntensity); + d_data->setInterval(Qt::ZAxis, QwtInterval(minIntensity, maxIntensity)); + _UpdateIntensityRangeDisplay(); } |