Browse Source

Disallow narrowing conversions in signal connection

adaptive-webui-19844
Chocobo1 3 years ago
parent
commit
7764169aa3
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 1
      cmake/Modules/MacroQbtCommonConfig.cmake
  2. 14
      src/src.pro

1
cmake/Modules/MacroQbtCommonConfig.cmake

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

14
src/src.pro

@ -61,12 +61,14 @@ CONFIG(release, debug|release) {
include(../version.pri) include(../version.pri)
# Qt defines # Qt defines
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050f02 DEFINES += \
DEFINES += QT_NO_CAST_FROM_ASCII QT_DISABLE_DEPRECATED_BEFORE=0x050f02 \
DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII \
DEFINES += QT_NO_CAST_FROM_BYTEARRAY QT_NO_CAST_TO_ASCII \
DEFINES += QT_USE_QSTRINGBUILDER QT_NO_CAST_FROM_BYTEARRAY \
DEFINES += QT_STRICT_ITERATORS QT_NO_NARROWING_CONVERSIONS_IN_CONNECT \
QT_USE_QSTRINGBUILDER \
QT_STRICT_ITERATORS
INCLUDEPATH += $$PWD INCLUDEPATH += $$PWD

Loading…
Cancel
Save