From: sbh Date: Mon, 3 Oct 2011 10:27:01 +0000 (+0000) Subject: Make legend always clickable. X-Git-Tag: BR_HDF_dev_for_QT_QWT~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=731a077fa909012db289e5c096c16c6da4619416;p=modules%2Fgui.git Make legend always clickable. --- 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 ); }