Skip to content

Commit

Permalink
Fixed compile against Qt 6.8
Browse files Browse the repository at this point in the history
Using the QT_VERSION_CHECK macro as value for the
QT_DISABLE_DEPRECATED_BEFORE define is causing issues since Qt 6.8, for
example when QByteArray is included without first explicitly including
QtGlobal.
  • Loading branch information
bjorn committed Oct 10, 2024
1 parent 99dcb30 commit d5b54cf
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion qbs/imports/TiledPlugin.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ DynamicLibrary {
return ["$ORIGIN/../.."];
}
cpp.defines: [
"QT_DISABLE_DEPRECATED_BEFORE=QT_VERSION_CHECK(5,15,0)",
"QT_DISABLE_DEPRECATED_BEFORE=0x050F00",
"QT_NO_DEPRECATED_WARNINGS",
"QT_NO_FOREACH",
"QT_NO_URL_CAST_FROM_STRING"
Expand Down
2 changes: 1 addition & 1 deletion qbs/imports/TiledQtGuiApplication.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ QtGuiApplication {
return flags;
}
cpp.defines: [
"QT_DISABLE_DEPRECATED_BEFORE=QT_VERSION_CHECK(5,15,0)",
"QT_DISABLE_DEPRECATED_BEFORE=0x050F00",
"QT_NO_DEPRECATED_WARNINGS",
"QT_NO_CAST_FROM_ASCII",
"QT_NO_CAST_TO_ASCII",
Expand Down
2 changes: 1 addition & 1 deletion src/libtiled/libtiled.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ DynamicLibrary {
"QT_NO_CAST_FROM_ASCII",
"QT_NO_CAST_TO_ASCII",
"QT_NO_URL_CAST_FROM_STRING",
"QT_DISABLE_DEPRECATED_BEFORE=QT_VERSION_CHECK(5,15,0)",
"QT_DISABLE_DEPRECATED_BEFORE=0x050F00",
"QT_NO_DEPRECATED_WARNINGS",
"_USE_MATH_DEFINES",
]
Expand Down
2 changes: 1 addition & 1 deletion src/libtiledquick/libtiledquick.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ DynamicLibrary {
"QT_NO_CAST_FROM_ASCII",
"QT_NO_CAST_TO_ASCII",
"QT_NO_URL_CAST_FROM_STRING",
"QT_DISABLE_DEPRECATED_BEFORE=QT_VERSION_CHECK(5,15,0)",
"QT_DISABLE_DEPRECATED_BEFORE=0x050F00",
"QT_NO_DEPRECATED_WARNINGS",
"QT_NO_FOREACH"
]
Expand Down
2 changes: 1 addition & 1 deletion src/tiled/libtilededitor.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ DynamicLibrary {
var defs = [
"TILED_EDITOR_LIBRARY",
"TILED_VERSION=" + project.version,
"QT_DISABLE_DEPRECATED_BEFORE=QT_VERSION_CHECK(5,15,0)",
"QT_DISABLE_DEPRECATED_BEFORE=0x050F00",
"QT_NO_DEPRECATED_WARNINGS",
"QT_NO_CAST_FROM_ASCII",
"QT_NO_CAST_TO_ASCII",
Expand Down
2 changes: 1 addition & 1 deletion src/tiledquickplugin/tiledquickplugin.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ DynamicLibrary {
return flags;
}
cpp.defines: [
"QT_DISABLE_DEPRECATED_BEFORE=QT_VERSION_CHECK(5,15,0)",
"QT_DISABLE_DEPRECATED_BEFORE=0x050F00",
"QT_NO_DEPRECATED_WARNINGS",
"QT_NO_CAST_FROM_ASCII",
"QT_NO_CAST_TO_ASCII",
Expand Down

0 comments on commit d5b54cf

Please sign in to comment.