forked from qt-creator/qt-creator
QmlProject: Improve warning message
Change-Id: I0b8aaa8dcb6926c9a23c297fa13a7ec4eda0089b Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -218,8 +218,11 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage)
|
|||||||
//The first one might be ignored when QDS is starting up
|
//The first one might be ignored when QDS is starting up
|
||||||
QTimer::singleShot(4000, [filePath] { openQDS(filePath); });
|
QTimer::singleShot(4000, [filePath] { openQDS(filePath); });
|
||||||
} else {
|
} else {
|
||||||
Core::AsynchronousMessageBox::warning(tr("Qt Design Studio"),
|
Core::AsynchronousMessageBox::warning(
|
||||||
tr("No project file (*.qmlproject) found for Qt Design Studio."));
|
tr("Qt Design Studio"),
|
||||||
|
tr("No project file (*.qmlproject) found for Qt Design"
|
||||||
|
"Studio.\n Qt Design Studio requires a .qmlproject "
|
||||||
|
"based project to open the ui.qml file."));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Core::ICore::infoBar()->addInfo(info);
|
Core::ICore::infoBar()->addInfo(info);
|
||||||
|
Reference in New Issue
Block a user