]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Make legend always clickable.
authorsbh <sbh@opencascade.com>
Mon, 3 Oct 2011 10:27:01 +0000 (10:27 +0000)
committersbh <sbh@opencascade.com>
Mon, 3 Oct 2011 10:27:01 +0000 (10:27 +0000)
src/Plot2d/Plot2d_ViewFrame.cxx

index 3b97fec316011361030ea229f2722cff03fd2ae5..d8957f229d5fa27c1715740b6b6b7e854916328f 100755 (executable)
@@ -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 );
   }