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
|
else
|
||||||
possibleCommands << QLatin1String("qmlscene");
|
possibleCommands << QLatin1String("qmlscene");
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case QmlViewer: {
|
case QmlViewer: {
|
||||||
if (HostOsInfo::isWindowsHost())
|
if (HostOsInfo::isWindowsHost())
|
||||||
possibleCommands << QLatin1String("qmlviewer.exe");
|
possibleCommands << QLatin1String("qmlviewer.exe");
|
||||||
|
@@ -67,10 +67,12 @@ QString DesktopQtVersion::type() const
|
|||||||
QStringList DesktopQtVersion::warningReason() const
|
QStringList DesktopQtVersion::warningReason() const
|
||||||
{
|
{
|
||||||
QStringList ret = BaseQtVersion::warningReason();
|
QStringList ret = BaseQtVersion::warningReason();
|
||||||
if (qtVersion() >= QtVersionNumber(5, 0, 0) && qmlsceneCommand().isEmpty())
|
if (qtVersion() >= QtVersionNumber(5, 0, 0)) {
|
||||||
|
if (qmlsceneCommand().isEmpty())
|
||||||
ret << QCoreApplication::translate("QtVersion", "No qmlscene installed.");
|
ret << QCoreApplication::translate("QtVersion", "No qmlscene installed.");
|
||||||
if (qtVersion() >= QtVersionNumber(4, 7, 0) && qmlviewerCommand().isEmpty())
|
} else if (qtVersion() >= QtVersionNumber(4, 7, 0) && qmlviewerCommand().isEmpty()) {
|
||||||
ret << QCoreApplication::translate("QtVersion", "No qmlviewer installed.");
|
ret << QCoreApplication::translate("QtVersion", "No qmlviewer installed.");
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user