summaryrefslogtreecommitdiff
path: root/tests/auto/linguist
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-08-01 17:14:06 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-02 09:36:00 +0200
commit0bd7609162fe4740124847a69eeceb83b42491b8 (patch)
tree35aa99a2e2361cd22adbdef82a1172403811bbfb /tests/auto/linguist
parent4c0c878c6ecbf74e719134a73cb4e5120d1ace98 (diff)
downloadqttools-0bd7609162fe4740124847a69eeceb83b42491b8.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: I73b99cd8e948dbebcdac30c4e5f2772eacb958ab Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'tests/auto/linguist')
-rw-r--r--tests/auto/linguist/lconvert/lconvert.pro1
-rw-r--r--tests/auto/linguist/lrelease/lrelease.pro1
-rw-r--r--tests/auto/linguist/lupdate/lupdate.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/backslashes/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/codecforsrc/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/codecfortr/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/codecfortr1/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/codecfortr2/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/codecfortr3/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/codecfortr4/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/from_subdir/translations/translations.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/heuristics/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/lacksqobject/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/merge_ordering/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/merge_versions/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/merge_whitespace/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/mergecpp/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/mergecpp_noobsolete/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/mergecpp_obsolete/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/mergeui/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/mergeui_obsolete/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/multiple_locations/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/namespaces/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/parse_special_chars/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/parsecontexts/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/parsecpp/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/parsecpp2/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/parsejava/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/parsejs/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/parsejs2/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/parsejs3/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/parsejs4/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/parsejscontexts/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/parseqml/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/parseqml2/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/parseui/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/prefix/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/preprocess/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/proparsing/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/proparsing2/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/proparsingpaths/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/proparsingpri/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/proparsingsubdirs/sub1/sub1.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/proparsingsubs/common/common.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/proparsingsubs/mac/mac.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/proparsingsubs/unix/unix.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/proparsingsubs/win/win.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/reloutput/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/good/textsimilarity/project.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/subdirs_full/subdir1/subdir1.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/subdirs_full/subdir2/subsub1/subsub1.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/subdirs_full/subdir2/subsub2/subsub2.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/subdirs_part/subdir1/subdir1.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/subdirs_part/subdir2/subsub1/subsub1.pro1
-rw-r--r--tests/auto/linguist/lupdate/testdata/subdirs_part/subdir2/subsub2/subsub2.pro1
55 files changed, 55 insertions, 0 deletions
diff --git a/tests/auto/linguist/lconvert/lconvert.pro b/tests/auto/linguist/lconvert/lconvert.pro
index af29c5837..f1761e697 100644
--- a/tests/auto/linguist/lconvert/lconvert.pro
+++ b/tests/auto/linguist/lconvert/lconvert.pro
@@ -7,3 +7,4 @@ TARGET = tst_lconvert
SOURCES += tst_lconvert.cpp
# testlupdate.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lrelease/lrelease.pro b/tests/auto/linguist/lrelease/lrelease.pro
index ba69b7ff3..7da0e42b8 100644
--- a/tests/auto/linguist/lrelease/lrelease.pro
+++ b/tests/auto/linguist/lrelease/lrelease.pro
@@ -3,3 +3,4 @@ QT = core testlib
TARGET = tst_lrelease
SOURCES += tst_lrelease.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/lupdate.pro b/tests/auto/linguist/lupdate/lupdate.pro
index 7c385667b..f2becebd5 100644
--- a/tests/auto/linguist/lupdate/lupdate.pro
+++ b/tests/auto/linguist/lupdate/lupdate.pro
@@ -9,3 +9,4 @@ TARGET = tst_lupdate
SOURCES += tst_lupdate.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/backslashes/project.pro b/tests/auto/linguist/lupdate/testdata/good/backslashes/project.pro
index d4dcda880..5761863e1 100644
--- a/tests/auto/linguist/lupdate/testdata/good/backslashes/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/backslashes/project.pro
@@ -1,3 +1,4 @@
SOURCES += src\\main.cpp
TRANSLATIONS = ts\\project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/codecforsrc/project.pro b/tests/auto/linguist/lupdate/testdata/good/codecforsrc/project.pro
index 7225608b8..f133c60d2 100644
--- a/tests/auto/linguist/lupdate/testdata/good/codecforsrc/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/codecforsrc/project.pro
@@ -5,3 +5,4 @@ TRANSLATIONS = project.ts
CODECFORTR = utf-8
CODECFORSRC = utf-8
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/codecfortr/project.pro b/tests/auto/linguist/lupdate/testdata/good/codecfortr/project.pro
index 64f3c8590..884fc5273 100644
--- a/tests/auto/linguist/lupdate/testdata/good/codecfortr/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/codecfortr/project.pro
@@ -4,3 +4,4 @@ CONFIG+= console
TRANSLATIONS = project.ts
CODECFORTR = CP1251
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/codecfortr1/project.pro b/tests/auto/linguist/lupdate/testdata/good/codecfortr1/project.pro
index d5697ebb9..6d21e0d2f 100644
--- a/tests/auto/linguist/lupdate/testdata/good/codecfortr1/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/codecfortr1/project.pro
@@ -4,3 +4,4 @@ CONFIG += console
TRANSLATIONS = project.ts
CODECFORTR = CP1252
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/codecfortr2/project.pro b/tests/auto/linguist/lupdate/testdata/good/codecfortr2/project.pro
index c95939c3b..8918087e8 100644
--- a/tests/auto/linguist/lupdate/testdata/good/codecfortr2/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/codecfortr2/project.pro
@@ -5,3 +5,4 @@ TRANSLATIONS = project.ts
CODECFORSRC = CP1252
CODECFORTR = UTF-8
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/codecfortr3/project.pro b/tests/auto/linguist/lupdate/testdata/good/codecfortr3/project.pro
index 00a4dc488..1a2f50e41 100644
--- a/tests/auto/linguist/lupdate/testdata/good/codecfortr3/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/codecfortr3/project.pro
@@ -2,3 +2,4 @@ SOURCES += main.cpp
TRANSLATIONS = project.ts
CODECFORTR = latin1
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/codecfortr4/project.pro b/tests/auto/linguist/lupdate/testdata/good/codecfortr4/project.pro
index 4fddb0242..2d08a07de 100644
--- a/tests/auto/linguist/lupdate/testdata/good/codecfortr4/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/codecfortr4/project.pro
@@ -2,3 +2,4 @@ SOURCES += main.cpp
TRANSLATIONS = project.ts
CODECFORTR = latin2
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/from_subdir/translations/translations.pro b/tests/auto/linguist/lupdate/testdata/good/from_subdir/translations/translations.pro
index 1815c37dc..1997e035d 100644
--- a/tests/auto/linguist/lupdate/testdata/good/from_subdir/translations/translations.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/from_subdir/translations/translations.pro
@@ -5,3 +5,4 @@ SOURCES += main.cpp
HEADERS += main.h
TRANSLATIONS += ../project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/heuristics/project.pro b/tests/auto/linguist/lupdate/testdata/good/heuristics/project.pro
index 759bea068..7a7ad5ee7 100644
--- a/tests/auto/linguist/lupdate/testdata/good/heuristics/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/heuristics/project.pro
@@ -1,3 +1,4 @@
SOURCES = main.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/lacksqobject/project.pro b/tests/auto/linguist/lupdate/testdata/good/lacksqobject/project.pro
index 759bea068..7a7ad5ee7 100644
--- a/tests/auto/linguist/lupdate/testdata/good/lacksqobject/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/lacksqobject/project.pro
@@ -1,3 +1,4 @@
SOURCES = main.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/merge_ordering/project.pro b/tests/auto/linguist/lupdate/testdata/good/merge_ordering/project.pro
index 614985830..b7a9f77e5 100644
--- a/tests/auto/linguist/lupdate/testdata/good/merge_ordering/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/merge_ordering/project.pro
@@ -1,3 +1,4 @@
SOURCES += foo.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/merge_versions/project.pro b/tests/auto/linguist/lupdate/testdata/good/merge_versions/project.pro
index fa56972dd..9c06a2010 100644
--- a/tests/auto/linguist/lupdate/testdata/good/merge_versions/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/merge_versions/project.pro
@@ -1,3 +1,4 @@
FORMS += project.ui
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/merge_whitespace/project.pro b/tests/auto/linguist/lupdate/testdata/good/merge_whitespace/project.pro
index 759bea068..7a7ad5ee7 100644
--- a/tests/auto/linguist/lupdate/testdata/good/merge_whitespace/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/merge_whitespace/project.pro
@@ -1,3 +1,4 @@
SOURCES = main.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/mergecpp/project.pro b/tests/auto/linguist/lupdate/testdata/good/mergecpp/project.pro
index 63f5d66e2..6667df7f4 100644
--- a/tests/auto/linguist/lupdate/testdata/good/mergecpp/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/mergecpp/project.pro
@@ -1,3 +1,4 @@
SOURCES += finddialog.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/mergecpp_noobsolete/project.pro b/tests/auto/linguist/lupdate/testdata/good/mergecpp_noobsolete/project.pro
index 63f5d66e2..6667df7f4 100644
--- a/tests/auto/linguist/lupdate/testdata/good/mergecpp_noobsolete/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/mergecpp_noobsolete/project.pro
@@ -1,3 +1,4 @@
SOURCES += finddialog.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/mergecpp_obsolete/project.pro b/tests/auto/linguist/lupdate/testdata/good/mergecpp_obsolete/project.pro
index 63f5d66e2..6667df7f4 100644
--- a/tests/auto/linguist/lupdate/testdata/good/mergecpp_obsolete/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/mergecpp_obsolete/project.pro
@@ -1,3 +1,4 @@
SOURCES += finddialog.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/mergeui/project.pro b/tests/auto/linguist/lupdate/testdata/good/mergeui/project.pro
index fa56972dd..9c06a2010 100644
--- a/tests/auto/linguist/lupdate/testdata/good/mergeui/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/mergeui/project.pro
@@ -1,3 +1,4 @@
FORMS += project.ui
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/mergeui_obsolete/project.pro b/tests/auto/linguist/lupdate/testdata/good/mergeui_obsolete/project.pro
index fa56972dd..9c06a2010 100644
--- a/tests/auto/linguist/lupdate/testdata/good/mergeui_obsolete/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/mergeui_obsolete/project.pro
@@ -1,3 +1,4 @@
FORMS += project.ui
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/multiple_locations/project.pro b/tests/auto/linguist/lupdate/testdata/good/multiple_locations/project.pro
index bbabdfba2..37df00f40 100644
--- a/tests/auto/linguist/lupdate/testdata/good/multiple_locations/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/multiple_locations/project.pro
@@ -2,3 +2,4 @@ SOURCES += main.cpp
SOURCES += finddialog.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/namespaces/project.pro b/tests/auto/linguist/lupdate/testdata/good/namespaces/project.pro
index c96859bdb..289727904 100644
--- a/tests/auto/linguist/lupdate/testdata/good/namespaces/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/namespaces/project.pro
@@ -1,3 +1,4 @@
SOURCES += main.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/parse_special_chars/project.pro b/tests/auto/linguist/lupdate/testdata/good/parse_special_chars/project.pro
index c96859bdb..289727904 100644
--- a/tests/auto/linguist/lupdate/testdata/good/parse_special_chars/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/parse_special_chars/project.pro
@@ -1,3 +1,4 @@
SOURCES += main.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/parsecontexts/project.pro b/tests/auto/linguist/lupdate/testdata/good/parsecontexts/project.pro
index 759bea068..7a7ad5ee7 100644
--- a/tests/auto/linguist/lupdate/testdata/good/parsecontexts/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/parsecontexts/project.pro
@@ -1,3 +1,4 @@
SOURCES = main.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/parsecpp/project.pro b/tests/auto/linguist/lupdate/testdata/good/parsecpp/project.pro
index bbabdfba2..37df00f40 100644
--- a/tests/auto/linguist/lupdate/testdata/good/parsecpp/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/parsecpp/project.pro
@@ -2,3 +2,4 @@ SOURCES += main.cpp
SOURCES += finddialog.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/parsecpp2/project.pro b/tests/auto/linguist/lupdate/testdata/good/parsecpp2/project.pro
index 759bea068..7a7ad5ee7 100644
--- a/tests/auto/linguist/lupdate/testdata/good/parsecpp2/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/parsecpp2/project.pro
@@ -1,3 +1,4 @@
SOURCES = main.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/parsejava/project.pro b/tests/auto/linguist/lupdate/testdata/good/parsejava/project.pro
index 657b535e2..3ddaa6737 100644
--- a/tests/auto/linguist/lupdate/testdata/good/parsejava/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/parsejava/project.pro
@@ -1,3 +1,4 @@
SOURCES += main.java
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/parsejs/project.pro b/tests/auto/linguist/lupdate/testdata/good/parsejs/project.pro
index d549039c4..7d69cb43d 100644
--- a/tests/auto/linguist/lupdate/testdata/good/parsejs/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/parsejs/project.pro
@@ -1,3 +1,4 @@
SOURCES += main.js
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/parsejs2/project.pro b/tests/auto/linguist/lupdate/testdata/good/parsejs2/project.pro
index d549039c4..7d69cb43d 100644
--- a/tests/auto/linguist/lupdate/testdata/good/parsejs2/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/parsejs2/project.pro
@@ -1,3 +1,4 @@
SOURCES += main.js
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/parsejs3/project.pro b/tests/auto/linguist/lupdate/testdata/good/parsejs3/project.pro
index d549039c4..7d69cb43d 100644
--- a/tests/auto/linguist/lupdate/testdata/good/parsejs3/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/parsejs3/project.pro
@@ -1,3 +1,4 @@
SOURCES += main.js
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/parsejs4/project.pro b/tests/auto/linguist/lupdate/testdata/good/parsejs4/project.pro
index d549039c4..7d69cb43d 100644
--- a/tests/auto/linguist/lupdate/testdata/good/parsejs4/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/parsejs4/project.pro
@@ -1,3 +1,4 @@
SOURCES += main.js
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/parsejscontexts/project.pro b/tests/auto/linguist/lupdate/testdata/good/parsejscontexts/project.pro
index d549039c4..7d69cb43d 100644
--- a/tests/auto/linguist/lupdate/testdata/good/parsejscontexts/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/parsejscontexts/project.pro
@@ -1,3 +1,4 @@
SOURCES += main.js
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/parseqml/project.pro b/tests/auto/linguist/lupdate/testdata/good/parseqml/project.pro
index 1040e2227..cc6397936 100644
--- a/tests/auto/linguist/lupdate/testdata/good/parseqml/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/parseqml/project.pro
@@ -1,3 +1,4 @@
SOURCES += main.qml
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/parseqml2/project.pro b/tests/auto/linguist/lupdate/testdata/good/parseqml2/project.pro
index 1040e2227..cc6397936 100644
--- a/tests/auto/linguist/lupdate/testdata/good/parseqml2/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/parseqml2/project.pro
@@ -1,3 +1,4 @@
SOURCES += main.qml
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/parseui/project.pro b/tests/auto/linguist/lupdate/testdata/good/parseui/project.pro
index fa56972dd..9c06a2010 100644
--- a/tests/auto/linguist/lupdate/testdata/good/parseui/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/parseui/project.pro
@@ -1,3 +1,4 @@
FORMS += project.ui
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/prefix/project.pro b/tests/auto/linguist/lupdate/testdata/good/prefix/project.pro
index 759bea068..7a7ad5ee7 100644
--- a/tests/auto/linguist/lupdate/testdata/good/prefix/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/prefix/project.pro
@@ -1,3 +1,4 @@
SOURCES = main.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/preprocess/project.pro b/tests/auto/linguist/lupdate/testdata/good/preprocess/project.pro
index c96859bdb..289727904 100644
--- a/tests/auto/linguist/lupdate/testdata/good/preprocess/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/preprocess/project.pro
@@ -1,3 +1,4 @@
SOURCES += main.cpp
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/proparsing/project.pro b/tests/auto/linguist/lupdate/testdata/good/proparsing/project.pro
index 0e920f99d..b6d226666 100644
--- a/tests/auto/linguist/lupdate/testdata/good/proparsing/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/proparsing/project.pro
@@ -29,3 +29,4 @@ if (exists($$member($$(PATH), 0))) {
}
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/proparsing2/project.pro b/tests/auto/linguist/lupdate/testdata/good/proparsing2/project.pro
index 3dc420858..4553e5912 100644
--- a/tests/auto/linguist/lupdate/testdata/good/proparsing2/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/proparsing2/project.pro
@@ -31,3 +31,4 @@ win32: SOURCES += $$system(type files-cc.txt)
unix: SOURCES += $$system(cat files-cc.txt)
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/proparsingpaths/project.pro b/tests/auto/linguist/lupdate/testdata/good/proparsingpaths/project.pro
index 6bfe751f4..5401eaa7a 100644
--- a/tests/auto/linguist/lupdate/testdata/good/proparsingpaths/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/proparsingpaths/project.pro
@@ -3,3 +3,4 @@ SOURCES += file*.cpp filter.cpp non-existing.cpp
include(sub/sub.pri)
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/proparsingpri/project.pro b/tests/auto/linguist/lupdate/testdata/good/proparsingpri/project.pro
index 5e23538b9..659f27292 100644
--- a/tests/auto/linguist/lupdate/testdata/good/proparsingpri/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/proparsingpri/project.pro
@@ -7,3 +7,4 @@ include(relativity/relativity.pri)
message($$SOURCES)
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/proparsingsubdirs/sub1/sub1.pro b/tests/auto/linguist/lupdate/testdata/good/proparsingsubdirs/sub1/sub1.pro
index df18c5a69..334a26b92 100644
--- a/tests/auto/linguist/lupdate/testdata/good/proparsingsubdirs/sub1/sub1.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/proparsingsubdirs/sub1/sub1.pro
@@ -1,3 +1,4 @@
SOURCES += main.cpp
TRANSLATIONS = ../project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/common/common.pro b/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/common/common.pro
index 3f6c64360..ec5cb04cd 100644
--- a/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/common/common.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/common/common.pro
@@ -1,2 +1,3 @@
SOURCES += main.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/mac/mac.pro b/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/mac/mac.pro
index a1863b665..ba05b4b01 100644
--- a/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/mac/mac.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/mac/mac.pro
@@ -1 +1,2 @@
SOURCES += main_mac.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/unix/unix.pro b/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/unix/unix.pro
index 71b1a2252..79594260b 100644
--- a/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/unix/unix.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/unix/unix.pro
@@ -1 +1,2 @@
SOURCES += main_unix.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/win/win.pro b/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/win/win.pro
index afd719711..05b1742e7 100644
--- a/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/win/win.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/proparsingsubs/win/win.pro
@@ -1 +1,2 @@
SOURCES += main_win.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/reloutput/project.pro b/tests/auto/linguist/lupdate/testdata/good/reloutput/project.pro
index 4e2e6ada7..f80b1d4c9 100644
--- a/tests/auto/linguist/lupdate/testdata/good/reloutput/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/reloutput/project.pro
@@ -1,3 +1,4 @@
SOURCES += main.cpp
TRANSLATIONS = translations/project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/good/textsimilarity/project.pro b/tests/auto/linguist/lupdate/testdata/good/textsimilarity/project.pro
index fa56972dd..9c06a2010 100644
--- a/tests/auto/linguist/lupdate/testdata/good/textsimilarity/project.pro
+++ b/tests/auto/linguist/lupdate/testdata/good/textsimilarity/project.pro
@@ -1,3 +1,4 @@
FORMS += project.ui
TRANSLATIONS = project.ts
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/subdirs_full/subdir1/subdir1.pro b/tests/auto/linguist/lupdate/testdata/subdirs_full/subdir1/subdir1.pro
index 28dcadcbf..55e50d275 100644
--- a/tests/auto/linguist/lupdate/testdata/subdirs_full/subdir1/subdir1.pro
+++ b/tests/auto/linguist/lupdate/testdata/subdirs_full/subdir1/subdir1.pro
@@ -1 +1,2 @@
SOURCES += main.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/subdirs_full/subdir2/subsub1/subsub1.pro b/tests/auto/linguist/lupdate/testdata/subdirs_full/subdir2/subsub1/subsub1.pro
index 28dcadcbf..55e50d275 100644
--- a/tests/auto/linguist/lupdate/testdata/subdirs_full/subdir2/subsub1/subsub1.pro
+++ b/tests/auto/linguist/lupdate/testdata/subdirs_full/subdir2/subsub1/subsub1.pro
@@ -1 +1,2 @@
SOURCES += main.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/subdirs_full/subdir2/subsub2/subsub2.pro b/tests/auto/linguist/lupdate/testdata/subdirs_full/subdir2/subsub2/subsub2.pro
index 349922287..afbcd9cf7 100644
--- a/tests/auto/linguist/lupdate/testdata/subdirs_full/subdir2/subsub2/subsub2.pro
+++ b/tests/auto/linguist/lupdate/testdata/subdirs_full/subdir2/subsub2/subsub2.pro
@@ -2,3 +2,4 @@ SOURCES += main.cpp
TRANSLATIONS = ../../project_sub.ts
CODECFORTR = ISO-8859-2
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/subdirs_part/subdir1/subdir1.pro b/tests/auto/linguist/lupdate/testdata/subdirs_part/subdir1/subdir1.pro
index 28dcadcbf..55e50d275 100644
--- a/tests/auto/linguist/lupdate/testdata/subdirs_part/subdir1/subdir1.pro
+++ b/tests/auto/linguist/lupdate/testdata/subdirs_part/subdir1/subdir1.pro
@@ -1 +1,2 @@
SOURCES += main.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/subdirs_part/subdir2/subsub1/subsub1.pro b/tests/auto/linguist/lupdate/testdata/subdirs_part/subdir2/subsub1/subsub1.pro
index 28dcadcbf..55e50d275 100644
--- a/tests/auto/linguist/lupdate/testdata/subdirs_part/subdir2/subsub1/subsub1.pro
+++ b/tests/auto/linguist/lupdate/testdata/subdirs_part/subdir2/subsub1/subsub1.pro
@@ -1 +1,2 @@
SOURCES += main.cpp
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
diff --git a/tests/auto/linguist/lupdate/testdata/subdirs_part/subdir2/subsub2/subsub2.pro b/tests/auto/linguist/lupdate/testdata/subdirs_part/subdir2/subsub2/subsub2.pro
index 349922287..afbcd9cf7 100644
--- a/tests/auto/linguist/lupdate/testdata/subdirs_part/subdir2/subsub2/subsub2.pro
+++ b/tests/auto/linguist/lupdate/testdata/subdirs_part/subdir2/subsub2/subsub2.pro
@@ -2,3 +2,4 @@ SOURCES += main.cpp
TRANSLATIONS = ../../project_sub.ts
CODECFORTR = ISO-8859-2
+DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0