summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/DisplayPlot.cc
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2013-12-17 19:22:03 -0500
committerTom Rondeau <tom@trondeau.com>2013-12-17 19:22:03 -0500
commit4e8fe5fab16c13967994167c5d9b4713dd82ff58 (patch)
tree88d6f56cd2bb6e18614cc278ee7480bc44e277ae /gr-qtgui/lib/DisplayPlot.cc
parentd183361a4bff5d9dfe232a5df9b23811d2774b94 (diff)
qtgui: enables use of QWT 6.1.
Diffstat (limited to 'gr-qtgui/lib/DisplayPlot.cc')
-rw-r--r--gr-qtgui/lib/DisplayPlot.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gr-qtgui/lib/DisplayPlot.cc b/gr-qtgui/lib/DisplayPlot.cc
index 5c29381906..50661aba02 100644
--- a/gr-qtgui/lib/DisplayPlot.cc
+++ b/gr-qtgui/lib/DisplayPlot.cc
@@ -81,7 +81,13 @@ DisplayPlot::DisplayPlot(int nplots, QWidget* parent)
sd->setMinimumExtent( fm.width("100.00") );
QwtLegend* legendDisplay = new QwtLegend(this);
+
+#if QWT_VERSION < 0x060100
legendDisplay->setItemMode(QwtLegend::CheckableItem);
+#else /* QWT_VERSION < 0x060100 */
+ legendDisplay->setDefaultItemMode(QwtLegendData::Checkable);
+#endif /* QWT_VERSION < 0x060100 */
+
insertLegend(legendDisplay);
connect(this, SIGNAL(legendChecked(QwtPlotItem *, bool)),