diff options
author | Eike Ziller <eike.ziller@nokia.com> | 2012-02-14 16:43:51 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2012-02-20 13:32:49 +0100 |
commit | d66acb51d0c8b511df9f679806cbd3d84cce41ef (patch) | |
tree | 58289c9e7f7bc6107b4d620fad791a206d097555 /src/plugins/qmljsinspector/qmljslivetextpreview.cpp | |
parent | 266da3568d2db185f67227d38e29cd20d28fb2bd (diff) | |
download | qt-creator-d66acb51d0c8b511df9f679806cbd3d84cce41ef.tar.gz |
Rename IFile->IDocument and FileManager->DocumentManager
And adapt the other API respectively.
Change-Id: I1e04e555409be09242db6890f9e013396f83aeed
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/qmljsinspector/qmljslivetextpreview.cpp')
-rw-r--r-- | src/plugins/qmljsinspector/qmljslivetextpreview.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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(); } |