From 2cb7c4c6037e55db7ada5663808efb12bb45ab84 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 22 Mar 2018 19:57:56 +0200 Subject: [PATCH] Utilize macro QT_DEPRECATED_WARNINGS. --HG-- branch : develop --- src/app/tape/tape.pro | 11 +++++++++++ src/app/valentina/valentina.pro | 11 +++++++++++ src/libs/fervor/fervor.pro | 11 +++++++++++ src/libs/ifc/ifc.pro | 11 +++++++++++ src/libs/qmuparser/qmuparser.pro | 11 +++++++++++ src/libs/vdxf/vdxf.pro | 11 +++++++++++ src/libs/vformat/vformat.pro | 11 +++++++++++ src/libs/vgeometry/vgeometry.pro | 11 +++++++++++ src/libs/vlayout/vlayout.pro | 11 +++++++++++ src/libs/vmisc/vmisc.pro | 11 +++++++++++ src/libs/vobj/vobj.pro | 11 +++++++++++ src/libs/vpatterndb/vpatterndb.pro | 11 +++++++++++ src/libs/vpropertyexplorer/vpropertyexplorer.pro | 11 +++++++++++ src/libs/vtest/vtest.pro | 11 +++++++++++ src/libs/vtools/vtools.pro | 11 +++++++++++ src/libs/vwidgets/vwidgets.pro | 11 +++++++++++ src/test/CollectionTest/CollectionTest.pro | 11 +++++++++++ src/test/ParserTest/ParserTest.pro | 11 +++++++++++ src/test/TranslationsTest/TranslationsTest.pro | 11 +++++++++++ src/test/ValentinaTest/ValentinaTest.pro | 11 +++++++++++ 20 files changed, 220 insertions(+) diff --git a/src/app/tape/tape.pro b/src/app/tape/tape.pro index 2eb3a9479..b895b7edd 100644 --- a/src/app/tape/tape.pro +++ b/src/app/tape/tape.pro @@ -26,6 +26,17 @@ greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) { CONFIG += c++11 } +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/app/valentina/valentina.pro b/src/app/valentina/valentina.pro index f3fb38f4f..39926d588 100644 --- a/src/app/valentina/valentina.pro +++ b/src/app/valentina/valentina.pro @@ -39,6 +39,17 @@ greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) { CONFIG += c++11 } +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/libs/fervor/fervor.pro b/src/libs/fervor/fervor.pro index b39e0a18c..7da808e82 100644 --- a/src/libs/fervor/fervor.pro +++ b/src/libs/fervor/fervor.pro @@ -22,6 +22,17 @@ CONFIG += \ # Use out-of-source builds (shadow builds) CONFIG -= debug_and_release debug_and_release_target +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/libs/ifc/ifc.pro b/src/libs/ifc/ifc.pro index 4d7ceb5b9..c0a7766a2 100644 --- a/src/libs/ifc/ifc.pro +++ b/src/libs/ifc/ifc.pro @@ -26,6 +26,17 @@ CONFIG += \ # Use out-of-source builds (shadow builds) CONFIG -= debug_and_release debug_and_release_target +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/libs/qmuparser/qmuparser.pro b/src/libs/qmuparser/qmuparser.pro index 0ca5f1ea7..275fcd871 100644 --- a/src/libs/qmuparser/qmuparser.pro +++ b/src/libs/qmuparser/qmuparser.pro @@ -27,6 +27,17 @@ greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) { CONFIG += c++11 } +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/libs/vdxf/vdxf.pro b/src/libs/vdxf/vdxf.pro index a94260869..92e6d5942 100644 --- a/src/libs/vdxf/vdxf.pro +++ b/src/libs/vdxf/vdxf.pro @@ -29,6 +29,17 @@ greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) { # Use out-of-source builds (shadow builds) CONFIG -= debug_and_release debug_and_release_target +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/libs/vformat/vformat.pro b/src/libs/vformat/vformat.pro index 550cb6810..153494020 100644 --- a/src/libs/vformat/vformat.pro +++ b/src/libs/vformat/vformat.pro @@ -26,6 +26,17 @@ CONFIG += \ # Use out-of-source builds (shadow builds) CONFIG -= debug_and_release debug_and_release_target +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/libs/vgeometry/vgeometry.pro b/src/libs/vgeometry/vgeometry.pro index cac11c1ba..d8ce46822 100644 --- a/src/libs/vgeometry/vgeometry.pro +++ b/src/libs/vgeometry/vgeometry.pro @@ -22,6 +22,17 @@ CONFIG += \ # Use out-of-source builds (shadow builds) CONFIG -= debug_and_release debug_and_release_target +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/libs/vlayout/vlayout.pro b/src/libs/vlayout/vlayout.pro index 25352a9cf..d5b46d6b8 100644 --- a/src/libs/vlayout/vlayout.pro +++ b/src/libs/vlayout/vlayout.pro @@ -22,6 +22,17 @@ CONFIG += \ # Use out-of-source builds (shadow builds) CONFIG -= debug_and_release debug_and_release_target +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/libs/vmisc/vmisc.pro b/src/libs/vmisc/vmisc.pro index b57844181..cf8db513f 100644 --- a/src/libs/vmisc/vmisc.pro +++ b/src/libs/vmisc/vmisc.pro @@ -28,6 +28,17 @@ greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) { # Use out-of-source builds (shadow builds) CONFIG -= debug_and_release debug_and_release_target +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/libs/vobj/vobj.pro b/src/libs/vobj/vobj.pro index 33a9c6a7a..f57c75f5a 100644 --- a/src/libs/vobj/vobj.pro +++ b/src/libs/vobj/vobj.pro @@ -20,6 +20,17 @@ CONFIG += \ # Use out-of-source builds (shadow builds) CONFIG -= debug_and_release debug_and_release_target +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/libs/vpatterndb/vpatterndb.pro b/src/libs/vpatterndb/vpatterndb.pro index 157d28b34..c6ac14042 100644 --- a/src/libs/vpatterndb/vpatterndb.pro +++ b/src/libs/vpatterndb/vpatterndb.pro @@ -22,6 +22,17 @@ CONFIG += \ # Use out-of-source builds (shadow builds) CONFIG -= debug_and_release debug_and_release_target +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/libs/vpropertyexplorer/vpropertyexplorer.pro b/src/libs/vpropertyexplorer/vpropertyexplorer.pro index 10fda7bbb..df126b654 100644 --- a/src/libs/vpropertyexplorer/vpropertyexplorer.pro +++ b/src/libs/vpropertyexplorer/vpropertyexplorer.pro @@ -27,6 +27,17 @@ greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) { CONFIG += c++11 } +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/libs/vtest/vtest.pro b/src/libs/vtest/vtest.pro index 06665a75e..3fbfb0106 100644 --- a/src/libs/vtest/vtest.pro +++ b/src/libs/vtest/vtest.pro @@ -28,6 +28,17 @@ greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) { # Use out-of-source builds (shadow builds) CONFIG -= debug_and_release debug_and_release_target +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/libs/vtools/vtools.pro b/src/libs/vtools/vtools.pro index bcbe5e01f..fb132be42 100644 --- a/src/libs/vtools/vtools.pro +++ b/src/libs/vtools/vtools.pro @@ -22,6 +22,17 @@ CONFIG += \ # Use out-of-source builds (shadow builds) CONFIG -= debug_and_release debug_and_release_target +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/libs/vwidgets/vwidgets.pro b/src/libs/vwidgets/vwidgets.pro index 9f9b80679..e20521be3 100644 --- a/src/libs/vwidgets/vwidgets.pro +++ b/src/libs/vwidgets/vwidgets.pro @@ -22,6 +22,17 @@ CONFIG += \ # Use out-of-source builds (shadow builds) CONFIG -= debug_and_release debug_and_release_target +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Qt 5.4.0 the source code location is recorded only in debug builds. # We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT. DEFINES += QT_MESSAGELOGCONTEXT diff --git a/src/test/CollectionTest/CollectionTest.pro b/src/test/CollectionTest/CollectionTest.pro index a0ec710e8..920818aca 100644 --- a/src/test/CollectionTest/CollectionTest.pro +++ b/src/test/CollectionTest/CollectionTest.pro @@ -20,6 +20,17 @@ TEMPLATE = app # Can configure it not to do that with 'no_testcase_installs' CONFIG += testcase no_testcase_installs +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Q5.4 available support C++14 greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) { CONFIG += c++14 diff --git a/src/test/ParserTest/ParserTest.pro b/src/test/ParserTest/ParserTest.pro index f9fe9698a..2a2e0f3f8 100644 --- a/src/test/ParserTest/ParserTest.pro +++ b/src/test/ParserTest/ParserTest.pro @@ -26,6 +26,17 @@ CONFIG += console c++11 # Can configure it not to do that with 'no_testcase_installs' CONFIG += testcase no_testcase_installs +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Use out-of-source builds (shadow builds) CONFIG -= app_bundle debug_and_release debug_and_release_target diff --git a/src/test/TranslationsTest/TranslationsTest.pro b/src/test/TranslationsTest/TranslationsTest.pro index 48a0e2e3a..e2d9614a4 100644 --- a/src/test/TranslationsTest/TranslationsTest.pro +++ b/src/test/TranslationsTest/TranslationsTest.pro @@ -18,6 +18,17 @@ include(../../../common.pri) # Can configure it not to do that with 'no_testcase_installs' CONFIG += testcase no_testcase_installs +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Q5.4 available support C++14 greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) { CONFIG += c++14 diff --git a/src/test/ValentinaTest/ValentinaTest.pro b/src/test/ValentinaTest/ValentinaTest.pro index 21a019488..52f6fe229 100644 --- a/src/test/ValentinaTest/ValentinaTest.pro +++ b/src/test/ValentinaTest/ValentinaTest.pro @@ -16,6 +16,17 @@ include(../../../common.pri) # Can configure it not to do that with 'no_testcase_installs' CONFIG += testcase no_testcase_installs +# The following define makes your compiler emit warnings if you use +# any feature of Qt which has been marked as deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + +# You can also make your code fail to compile if you use deprecated APIs. +# In order to do so, uncomment the following line. +# You can also select to disable deprecated APIs only up to a certain version of Qt. +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + # Since Q5.4 available support C++14 greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) { CONFIG += c++14