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()) {
|
||||
possibleCommands << "uic.exe";
|
||||
} else {
|
||||
possibleCommands << "uic";
|
||||
if (q->qtVersion().majorVersion == 4)
|
||||
possibleCommands << "uic-qt4" << "uic4";
|
||||
const QString majorString = QString::number(q->qtVersion().majorVersion);
|
||||
possibleCommands << ("uic-qt" + majorString) << ("uic" + majorString) << "uic";
|
||||
}
|
||||
break;
|
||||
case QScxmlc:
|
||||
|
||||
Reference in New Issue
Block a user