Skip to content

Commit 1240594

Browse files
committed
ENH: Disable deprecated Qt features prior to version 6 in generator
1 parent 4b1e96e commit 1240594

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

generator/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ namespace
175175
}
176176
dui.defines.push_back("__cplusplus=1");
177177
dui.defines.push_back("__STDC__");
178+
// Do not wrap deprecated items for Qt 6.
179+
dui.defines.push_back("QT_DISABLE_DEPRECATED_BEFORE=QT_VERSION_CHECK(6, 0, 0)");
178180
dui.std = "c++20";
179181
dui.removeComments = true;
180182

0 commit comments

Comments
 (0)