summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/textdocument.h
diff options
context:
space:
mode:
authorVladyslav Gapchych <gavlig@gmail.com>2015-07-16 15:56:25 +0200
committerDavid Schulz <david.schulz@theqtcompany.com>2015-07-17 12:45:11 +0000
commitaab3b0fc662a9124d48ed00e08cffeefe5f55ce5 (patch)
tree207b129fbeaf17ac0ca76dd56118a97fffb0c615 /src/plugins/texteditor/textdocument.h
parentc5bca90b0ed73af5ba6f0332f630a7602675397b (diff)
downloadqt-creator-aab3b0fc662a9124d48ed00e08cffeefe5f55ce5.tar.gz
TextEditor: Fixed indentation in block selection mode
Made indentation work for block selection mode the same way it does in default mode: 1. delete text if any selected 2. indent block if no text selected 3. indent last line if cursor in first column (QTCREATORBUG-12697) Task-number: QTCREATORBUG-12697 Change-Id: I1f6b218b389f3fdc5232ec02857aa76f5ccbaaf0 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor/textdocument.h')
-rw-r--r--src/plugins/texteditor/textdocument.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/texteditor/textdocument.h b/src/plugins/texteditor/textdocument.h
index 56715d2c9f..987e1bcdff 100644
--- a/src/plugins/texteditor/textdocument.h
+++ b/src/plugins/texteditor/textdocument.h
@@ -89,8 +89,10 @@ public:
Indenter *indenter() const;
void autoIndent(const QTextCursor &cursor, QChar typedChar = QChar::Null);
void autoReindent(const QTextCursor &cursor);
- QTextCursor indent(const QTextCursor &cursor);
- QTextCursor unindent(const QTextCursor &cursor);
+ QTextCursor indent(const QTextCursor &cursor, bool blockSelection = false, int column = 0,
+ int *offset = 0);
+ QTextCursor unindent(const QTextCursor &cursor, bool blockSelection = false, int column = 0,
+ int *offset = 0);
TextMarks marks() const;
bool addMark(TextMark *mark);