forked from qt-creator/qt-creator
No warning if qmlscene exist on Qt5+
We don't need warning if qmlviewer does not exist on Qt5+ because we can skip qtquick1 module right now. Change-Id: Idbe8488aad15e518b77c429de6b3bb5134e6ab32 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -721,6 +721,7 @@ QString BaseQtVersion::findQtBinary(Binaries binary) const
|
||||
else
|
||||
possibleCommands << QLatin1String("qmlscene");
|
||||
}
|
||||
break;
|
||||
case QmlViewer: {
|
||||
if (HostOsInfo::isWindowsHost())
|
||||
possibleCommands << QLatin1String("qmlviewer.exe");
|
||||
|
@@ -67,10 +67,12 @@ QString DesktopQtVersion::type() const
|
||||
QStringList DesktopQtVersion::warningReason() const
|
||||
{
|
||||
QStringList ret = BaseQtVersion::warningReason();
|
||||
if (qtVersion() >= QtVersionNumber(5, 0, 0) && qmlsceneCommand().isEmpty())
|
||||
ret << QCoreApplication::translate("QtVersion", "No qmlscene installed.");
|
||||
if (qtVersion() >= QtVersionNumber(4, 7, 0) && qmlviewerCommand().isEmpty())
|
||||
if (qtVersion() >= QtVersionNumber(5, 0, 0)) {
|
||||
if (qmlsceneCommand().isEmpty())
|
||||
ret << QCoreApplication::translate("QtVersion", "No qmlscene installed.");
|
||||
} else if (qtVersion() >= QtVersionNumber(4, 7, 0) && qmlviewerCommand().isEmpty()) {
|
||||
ret << QCoreApplication::translate("QtVersion", "No qmlviewer installed.");
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user