forked from qt-creator/qt-creator
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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user