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: I17b02c252bea56c265d6e80359628fa02dba3525
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
This commit is contained in:
Thiago Macieira 2012-08-01 15:55:00 +02:00
parent 496180637b
commit 1cc17e33c5
3 changed files with 3 additions and 0 deletions

View File

@ -14,3 +14,4 @@ load(qt_module_config)
# Input
HEADERS += qftp.h qurlinfo.h
SOURCES += qftp.cpp qurlinfo.cpp
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0

View File

@ -1,2 +1,3 @@
QT = core testlib ftp
include($${QT.core.sources}/../../tests/auto/other/headersclean/headersclean.pri)
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0

View File

@ -15,3 +15,4 @@ wince*: {
}
CONFIG+=insignificant_test # uses live qt-test-server, inherently unstable
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0