summaryrefslogtreecommitdiffstats
path: root/.qmake.conf
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2019-07-04 11:59:22 +0200
committerMarc Mutz <marc.mutz@kdab.com>2019-07-04 13:33:05 +0200
commitff5ecc6cc878f3937bee8d5db634d56b69cfedda (patch)
tree9cfcbd3c400dc7ec1c70bcb8e8f75b985cbe35c1 /.qmake.conf
parent0aec1b991987f8e990ffe2d110dda5a48bdfbb12 (diff)
Mark the module free of Java-style iterators and of QLinkedList
Java-style iterators are going to be deprecated, or at the very least banned from use in Qt code. Ditto QLinkedList. Unfortunately, the module contains more than 100 uses of Q_FOREACH, even though, according to my sources, its use was banned in Qt implementation from the get-go. So QT_NO_FOREACH is currently not an option. Change-Id: Ib34d7634f59ba5395cfb2b4b3afbfe0b62f52a73 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to '.qmake.conf')
-rw-r--r--.qmake.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/.qmake.conf b/.qmake.conf
index 9a4e1c10..de5c3ff9 100644
--- a/.qmake.conf
+++ b/.qmake.conf
@@ -1,5 +1,7 @@
load(qt_build_config)
+DEFINES += QT_NO_JAVA_STYLE_ITERATORS QT_NO_LINKED_LIST
+
MODULE_VERSION = 5.14.0
CONFIG += warning_clean
CMAKE_MODULE_TESTS=-