forked from qt-creator/qt-creator
QmlProject: Update warning when QML Observer cannot be found
Task-number: QTCREATORBUG-7108 Change-Id: Id6d40f1985a1e96fd69549c5ced1b37c33f0642c Reviewed-by: Robert Löhning <robert.loehning@nokia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@nokia.com>
This commit is contained in:
committed by
Friedemann Kleint
parent
10cdeb8748
commit
bd451b3c20
@@ -101,18 +101,18 @@ void QmlProjectPlugin::extensionsInitialized()
|
|||||||
void QmlProjectPlugin::showQmlObserverToolWarning()
|
void QmlProjectPlugin::showQmlObserverToolWarning()
|
||||||
{
|
{
|
||||||
QMessageBox dialog(QApplication::activeWindow());
|
QMessageBox dialog(QApplication::activeWindow());
|
||||||
QPushButton *qtPref = dialog.addButton(tr("Open Qt4 Options"),
|
QPushButton *qtPref = dialog.addButton(tr("Open Qt Versions"),
|
||||||
QMessageBox::ActionRole);
|
QMessageBox::ActionRole);
|
||||||
dialog.addButton(QMessageBox::Cancel);
|
dialog.addButton(QMessageBox::Cancel);
|
||||||
dialog.setDefaultButton(qtPref);
|
dialog.setDefaultButton(qtPref);
|
||||||
dialog.setWindowTitle(tr("QML Observer Missing"));
|
dialog.setWindowTitle(tr("QML Observer Missing"));
|
||||||
dialog.setText(tr("QML Observer could not be found."));
|
dialog.setText(tr("QML Observer could not be found for this Qt version."));
|
||||||
dialog.setInformativeText(tr(
|
dialog.setInformativeText(tr(
|
||||||
"QML Observer is used to offer debugging features for "
|
"QML Observer is used to offer debugging features for "
|
||||||
"QML applications, such as interactive debugging and inspection tools. "
|
"Qt Quick UI projects in the Qt 4.7 series.\n\n"
|
||||||
"It must be compiled for each used Qt version separately. "
|
"To compile QML Observer, go to the Qt Versions page, "
|
||||||
"On the Qt4 options page, select the current Qt installation "
|
"select the current Qt version, "
|
||||||
"and click Rebuild."));
|
"and click Build in the Helpers section."));
|
||||||
dialog.exec();
|
dialog.exec();
|
||||||
if (dialog.clickedButton() == qtPref) {
|
if (dialog.clickedButton() == qtPref) {
|
||||||
Core::ICore::showOptionsDialog(
|
Core::ICore::showOptionsDialog(
|
||||||
|
Reference in New Issue
Block a user