forked from qt-creator/qt-creator
Editors: Some renamings to enhance consistency
The base pattern is FooEditor for BaseTextEditor derived classes and FooEditorWidget for BaseTextEditorWidget derived classes. So: CPPEditorWidget -> CppEditorWidget CPPEditorWidgetPrivate -> CppEditorWidgetPrivate ...::EditorWidget -> PythonEditorWidget GLSLTextEditorWidget -> GlslEditorWidget GLSLEditorEditable -> GlslEditor Change-Id: I76d34a3694c2fb35491982d86e83f7e4774c0be6 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -52,14 +52,14 @@ GLSLHoverHandler::~GLSLHoverHandler()
|
||||
|
||||
bool GLSLHoverHandler::acceptEditor(IEditor *editor)
|
||||
{
|
||||
if (qobject_cast<GLSLEditorEditable *>(editor) != 0)
|
||||
if (qobject_cast<GlslEditor *>(editor) != 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
void GLSLHoverHandler::identifyMatch(TextEditor::BaseTextEditor *editor, int pos)
|
||||
{
|
||||
if (GLSLTextEditorWidget *glslEditor = qobject_cast<GLSLTextEditorWidget *>(editor->widget())) {
|
||||
if (GlslEditorWidget *glslEditor = qobject_cast<GlslEditorWidget *>(editor->widget())) {
|
||||
if (! glslEditor->extraSelectionTooltip(pos).isEmpty())
|
||||
setToolTip(glslEditor->extraSelectionTooltip(pos));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user