aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/glsleditor/glslindenter.cpp
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2010-11-30 14:14:33 +0100
committerLeandro Melo <leandro.melo@nokia.com>2010-12-01 09:07:15 +0100
commitea8cb4764be669f72472b5f0b056e54f8075e58f (patch)
treee603b8fe375a06c9eb72c0d22f84c15b9d98a961 /src/plugins/glsleditor/glslindenter.cpp
parente117f04fabde000f4c0aae7cc1a82c58da1ba4c3 (diff)
Editors: Move auto-completion code out of the editor
This is basically a continuation of the commits which refactor code out of the base text editor. For instance, 36fa1de4c6a15b2c44736b3491679dd6cfbe27ce and 3a684586fabf103b8e09cef31a18ffae1fd9f0c7. Also removed the doXXXX() forwarding methods.
Diffstat (limited to 'src/plugins/glsleditor/glslindenter.cpp')
-rw-r--r--src/plugins/glsleditor/glslindenter.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/glsleditor/glslindenter.cpp b/src/plugins/glsleditor/glslindenter.cpp
index 8fecc7e2d3..86a216164e 100644
--- a/src/plugins/glsleditor/glslindenter.cpp
+++ b/src/plugins/glsleditor/glslindenter.cpp
@@ -47,7 +47,7 @@ GLSLIndenter::GLSLIndenter()
GLSLIndenter::~GLSLIndenter()
{}
-bool GLSLIndenter::doIsElectricalCharacter(const QChar &ch) const
+bool GLSLIndenter::isElectricCharacter(const QChar &ch) const
{
if (ch == QLatin1Char('{') ||
ch == QLatin1Char('}') ||
@@ -58,10 +58,10 @@ bool GLSLIndenter::doIsElectricalCharacter(const QChar &ch) const
return false;
}
-void GLSLIndenter::doIndentBlock(QTextDocument *doc,
- const QTextBlock &block,
- const QChar &typedChar,
- TextEditor::BaseTextEditor *editor)
+void GLSLIndenter::indentBlock(QTextDocument *doc,
+ const QTextBlock &block,
+ const QChar &typedChar,
+ TextEditor::BaseTextEditor *editor)
{
Q_UNUSED(doc)
@@ -86,10 +86,10 @@ void GLSLIndenter::doIndentBlock(QTextDocument *doc,
ts.indentLine(block, indent + padding, padding);
}
-void GLSLIndenter::doIndent(QTextDocument *doc,
- const QTextCursor &cursor,
- const QChar &typedChar,
- TextEditor::BaseTextEditor *editor)
+void GLSLIndenter::indent(QTextDocument *doc,
+ const QTextCursor &cursor,
+ const QChar &typedChar,
+ TextEditor::BaseTextEditor *editor)
{
if (cursor.hasSelection()) {
QTextBlock block = doc->findBlock(cursor.selectionStart());