fakevim: implement indenting a block and autoindent

This commit is contained in:
Martin Aumueller
2009-02-03 10:39:57 +01:00
parent c446f9efc6
commit f2940adb4d
3 changed files with 52 additions and 3 deletions

View File

@@ -36,6 +36,7 @@
#include <QtCore/QObject>
#include <QtGui/QTextEdit>
#include <QtGui/QTextBlock>
QT_BEGIN_NAMESPACE
class QString;
@@ -80,6 +81,7 @@ signals:
void writeFileRequested(bool *handled,
const QString &fileName, const QString &contents);
void moveToMatchingParenthesis(bool *moved, bool *forward, QTextCursor *cursor);
void indentRegion(int *amount, QTextBlock begin, QTextBlock end, QChar typedChar);
private:
bool eventFilter(QObject *ob, QEvent *ev);