summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAshish Kulkarni <kulkarni.ashish@gmail.com>2014-12-17 12:37:27 +0530
committerAshish Kulkarni <kulkarni.ashish@gmail.com>2014-12-17 10:06:08 +0100
commit04e9f7f21a4c8faffdb342a141039096f00bb332 (patch)
treeda935e9d5bf55a9a330246265be519c3d154b970 /src
parenta8cf84a30fd0701aff7b222dc365c29d4c4d4e08 (diff)
downloadqtsvg-04e9f7f21a4c8faffdb342a141039096f00bb332.tar.gz
fix build with QT_NO_GRAPHICSVIEW
QGraphicsItem is not available if QT_NO_GRAPHICSVIEW is defined, but this was not checked when building QGraphicsSvgItem. Change-Id: I24b9f784d12a9ce4cbf5a4ffd22690c6441f6118 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/svg/qgraphicssvgitem.cpp2
-rw-r--r--src/svg/qgraphicssvgitem.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/svg/qgraphicssvgitem.cpp b/src/svg/qgraphicssvgitem.cpp
index 642f793..4d2b916 100644
--- a/src/svg/qgraphicssvgitem.cpp
+++ b/src/svg/qgraphicssvgitem.cpp
@@ -32,7 +32,7 @@
****************************************************************************/
#include "qgraphicssvgitem.h"
-#ifndef QT_NO_WIDGETS
+#if !defined(QT_NO_GRAPHICSVIEW) && !defined(QT_NO_WIDGETS)
#include "qpainter.h"
#include "qstyleoption.h"
diff --git a/src/svg/qgraphicssvgitem.h b/src/svg/qgraphicssvgitem.h
index 1626131..8af0d1e 100644
--- a/src/svg/qgraphicssvgitem.h
+++ b/src/svg/qgraphicssvgitem.h
@@ -35,7 +35,7 @@
#include <QtCore/qglobal.h>
-#ifndef QT_NO_WIDGETS
+#if !defined(QT_NO_GRAPHICSVIEW) && !defined(QT_NO_WIDGETS)
#include <QtWidgets/qgraphicsitem.h>
@@ -88,6 +88,6 @@ private:
QT_END_NAMESPACE
-#endif // QT_NO_WIDGETS
+#endif // QT_NO_GRAPHICSVIEW or QT_NO_WIDGETS
#endif // QGRAPHICSSVGITEM_H