forked from qt-creator/qt-creator
QmlDesigner.nodeInstances: show warning if qml pupped crashes
If the qml puppetcrahes 3 times in a row we show a warning. Reviewed-by: Marco Bubke
This commit is contained in:
@@ -648,6 +648,7 @@ void DesignModeWidget::setup()
|
||||
}
|
||||
|
||||
m_nodeInstanceView = new NodeInstanceView(this);
|
||||
connect(m_nodeInstanceView.data(), SIGNAL(qmlPuppetCrashed()), this, SLOT(qmlPuppetCrashed()));
|
||||
// Sidebar takes ownership
|
||||
m_navigator = new NavigatorView;
|
||||
m_allPropertiesBox = new AllPropertiesBox;
|
||||
@@ -773,6 +774,14 @@ void DesignModeWidget::deleteSidebarWidgets()
|
||||
m_rightSideBar = 0;
|
||||
}
|
||||
|
||||
void DesignModeWidget::qmlPuppetCrashed()
|
||||
{
|
||||
QList<RewriterView::Error> errorList;
|
||||
RewriterView::Error error(tr("Qt Quick emulation layer crashed"));
|
||||
errorList << error;
|
||||
disable(errorList);
|
||||
}
|
||||
|
||||
void DesignModeWidget::resizeEvent(QResizeEvent *event)
|
||||
{
|
||||
if (m_warningWidget)
|
||||
|
||||
Reference in New Issue
Block a user