summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/qml/qmlv8debuggerclient.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-05-07 16:25:04 +0200
committerhjk <hjk121@nokiamail.com>2014-05-13 11:48:30 +0200
commit6e584b5b4953b996ef07c4625adf178c59de24f7 (patch)
tree2af702c76bf5323c331154b553aacbe5523592f5 /src/plugins/debugger/qml/qmlv8debuggerclient.cpp
parent226c1abc89888fa2f272d92c466725fd6dad65db (diff)
downloadqt-creator-6e584b5b4953b996ef07c4625adf178c59de24f7.tar.gz
DocumentModel: Make interface static
Move item model implementation to private, adjust user code. Change-Id: Ifbe94e7c7b9b1e8be1b4c531958dbd7a9413af13 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/debugger/qml/qmlv8debuggerclient.cpp')
-rw-r--r--src/plugins/debugger/qml/qmlv8debuggerclient.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp
index 803727c8df..1316793217 100644
--- a/src/plugins/debugger/qml/qmlv8debuggerclient.cpp
+++ b/src/plugins/debugger/qml/qmlv8debuggerclient.cpp
@@ -1777,7 +1777,7 @@ void QmlV8DebuggerClient::highlightExceptionCode(int lineNumber,
const QString &filePath,
const QString &errorMessage)
{
- QList<IEditor *> editors = EditorManager::documentModel()->editorsForFilePath(filePath);
+ QList<IEditor *> editors = DocumentModel::editorsForFilePath(filePath);
// set up the format for the errors
QTextCharFormat errorFormat;
@@ -1816,11 +1816,9 @@ void QmlV8DebuggerClient::highlightExceptionCode(int lineNumber,
void QmlV8DebuggerClient::clearExceptionSelection()
{
- DocumentModel *documentModel = EditorManager::documentModel();
- QList<IEditor *> openedEditors = documentModel->editorsForDocuments(documentModel->openedDocuments());
QList<QTextEdit::ExtraSelection> selections;
- foreach (IEditor *editor, openedEditors) {
+ foreach (IEditor *editor, DocumentModel::editorsForOpenedDocuments()) {
TextEditor::BaseTextEditorWidget *ed = qobject_cast<TextEditor::BaseTextEditorWidget *>(editor->widget());
if (!ed)
continue;