forked from qt-creator/qt-creator
QMLProject: Pick the correct QMLViewer depending on Qt Version
Change-Id: Ice9fa1294f29e1376afbf7af1a112e7d99a44b10 Reviewed-on: http://codereview.qt-project.org/4998 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -551,14 +551,17 @@ QString BaseQtVersion::findQtBinary(BINARIES binary) const
|
||||
|
||||
QStringList possibleCommands;
|
||||
switch (binary) {
|
||||
case QmlViewer:
|
||||
#if defined(Q_OS_MAC)
|
||||
possibleCommands << QLatin1String("QMLViewer");
|
||||
#elif defined(Q_OS_WIN)
|
||||
possibleCommands << QLatin1String("qmlviewer.exe");
|
||||
case QmlViewer: {
|
||||
if (qtVersion() < QtVersionNumber(5, 0, 0)) {
|
||||
possibleCommands << possibleGuiBinaries(QLatin1String("qmlviewer"));
|
||||
} else {
|
||||
#if defined(Q_OS_WIN)
|
||||
possibleCommands << QLatin1String("qmlscene.exe");
|
||||
#else
|
||||
possibleCommands << QLatin1String("qmlviewer");
|
||||
possibleCommands << QLatin1String("qmlscene");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
break;
|
||||
case Designer:
|
||||
possibleCommands << possibleGuiBinaries(QLatin1String("designer"));
|
||||
|
||||
Reference in New Issue
Block a user