Utilize macro QT_DEPRECATED_WARNINGS.
--HG-- branch : develop
This commit is contained in:
parent
f1ef60e441
commit
2cb7c4c603
|
@ -26,6 +26,17 @@ greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
||||||
CONFIG += c++11
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -39,6 +39,17 @@ greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
||||||
CONFIG += c++11
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -22,6 +22,17 @@ CONFIG += \
|
||||||
# Use out-of-source builds (shadow builds)
|
# Use out-of-source builds (shadow builds)
|
||||||
CONFIG -= debug_and_release debug_and_release_target
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -26,6 +26,17 @@ CONFIG += \
|
||||||
# Use out-of-source builds (shadow builds)
|
# Use out-of-source builds (shadow builds)
|
||||||
CONFIG -= debug_and_release debug_and_release_target
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -27,6 +27,17 @@ greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
||||||
CONFIG += c++11
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -29,6 +29,17 @@ greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
||||||
# Use out-of-source builds (shadow builds)
|
# Use out-of-source builds (shadow builds)
|
||||||
CONFIG -= debug_and_release debug_and_release_target
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -26,6 +26,17 @@ CONFIG += \
|
||||||
# Use out-of-source builds (shadow builds)
|
# Use out-of-source builds (shadow builds)
|
||||||
CONFIG -= debug_and_release debug_and_release_target
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -22,6 +22,17 @@ CONFIG += \
|
||||||
# Use out-of-source builds (shadow builds)
|
# Use out-of-source builds (shadow builds)
|
||||||
CONFIG -= debug_and_release debug_and_release_target
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -22,6 +22,17 @@ CONFIG += \
|
||||||
# Use out-of-source builds (shadow builds)
|
# Use out-of-source builds (shadow builds)
|
||||||
CONFIG -= debug_and_release debug_and_release_target
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -28,6 +28,17 @@ greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
||||||
# Use out-of-source builds (shadow builds)
|
# Use out-of-source builds (shadow builds)
|
||||||
CONFIG -= debug_and_release debug_and_release_target
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -20,6 +20,17 @@ CONFIG += \
|
||||||
# Use out-of-source builds (shadow builds)
|
# Use out-of-source builds (shadow builds)
|
||||||
CONFIG -= debug_and_release debug_and_release_target
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -22,6 +22,17 @@ CONFIG += \
|
||||||
# Use out-of-source builds (shadow builds)
|
# Use out-of-source builds (shadow builds)
|
||||||
CONFIG -= debug_and_release debug_and_release_target
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -27,6 +27,17 @@ greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
||||||
CONFIG += c++11
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -28,6 +28,17 @@ greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
||||||
# Use out-of-source builds (shadow builds)
|
# Use out-of-source builds (shadow builds)
|
||||||
CONFIG -= debug_and_release debug_and_release_target
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -22,6 +22,17 @@ CONFIG += \
|
||||||
# Use out-of-source builds (shadow builds)
|
# Use out-of-source builds (shadow builds)
|
||||||
CONFIG -= debug_and_release debug_and_release_target
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -22,6 +22,17 @@ CONFIG += \
|
||||||
# Use out-of-source builds (shadow builds)
|
# Use out-of-source builds (shadow builds)
|
||||||
CONFIG -= debug_and_release debug_and_release_target
|
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.
|
# 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.
|
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
|
||||||
DEFINES += QT_MESSAGELOGCONTEXT
|
DEFINES += QT_MESSAGELOGCONTEXT
|
||||||
|
|
|
@ -20,6 +20,17 @@ TEMPLATE = app
|
||||||
# Can configure it not to do that with 'no_testcase_installs'
|
# Can configure it not to do that with 'no_testcase_installs'
|
||||||
CONFIG += testcase 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
|
# Since Q5.4 available support C++14
|
||||||
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
||||||
CONFIG += c++14
|
CONFIG += c++14
|
||||||
|
|
|
@ -26,6 +26,17 @@ CONFIG += console c++11
|
||||||
# Can configure it not to do that with 'no_testcase_installs'
|
# Can configure it not to do that with 'no_testcase_installs'
|
||||||
CONFIG += testcase 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)
|
# Use out-of-source builds (shadow builds)
|
||||||
CONFIG -= app_bundle debug_and_release debug_and_release_target
|
CONFIG -= app_bundle debug_and_release debug_and_release_target
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,17 @@ include(../../../common.pri)
|
||||||
# Can configure it not to do that with 'no_testcase_installs'
|
# Can configure it not to do that with 'no_testcase_installs'
|
||||||
CONFIG += testcase 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
|
# Since Q5.4 available support C++14
|
||||||
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
||||||
CONFIG += c++14
|
CONFIG += c++14
|
||||||
|
|
|
@ -16,6 +16,17 @@ include(../../../common.pri)
|
||||||
# Can configure it not to do that with 'no_testcase_installs'
|
# Can configure it not to do that with 'no_testcase_installs'
|
||||||
CONFIG += testcase 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
|
# Since Q5.4 available support C++14
|
||||||
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
greaterThan(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 3) {
|
||||||
CONFIG += c++14
|
CONFIG += c++14
|
||||||
|
|
Loading…
Reference in New Issue
Block a user