diff options
Diffstat (limited to 'src/plugins/qmljsinspector')
-rw-r--r-- | src/plugins/qmljsinspector/qmljsinspector.cpp | 6 | ||||
-rw-r--r-- | src/plugins/qmljsinspector/qmljslivetextpreview.cpp | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/qmljsinspector/qmljsinspector.cpp b/src/plugins/qmljsinspector/qmljsinspector.cpp index 8a9912c494..f499111533 100644 --- a/src/plugins/qmljsinspector/qmljsinspector.cpp +++ b/src/plugins/qmljsinspector/qmljsinspector.cpp @@ -438,7 +438,7 @@ void InspectorUi::serverReloaded() void InspectorUi::removePreviewForEditor(Core::IEditor *oldEditor) { - if (QmlJSLiveTextPreview *preview = m_textPreviews.value(oldEditor->file()->fileName())) { + if (QmlJSLiveTextPreview *preview = m_textPreviews.value(oldEditor->document()->fileName())) { preview->unassociateEditor(oldEditor); } } @@ -453,7 +453,7 @@ QmlJSLiveTextPreview *InspectorUi::createPreviewForEditor(Core::IEditor *newEdit && newEditor->id() == QmlJSEditor::Constants::C_QMLJSEDITOR_ID ) { - QString filename = newEditor->file()->fileName(); + QString filename = newEditor->document()->fileName(); QmlJS::Document::Ptr doc = modelManager()->snapshot().document(filename); if (!doc) { if (filename.endsWith(".qml")) { @@ -482,7 +482,7 @@ QmlJSLiveTextPreview *InspectorUi::createPreviewForEditor(Core::IEditor *newEdit m_clientProxy, SLOT(reloadQmlViewer())); connect(preview, SIGNAL(disableLivePreviewRequested()), SLOT(disableLivePreview())); - m_textPreviews.insert(newEditor->file()->fileName(), preview); + m_textPreviews.insert(newEditor->document()->fileName(), preview); preview->associateEditor(newEditor); preview->updateDebugIds(); } diff --git a/src/plugins/qmljsinspector/qmljslivetextpreview.cpp b/src/plugins/qmljsinspector/qmljslivetextpreview.cpp index dee2e8a435..17eed26cde 100644 --- a/src/plugins/qmljsinspector/qmljslivetextpreview.cpp +++ b/src/plugins/qmljsinspector/qmljslivetextpreview.cpp @@ -576,7 +576,7 @@ void QmlJSLiveTextPreview::showExperimentalWarning() tr("You changed a QML file in Live Preview mode, which modifies the running QML application. " "In case of unexpected behavior, please reload the QML application.")); info.setCustomButtonInfo(tr("Disable Live Preview"), this, SLOT(disableLivePreview())); - editor.data()->file()->infoBar()->addInfo(info); + editor.data()->editorDocument()->infoBar()->addInfo(info); } } @@ -602,7 +602,7 @@ void QmlJSLiveTextPreview::showSyncWarning(UnsyncronizableChangeType unsyncroniz foreach (QWeakPointer<QmlJSEditor::QmlJSTextEditorWidget> editor, m_editors) if (editor) - editor.data()->file()->infoBar()->addInfo(Core::InfoBarEntry( + editor.data()->editorDocument()->infoBar()->addInfo(Core::InfoBarEntry( QLatin1String(Constants::INFO_OUT_OF_SYNC), errorMessage)); } @@ -610,7 +610,7 @@ void QmlJSLiveTextPreview::reloadQmlViewer() { foreach (QWeakPointer<QmlJSEditor::QmlJSTextEditorWidget> editor, m_editors) if (editor) - editor.data()->file()->infoBar()->removeInfo(Constants::INFO_OUT_OF_SYNC); + editor.data()->editorDocument()->infoBar()->removeInfo(Constants::INFO_OUT_OF_SYNC); emit reloadQmlViewerRequested(); } @@ -618,7 +618,7 @@ void QmlJSLiveTextPreview::disableLivePreview() { foreach (QWeakPointer<QmlJSEditor::QmlJSTextEditorWidget> editor, m_editors) if (editor) - editor.data()->file()->infoBar()->removeInfo(Constants::INFO_OUT_OF_SYNC); + editor.data()->editorDocument()->infoBar()->removeInfo(Constants::INFO_OUT_OF_SYNC); emit disableLivePreviewRequested(); } |