mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
Qt4 porting: add axis grids to plot 2d preview.
This commit is contained in:
parent
a16c5a0b79
commit
3f36c66f5a
@ -27,6 +27,7 @@
|
|||||||
// Qwt includes
|
// Qwt includes
|
||||||
#include <qwt_plot_curve.h>
|
#include <qwt_plot_curve.h>
|
||||||
#include <qwt_plot_marker.h>
|
#include <qwt_plot_marker.h>
|
||||||
|
#include <qwt_plot_grid.h>
|
||||||
#include <qwt_symbol.h>
|
#include <qwt_symbol.h>
|
||||||
#include <qwt_legend.h>
|
#include <qwt_legend.h>
|
||||||
|
|
||||||
@ -84,6 +85,16 @@ StdMeshersGUI_DistrPreview::StdMeshersGUI_DistrPreview( QWidget* p, StdMeshers::
|
|||||||
|
|
||||||
myDensity->setTitle( tr( "SMESH_DENSITY_FUNC" ) );
|
myDensity->setTitle( tr( "SMESH_DENSITY_FUNC" ) );
|
||||||
myDistr->setTitle( tr( "SMESH_DISTR" ) );
|
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()
|
StdMeshersGUI_DistrPreview::~StdMeshersGUI_DistrPreview()
|
||||||
|
Loading…
Reference in New Issue
Block a user