summaryrefslogtreecommitdiff
path: root/src/svg/qsvgwidget.h
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@nokia.com>2012-05-23 07:03:42 +0900
committerQt by Nokia <qt-info@nokia.com>2012-05-23 11:28:26 +0200
commit0d129f9b85503f23cc270f9cf7b310f44dd11ebe (patch)
treee4acb2520c1a8187d5a71208c963bad0cafba3a4 /src/svg/qsvgwidget.h
parent238d72b13fbddd1d7bc6466fca9188ce16044dec (diff)
downloadqtsvg-0d129f9b85503f23cc270f9cf7b310f44dd11ebe.tar.gz
Fix compilation for -no-widgets option
Disable QSvgWidget and QGraphicsSvgItem when -no-widgets is set. The module doesn't depend on widgets when QT_CONFIG contains no-widgets. QT_NO_SVG* (which is removed in Qt5) is replaced to QT_NO_WIDGETS. Change-Id: I11457a40e96d193269dcc37ac7fdb86f3f7c1958 Reviewed-by: Donald Carr <donald.carr@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src/svg/qsvgwidget.h')
-rw-r--r--src/svg/qsvgwidget.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/svg/qsvgwidget.h b/src/svg/qsvgwidget.h
index 24eefc5..4594a84 100644
--- a/src/svg/qsvgwidget.h
+++ b/src/svg/qsvgwidget.h
@@ -42,9 +42,11 @@
#ifndef QSVGWIDGET_H
#define QSVGWIDGET_H
-#include <QtWidgets/qwidget.h>
+#include <QtCore/qglobal.h>
+
+#ifndef QT_NO_WIDGETS
-#ifndef QT_NO_SVGWIDGET
+#include <QtWidgets/qwidget.h>
QT_BEGIN_HEADER
@@ -80,5 +82,6 @@ QT_END_NAMESPACE
QT_END_HEADER
-#endif // QT_NO_SVGWIDGET
+#endif // QT_NO_WIDGETS
+
#endif // QSVGWIDGET_H