Disallow narrowing conversions in signal connection

This commit is contained in:
Chocobo1 2022-05-18 13:37:13 +08:00
commit 7764169aa3
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
2 changed files with 9 additions and 6 deletions

View file

@ -21,6 +21,7 @@ macro(qbt_common_config)
QT_NO_CAST_FROM_ASCII
QT_NO_CAST_TO_ASCII
QT_NO_CAST_FROM_BYTEARRAY
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
QT_USE_QSTRINGBUILDER
QT_STRICT_ITERATORS
$<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG_OUTPUT>