diff options
author | hjk <qtc-committer@nokia.com> | 2011-02-21 16:02:26 +0100 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2011-02-22 11:23:53 +0100 |
commit | f576ad9f2c169bfa4d336ba2b3b1918f03df6916 (patch) | |
tree | f9e708ea1972b10d5465c915e7b9d0f7572f671f /src/plugins/cpptools/cppmodelmanager.cpp | |
parent | e32cf192f7ba34dda96b61507b440c6a17b51a0c (diff) | |
download | qt-creator-f576ad9f2c169bfa4d336ba2b3b1918f03df6916.tar.gz |
texteditor: merge ITextEditable into ITextEditor
rename BastTextEditor->BaseTextEditorWidget, BaseTextEditorEditable->BaseTextEditor
rename BaseTextEditor{,Widget} subclasses
rename editableInterface->editorInterface
rename createEditableInterface->createEditor
minor cleanups after renamings
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.cpp')
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index fc6c55896f..0caa309cab 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -1006,14 +1006,14 @@ void CppModelManager::onDocumentUpdated(Document::Ptr doc) if (! textEditor) continue; - TextEditor::BaseTextEditor *ed = qobject_cast<TextEditor::BaseTextEditor *>(textEditor->widget()); + TextEditor::BaseTextEditorWidget *ed = qobject_cast<TextEditor::BaseTextEditorWidget *>(textEditor->widget()); if (! ed) continue; - QList<TextEditor::BaseTextEditor::BlockRange> blockRanges; + QList<TextEditor::BaseTextEditorWidget::BlockRange> blockRanges; foreach (const Document::Block &block, doc->skippedBlocks()) { - blockRanges.append(TextEditor::BaseTextEditor::BlockRange(block.begin(), block.end())); + blockRanges.append(TextEditor::BaseTextEditorWidget::BlockRange(block.begin(), block.end())); } QList<QTextEdit::ExtraSelection> selections; @@ -1149,14 +1149,14 @@ void CppModelManager::updateEditorSelections() continue; TextEditor::ITextEditor *textEditor = ed.textEditor; - TextEditor::BaseTextEditor *editor = qobject_cast<TextEditor::BaseTextEditor *>(textEditor->widget()); + TextEditor::BaseTextEditorWidget *editor = qobject_cast<TextEditor::BaseTextEditorWidget *>(textEditor->widget()); if (! editor) continue; else if (editor->document()->revision() != ed.revision) continue; // outdated - editor->setExtraSelections(TextEditor::BaseTextEditor::CodeWarningsSelection, + editor->setExtraSelections(TextEditor::BaseTextEditorWidget::CodeWarningsSelection, ed.selections); editor->setIfdefedOutBlocks(ed.ifdefedOutBlocks); |