Renamed CPPHighlighter to CppHighlighter

Lowercase is the more prevalent style in this plugin and CppTools.
Unfortunately CPPEditor can't be named CppEditor cause of the CppEditor
namespace.
This commit is contained in:
Thorbjørn Lindeijer
2008-12-16 13:19:11 +01:00
parent 1efe71992b
commit 442737d6e3
3 changed files with 9 additions and 9 deletions

View File

@@ -155,7 +155,7 @@ CPPEditor::CPPEditor(QWidget *parent) :
setParenthesesMatchingEnabled(true);
setMarksVisible(true);
setCodeFoldingVisible(true);
baseTextDocument()->setSyntaxHighlighter(new CPPHighlighter);
baseTextDocument()->setSyntaxHighlighter(new CppHighlighter);
// new QShortcut(QKeySequence("Ctrl+Alt+M"), this, SLOT(foo()), 0, Qt::WidgetShortcut);
#ifdef WITH_TOKEN_MOVE_POSITION
@@ -683,7 +683,7 @@ const char *CPPEditorEditable::kind() const
void CPPEditor::setFontSettings(const TextEditor::FontSettings &fs)
{
TextEditor::BaseTextEditor::setFontSettings(fs);
CPPHighlighter *highlighter = qobject_cast<CPPHighlighter*>(baseTextDocument()->syntaxHighlighter());
CppHighlighter *highlighter = qobject_cast<CppHighlighter*>(baseTextDocument()->syntaxHighlighter());
if (!highlighter)
return;