QtSupport: Prefer suffixed uic

This prevents the wrong uic from getting picked up in the case where the
unsuffixed version belongs to a different Qt.

Change-Id: I3fe7b4afc25a2733c632bb0195ca7ea74666bdbf
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2020-11-11 13:51:47 +01:00
parent 2b414508b7
commit 80be8c2b14

View File

@@ -1053,9 +1053,8 @@ QString BaseQtVersionPrivate::findHostBinary(HostBinaries binary) const
if (HostOsInfo::isWindowsHost()) { if (HostOsInfo::isWindowsHost()) {
possibleCommands << "uic.exe"; possibleCommands << "uic.exe";
} else { } else {
possibleCommands << "uic"; const QString majorString = QString::number(q->qtVersion().majorVersion);
if (q->qtVersion().majorVersion == 4) possibleCommands << ("uic-qt" + majorString) << ("uic" + majorString) << "uic";
possibleCommands << "uic-qt4" << "uic4";
} }
break; break;
case QScxmlc: case QScxmlc: