diff options
author | Titta Heikkala <titta.heikkala@digia.com> | 2013-10-02 07:51:31 +0300 |
---|---|---|
committer | Titta Heikkala <titta.heikkala@digia.com> | 2013-10-03 14:36:23 +0300 |
commit | a37605d126b677760676fa48fc956ef26c24bed9 (patch) | |
tree | 0f6329c8f86cb190610d6671c36a0ca79fbb1775 /src | |
parent | e4fe606cdd4c422655d76e7a58e54d7a846ec371 (diff) |
Fix Charts build with QT_NO_GRAPHICSEFFECT definition
QGraphicsDropShadowEffect class can't be used when QT_NO_GRAPHICSEFFECT
is defined. Therefore the ChartBackground::setDropShadowEnabled() does
nothing with the aforementioned definition. Also the
ChartBackground::isDropShadowEnabled() method then always returns false.
Task-number: QTRD-2356
Change-Id: I0ef2cec082e8b0dc15756312da61ce773b8d405f
Reviewed-by: Karim Pinter <karim.pinter@digia.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/chartbackground.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/chartbackground.cpp b/src/chartbackground.cpp index e0ec63ec..814a09e4 100644 --- a/src/chartbackground.cpp +++ b/src/chartbackground.cpp @@ -41,6 +41,9 @@ ChartBackground::~ChartBackground() void ChartBackground::setDropShadowEnabled(bool enabled) { +#ifdef QT_NO_GRAPHICSEFFECT + Q_UNUSED(enabled) +#else if (enabled) { if (!m_dropShadow) { m_dropShadow = new QGraphicsDropShadowEffect(); @@ -60,6 +63,7 @@ void ChartBackground::setDropShadowEnabled(bool enabled) delete m_dropShadow; m_dropShadow = 0; } +#endif } void ChartBackground::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |