There is an xml file in my project: mainWindow.ui. It is Qt Designer file for the GUI. For every single icon and other resource, there is a line like:
<iconset resource="../build/resources.qrc">
The problem is that resources.qrc is a configured file whose location depends on the particular user's build directory (which tends to be different for everyone depending on their preferences, e.g.
<iconset resource="../../build/resources.qrc">
This leads to an enfuriating battle between developers who edit mainWindow.ui, because they change about 50 lines every time, and this means a long and tedious manual merge for this file every single time a merge request happens.
Without making mainWindow.ui a configured file as well, can I tell git not to allow changes to those lines, or can I tell Qt Designer to fix that location? How can I avoid this situation?