##// END OF EJS Templates
Fix Charts build with QT_NO_GRAPHICSEFFECT definition...
Titta Heikkala -
r2624:a37605d126b6
parent child
Show More
@@ -41,6 +41,9 ChartBackground::~ChartBackground()
41
41
42 void ChartBackground::setDropShadowEnabled(bool enabled)
42 void ChartBackground::setDropShadowEnabled(bool enabled)
43 {
43 {
44 #ifdef QT_NO_GRAPHICSEFFECT
45 Q_UNUSED(enabled)
46 #else
44 if (enabled) {
47 if (enabled) {
45 if (!m_dropShadow) {
48 if (!m_dropShadow) {
46 m_dropShadow = new QGraphicsDropShadowEffect();
49 m_dropShadow = new QGraphicsDropShadowEffect();
@@ -60,6 +63,7 void ChartBackground::setDropShadowEnabled(bool enabled)
60 delete m_dropShadow;
63 delete m_dropShadow;
61 m_dropShadow = 0;
64 m_dropShadow = 0;
62 }
65 }
66 #endif
63 }
67 }
64
68
65 void ChartBackground::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
69 void ChartBackground::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
General Comments 0
You need to be logged in to leave comments. Login now