Commit 4cafb66b authored by Yuchen Deng's avatar Yuchen Deng

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: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent e95790c6
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment