diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-08-01 13:40:04 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-01 15:03:09 +0200 |
commit | 5c2a5b6b3c1e742d1b3eac7e18601042c92d6ab0 (patch) | |
tree | 7c07d765ca8af77fd528b3161941c92e4a57c09d /tests | |
parent | a4caa6540bbc80bf5afbdba5ddad2a873e92e274 (diff) | |
download | qtsvg-5c2a5b6b3c1e742d1b3eac7e18601042c92d6ab0.tar.gz |
Set the Qt API level to compatibility mode in all tests.
Qt 5.0 beta requires changing the default to the 5.0 API, disabling
the deprecated code. However, tests should test (and often do) the
compatibility API too, so turn it back on.
Task-number: QTBUG-25053
Change-Id: I2ed837da653ddbb9e6c18e9a0d9116be7f320f02
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/headersclean/headersclean.pro | 1 | ||||
-rw-r--r-- | tests/auto/qicon_svg/qicon_svg.pro | 1 | ||||
-rw-r--r-- | tests/auto/qsvgdevice/qsvgdevice.pro | 1 | ||||
-rw-r--r-- | tests/auto/qsvggenerator/qsvggenerator.pro | 1 | ||||
-rw-r--r-- | tests/auto/qsvgrenderer/qsvgrenderer.pro | 1 | ||||
-rw-r--r-- | tests/benchmarks/svg/qsvgrenderer/qsvgrenderer.pro | 1 | ||||
-rw-r--r-- | tests/benchmarks/svg/svg.pro | 2 |
7 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/headersclean/headersclean.pro b/tests/auto/headersclean/headersclean.pro index d0e8504..4ce0bcc 100644 --- a/tests/auto/headersclean/headersclean.pro +++ b/tests/auto/headersclean/headersclean.pro @@ -2,3 +2,4 @@ TARGET = tst_headersclean CONFIG += testcase SOURCES += tst_headersclean.cpp QT = core testlib svg gui-private +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qicon_svg/qicon_svg.pro b/tests/auto/qicon_svg/qicon_svg.pro index 97bf7d1..3d61851 100644 --- a/tests/auto/qicon_svg/qicon_svg.pro +++ b/tests/auto/qicon_svg/qicon_svg.pro @@ -10,3 +10,4 @@ wince* { DEPLOYMENT_PLUGIN += qsvg } TESTDATA += icons/* +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qsvgdevice/qsvgdevice.pro b/tests/auto/qsvgdevice/qsvgdevice.pro index 40bcc32..d423faa 100644 --- a/tests/auto/qsvgdevice/qsvgdevice.pro +++ b/tests/auto/qsvgdevice/qsvgdevice.pro @@ -2,3 +2,4 @@ TARGET = tst_qsvgdevice CONFIG += testcase SOURCES += tst_qsvgdevice.cpp QT += xml testlib widgets gui-private +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qsvggenerator/qsvggenerator.pro b/tests/auto/qsvggenerator/qsvggenerator.pro index d4b7f61..2c403f5 100644 --- a/tests/auto/qsvggenerator/qsvggenerator.pro +++ b/tests/auto/qsvggenerator/qsvggenerator.pro @@ -15,3 +15,4 @@ wince* { } else:!symbian { DEFINES += SRCDIR=\\\"$$PWD/\\\" } +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qsvgrenderer/qsvgrenderer.pro b/tests/auto/qsvgrenderer/qsvgrenderer.pro index 99d53a2..94586f5 100644 --- a/tests/auto/qsvgrenderer/qsvgrenderer.pro +++ b/tests/auto/qsvgrenderer/qsvgrenderer.pro @@ -18,3 +18,4 @@ wince*|symbian { !symbian: { DEFINES += SRCDIR=\\\"$$PWD/\\\" } +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/benchmarks/svg/qsvgrenderer/qsvgrenderer.pro b/tests/benchmarks/svg/qsvgrenderer/qsvgrenderer.pro index 836aa37..71d4059 100644 --- a/tests/benchmarks/svg/qsvgrenderer/qsvgrenderer.pro +++ b/tests/benchmarks/svg/qsvgrenderer/qsvgrenderer.pro @@ -7,3 +7,4 @@ RESOURCES += qsvgrenderer.qrc QT += svg testlib +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/benchmarks/svg/svg.pro b/tests/benchmarks/svg/svg.pro index d84eb71..f46b0d2 100644 --- a/tests/benchmarks/svg/svg.pro +++ b/tests/benchmarks/svg/svg.pro @@ -2,4 +2,4 @@ TEMPLATE = subdirs SUBDIRS = \ qsvgrenderer -include(../trusted-benchmarks.pri)
\ No newline at end of file +include(../trusted-benchmarks.pri) |