mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5332 Remove drop shadow around canvas to fix missing canvas on Linux
This commit is contained in:
parent
5e168d75b3
commit
7ac13b3868
@ -27,7 +27,6 @@
|
||||
#include "qwt_plot_layout.h"
|
||||
#include "qwt_scale_widget.h"
|
||||
|
||||
#include <QGraphicsDropShadowEffect>
|
||||
#include <QRegExp>
|
||||
#include <vector>
|
||||
|
||||
@ -49,14 +48,7 @@ void RiuQwtPlotTools::setCommonPlotBehaviour( QwtPlot* plot )
|
||||
QFrame* canvasFrame = dynamic_cast<QFrame*>( plot->canvas() );
|
||||
canvasFrame->setFrameShape( QFrame::Box );
|
||||
|
||||
QGraphicsDropShadowEffect* dropShadowEffect = new QGraphicsDropShadowEffect( plot->canvas() );
|
||||
dropShadowEffect->setOffset( 1.0, 1.0 );
|
||||
dropShadowEffect->setBlurRadius( 3.0 );
|
||||
dropShadowEffect->setColor( QColor( 60, 60, 60, 60 ) );
|
||||
plot->canvas()->setGraphicsEffect( dropShadowEffect );
|
||||
|
||||
// Grid
|
||||
|
||||
QwtPlotGrid* grid = new QwtPlotGrid;
|
||||
grid->attach( plot );
|
||||
QPen gridPen( Qt::SolidLine );
|
||||
|
Loading…
Reference in New Issue
Block a user