summaryrefslogtreecommitdiff
path: root/src/svg/qgraphicssvgitem.cpp
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/qgraphicssvgitem.cpp
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/qgraphicssvgitem.cpp')
-rw-r--r--src/svg/qgraphicssvgitem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/svg/qgraphicssvgitem.cpp b/src/svg/qgraphicssvgitem.cpp
index 3b6ff1c..e56a652 100644
--- a/src/svg/qgraphicssvgitem.cpp
+++ b/src/svg/qgraphicssvgitem.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
#include "qgraphicssvgitem.h"
-#ifndef QT_NO_GRAPHICSSVGITEM
+#ifndef QT_NO_WIDGETS
#include "qpainter.h"
#include "qstyleoption.h"
@@ -388,4 +388,4 @@ QT_END_NAMESPACE
#include "moc_qgraphicssvgitem.cpp"
-#endif // QT_NO_GRAPHICSSVGITEM
+#endif // QT_NO_WIDGETS