Editor/CMakeLists: Add QT_NO_URL_CAST_FROM_STRING

Prevents implicit conversion from QString to QUrl in order to avoid
potentially incorrect conversions from being performed. This makes all
such conversions explicit.
This commit is contained in:
Lioncash 2019-08-25 22:56:46 -04:00
parent e3dc475d7d
commit 694ecdd9c3
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,9 @@ target_compile_definitions(amuse-gui PRIVATE
# Disable narrowing conversions in signal/slot connect() calls.
-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
# Disable implicit QString->QUrl conversions to enforce use of proper resolving functions.
-DQT_NO_URL_CAST_FROM_STRING
# Allows for more efficient string concatenation, resulting in less temporaries.
-DQT_USE_QSTRINGBUILDER
)