From 3f36c66f5af4129d370f7b2b289954ca0314f301 Mon Sep 17 00:00:00 2001 From: mkr Date: Fri, 28 Mar 2008 15:57:02 +0000 Subject: [PATCH] Qt4 porting: add axis grids to plot 2d preview. --- src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx index 66e167a4f..fc3787b9e 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_DistrPreview.cxx @@ -27,6 +27,7 @@ // Qwt includes #include #include +#include #include #include @@ -84,6 +85,16 @@ StdMeshersGUI_DistrPreview::StdMeshersGUI_DistrPreview( QWidget* p, StdMeshers:: myDensity->setTitle( tr( "SMESH_DENSITY_FUNC" ) ); myDistr->setTitle( tr( "SMESH_DISTR" ) ); + + QwtPlotGrid* aGrid = new QwtPlotGrid(); + QPen aMajPen = aGrid->majPen(); + aMajPen.setStyle( Qt::DashLine ); + aGrid->setPen( aMajPen ); + + aGrid->enableX( true ); + aGrid->enableY( true ); + + aGrid->attach( this ); } StdMeshersGUI_DistrPreview::~StdMeshersGUI_DistrPreview() -- 2.39.2