Commit c358a685 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Do still pass the typed character to the indenter

Some indenters need this information. If the C++ indenter misbehaves
based on the typed character, then that should be fixed there.

This reverts part of commit 4c07de50.

Reviewed-by: Roberto Raggi
parent 5b132339
......@@ -992,7 +992,7 @@ void BaseTextEditor::keyPressEvent(QKeyEvent *e)
QTextCursor cursor = textCursor();
const QString text = e->text();
indent(document(), cursor, QChar::Null);
indent(document(), cursor,;
#if 0
TextEditDocumentLayout *documentLayout = qobject_cast<TextEditDocumentLayout*>(document()->documentLayout());
QTC_ASSERT(documentLayout, return);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment