forked from qt-creator/qt-creator
Editors: Continue refactoring indenters out of the editors.
This is pretty much a complement of commit 3a684586fa,
which is an attempt to make editors and indenters a bit more decoupled.
Reviewed-by: Thorbjorn Lindeijer
This commit is contained in:
@@ -70,6 +70,17 @@ bool Indenter::doIsElectricalCharacter(const QChar &) const
|
||||
return false;
|
||||
}
|
||||
|
||||
void Indenter::doIndentBlock(QTextDocument *doc,
|
||||
const QTextBlock &block,
|
||||
const QChar &typedChar,
|
||||
BaseTextEditor *editor)
|
||||
{
|
||||
Q_UNUSED(doc);
|
||||
Q_UNUSED(block);
|
||||
Q_UNUSED(typedChar);
|
||||
Q_UNUSED(editor);
|
||||
}
|
||||
|
||||
void Indenter::doIndent(QTextDocument *doc, const QTextCursor &cursor, const QChar &typedChar, BaseTextEditor *editor)
|
||||
{
|
||||
if (cursor.hasSelection()) {
|
||||
|
||||
Reference in New Issue
Block a user