forked from qt-creator/qt-creator
QmlDebugger: removed "Reload" button on live preview error
Reviewed-by: Kai Koehne
This commit is contained in:
@@ -176,6 +176,12 @@ void EditorView::showEditorInfoBar(const QString &id,
|
|||||||
m_infoWidgetLabel->setText(infoText);
|
m_infoWidgetLabel->setText(infoText);
|
||||||
m_infoWidgetButton->setText(buttonText);
|
m_infoWidgetButton->setText(buttonText);
|
||||||
|
|
||||||
|
if (object && !buttonText.isEmpty()) {
|
||||||
|
m_infoWidgetButton->show();
|
||||||
|
} else {
|
||||||
|
m_infoWidgetButton->hide();
|
||||||
|
}
|
||||||
|
|
||||||
m_infoWidgetButton->disconnect();
|
m_infoWidgetButton->disconnect();
|
||||||
if (object && buttonPressMember)
|
if (object && buttonPressMember)
|
||||||
connect(m_infoWidgetButton, SIGNAL(clicked()), object, buttonPressMember);
|
connect(m_infoWidgetButton, SIGNAL(clicked()), object, buttonPressMember);
|
||||||
|
|||||||
@@ -584,7 +584,7 @@ void QmlJSLiveTextPreview::showSyncWarning(UnsyncronizableChangeType unsyncroniz
|
|||||||
|
|
||||||
errorMessage.append(tr("You can continue debugging, but behavior can be unexpected."));
|
errorMessage.append(tr("You can continue debugging, but behavior can be unexpected."));
|
||||||
|
|
||||||
em->showEditorInfoBar(Constants::INFO_OUT_OF_SYNC, errorMessage, tr("Reload"), this, SLOT(reloadQmlViewer()));
|
em->showEditorInfoBar(Constants::INFO_OUT_OF_SYNC, errorMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlJSLiveTextPreview::reloadQmlViewer()
|
void QmlJSLiveTextPreview::reloadQmlViewer()
|
||||||
|
|||||||
Reference in New Issue
Block a user