From 731a077fa909012db289e5c096c16c6da4619416 Mon Sep 17 00:00:00 2001 From: sbh Date: Mon, 3 Oct 2011 10:27:01 +0000 Subject: [PATCH] Make legend always clickable. --- src/Plot2d/Plot2d_ViewFrame.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index 3b97fec31..d8957f229 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -1131,6 +1131,7 @@ void Plot2d_ViewFrame::showLegend( bool show, bool update ) legend = new QwtLegend( myPlot ); legend->setFrameStyle( QFrame::Box | QFrame::Sunken ); } + legend->setItemMode( QwtLegend::ClickableItem ); myPlot->insertLegend( legend ); setLegendPos( myLegendPos ); } -- 2.39.2