forked from qt-creator/qt-creator
Disable "Qt Quick->Preview" action if no qmlviewer in the PATH
An error dialog would be more explicit, but too late because of string freeze.
This commit is contained in:
@@ -24,6 +24,10 @@ QmlJSPreviewRunner::QmlJSPreviewRunner(QObject *parent) :
|
||||
m_applicationLauncher.setEnvironment(environment.toStringList());
|
||||
}
|
||||
|
||||
bool QmlJSPreviewRunner::isReady() const
|
||||
{
|
||||
return !m_qmlViewerDefaultPath.isEmpty();
|
||||
}
|
||||
|
||||
void QmlJSPreviewRunner::run(const QString &filename)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user