forked from qt-creator/qt-creator
GlslEditor: Code cosmetics
Namespaces, CamelCase names. Change-Id: I6ced0dccb073bda0fc82fed1831886fb9f62bf65 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -38,24 +38,23 @@
|
||||
|
||||
#include <QTextCursor>
|
||||
|
||||
using namespace GLSLEditor;
|
||||
using namespace GLSLEditor::Internal;
|
||||
using namespace Core;
|
||||
|
||||
GLSLHoverHandler::GLSLHoverHandler(QObject *parent) : BaseHoverHandler(parent)
|
||||
namespace GLSLEditor {
|
||||
namespace Internal {
|
||||
|
||||
GlslHoverHandler::GlslHoverHandler(QObject *parent) : BaseHoverHandler(parent)
|
||||
{}
|
||||
|
||||
GLSLHoverHandler::~GLSLHoverHandler()
|
||||
GlslHoverHandler::~GlslHoverHandler()
|
||||
{}
|
||||
|
||||
bool GLSLHoverHandler::acceptEditor(IEditor *editor)
|
||||
bool GlslHoverHandler::acceptEditor(IEditor *editor)
|
||||
{
|
||||
if (qobject_cast<GlslEditor *>(editor) != 0)
|
||||
return true;
|
||||
return false;
|
||||
return qobject_cast<GlslEditor *>(editor) != 0;
|
||||
}
|
||||
|
||||
void GLSLHoverHandler::identifyMatch(TextEditor::BaseTextEditor *editor, int pos)
|
||||
void GlslHoverHandler::identifyMatch(TextEditor::BaseTextEditor *editor, int pos)
|
||||
{
|
||||
if (GlslEditorWidget *glslEditor = qobject_cast<GlslEditorWidget *>(editor->widget())) {
|
||||
if (! glslEditor->extraSelectionTooltip(pos).isEmpty())
|
||||
@@ -63,8 +62,11 @@ void GLSLHoverHandler::identifyMatch(TextEditor::BaseTextEditor *editor, int pos
|
||||
}
|
||||
}
|
||||
|
||||
void GLSLHoverHandler::decorateToolTip()
|
||||
void GlslHoverHandler::decorateToolTip()
|
||||
{
|
||||
if (Qt::mightBeRichText(toolTip()))
|
||||
setToolTip(Qt::escape(toolTip()));
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace GLSLEditor
|
||||
|
||||
Reference in New Issue
Block a user