diff options
author | Tasuku Suzuki <tasuku.suzuki@nokia.com> | 2012-05-23 07:03:42 +0900 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-23 11:28:26 +0200 |
commit | 0d129f9b85503f23cc270f9cf7b310f44dd11ebe (patch) | |
tree | e4acb2520c1a8187d5a71208c963bad0cafba3a4 /src/svg/qsvgwidget.cpp | |
parent | 238d72b13fbddd1d7bc6466fca9188ce16044dec (diff) | |
download | qtsvg-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.cpp')
-rw-r--r-- | src/svg/qsvgwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/svg/qsvgwidget.cpp b/src/svg/qsvgwidget.cpp index 7310d80..e7508ab 100644 --- a/src/svg/qsvgwidget.cpp +++ b/src/svg/qsvgwidget.cpp @@ -41,7 +41,7 @@ #include "qsvgwidget.h" -#ifndef QT_NO_SVGWIDGET +#ifndef QT_NO_WIDGETS #include "qsvgrenderer.h" @@ -170,4 +170,4 @@ void QSvgWidget::load(const QByteArray &contents) QT_END_NAMESPACE -#endif // QT_NO_SVGWIDGET +#endif // QT_NO_WIDGETS |