aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/tabsettings.h
diff options
context:
space:
mode:
authormae <qt-info@nokia.com>2010-07-02 15:21:36 +0200
committermae <qt-info@nokia.com>2010-07-02 15:23:00 +0200
commitbc0d5e38e4f3c2d78cf918ca9127aa747d53ce3c (patch)
tree4f51077a7efc68adeb2b63af0b2e63098854cde6 /src/plugins/texteditor/tabsettings.h
parentdf6fcd363a27f7415a2535b864dbc4e199fd5bcc (diff)
Prepared padding support (as opposed to indent)
This will be hooked up with the new indenter. If you use tabs for spaces, and have tabSize==indentSize, we will be able to preserve spaces for padding nonetheless.
Diffstat (limited to 'src/plugins/texteditor/tabsettings.h')
-rw-r--r--src/plugins/texteditor/tabsettings.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/texteditor/tabsettings.h b/src/plugins/texteditor/tabsettings.h
index 59ae3d4c00..3a15787b09 100644
--- a/src/plugins/texteditor/tabsettings.h
+++ b/src/plugins/texteditor/tabsettings.h
@@ -65,10 +65,11 @@ struct TEXTEDITOR_EXPORT TabSettings
QString indentationString(int startColumn, int targetColumn, const QTextBlock &currentBlock = QTextBlock()) const;
QString indentationString(const QString &text) const;
int indentationColumn(const QString &text) const;
+ int maximumPadding(const QString &text) const;
bool cursorIsAtBeginningOfLine(const QTextCursor &cursor) const;
- void indentLine(QTextBlock block, int newIndent) const;
+ void indentLine(QTextBlock block, int newIndent, int padding = 0) const;
void reindentLine(QTextBlock block, int delta) const;
int trailingWhitespaces(const QString &text) const;