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/svg.pro | |
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/svg.pro')
-rw-r--r-- | src/svg/svg.pro | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/svg/svg.pro b/src/svg/svg.pro index f8741da..c8c6797 100644 --- a/src/svg/svg.pro +++ b/src/svg/svg.pro @@ -2,7 +2,8 @@ load(qt_module) TARGET = QtSvg QPRO_PWD = $$PWD -QT = core-private gui-private widgets widgets-private +QT = core-private gui-private +!contains(QT_CONFIG, no-widgets): QT += widgets widgets-private CONFIG += module MODULE_PRI = ../../modules/qt_svg.pri |