#5332 Remove drop shadow around canvas to fix missing canvas on Linux

This commit is contained in:
Gaute Lindkvist 2020-01-13 15:00:09 +01:00
parent 5e168d75b3
commit 7ac13b3868

View File

@ -27,7 +27,6 @@
#include "qwt_plot_layout.h" #include "qwt_plot_layout.h"
#include "qwt_scale_widget.h" #include "qwt_scale_widget.h"
#include <QGraphicsDropShadowEffect>
#include <QRegExp> #include <QRegExp>
#include <vector> #include <vector>
@ -49,14 +48,7 @@ void RiuQwtPlotTools::setCommonPlotBehaviour( QwtPlot* plot )
QFrame* canvasFrame = dynamic_cast<QFrame*>( plot->canvas() ); QFrame* canvasFrame = dynamic_cast<QFrame*>( plot->canvas() );
canvasFrame->setFrameShape( QFrame::Box ); 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 // Grid
QwtPlotGrid* grid = new QwtPlotGrid; QwtPlotGrid* grid = new QwtPlotGrid;
grid->attach( plot ); grid->attach( plot );
QPen gridPen( Qt::SolidLine ); QPen gridPen( Qt::SolidLine );