GlslEditor: Code cosmetics

Namespaces, CamelCase names.

Change-Id: I6ced0dccb073bda0fc82fed1831886fb9f62bf65
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
hjk
2014-08-21 08:29:55 +02:00
parent 2481e71d18
commit bb8575c60c
13 changed files with 167 additions and 158 deletions

View File

@@ -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