Consider all QML files for translations

Ensure QML files not used in the current build (as they're
Qt-version-specific and a different Qt version is used) are still
considered when generating the XML files for translations. Otherwise they
will be showing as vanished or obsoleted when they shouldn't.
This commit is contained in:
Martchus 2023-02-18 19:39:37 +01:00
parent a829ca0e65
commit e8c5fdfb56
1 changed files with 5 additions and 0 deletions

View File

@ -168,6 +168,11 @@ endif ()
message(STATUS "Adding Qt-version-specific resource file \"${QML_FILE}\" to build")
list(APPEND QML_SRC_FILES "${QML_FILE}")
# add other QML files to "EXCLUDED_FILES" so they're still considered for translations in any case
file(GLOB OTHER_QML_FILES "resources/qml*.qrc")
list(REMOVE_ITEM OTHER_QML_FILES ${QML_SRC_FILES})
list(APPEND EXCLUDED_FILES ${OTHER_QML_FILES})
# apply further configuration
if (WIDGETS_GUI OR QUICK_GUI)
include(QtGuiConfig)