Skip to content

Commit

Permalink
add compile definition to disable APIs deprecated in Qt 6
Browse files Browse the repository at this point in the history
  • Loading branch information
kambala-decapitator committed Nov 19, 2021
1 parent cc3297a commit 83716c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ if(SVG)
add_compile_definitions(SVG_ENABLED=1)
endif()

add_compile_definitions(QT_DISABLE_DEPRECATED_BEFORE=0x060000)

add_executable(qdc6
main.cpp
resources.qrc
Expand Down
1 change: 1 addition & 0 deletions qdc6.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ equals(QT_MAJOR_VERSION, 4) {

SOURCES += main.cpp
RESOURCES += resources.qrc
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000
3 changes: 3 additions & 0 deletions qdc6.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ QtGuiApplication {
]

cpp.cxxLanguageVersion: "c++11"
cpp.defines: [
"QT_DISABLE_DEPRECATED_BEFORE=0x060000",
]

Depends {
condition: svg
Expand Down

0 comments on commit 83716c2

Please sign in to comment.