Highlight matches when opening editor from advanced text search.

When you close the search pane it will remove the highlight, even if the
find tool bar is open with a different search, though.

Task-number: QTCREATORBUG-2606
Change-Id: I7defe15c844d37ae80ab66c6b9e68e1ef1afdf92
Reviewed-on: http://codereview.qt.nokia.com/2786
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
Eike Ziller
2011-08-09 11:08:01 +02:00
parent 86e2b72486
commit b1c881ceaa
10 changed files with 87 additions and 37 deletions

View File

@@ -154,7 +154,7 @@ protected:
} // namespace Internal
} // namespace TextEditor
ITextEditor *BaseTextEditorWidget::openEditorAt(const QString &fileName, int line, int column,
Core::IEditor *BaseTextEditorWidget::openEditorAt(const QString &fileName, int line, int column,
const QString &editorKind,
Core::EditorManager::OpenEditorFlags flags,
bool *newEditor)
@@ -170,7 +170,7 @@ ITextEditor *BaseTextEditorWidget::openEditorAt(const QString &fileName, int lin
return texteditor;
}
return 0;
return editor;
}
static void convertToPlainText(QString &txt)