diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2010-09-13 12:36:18 +0200 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2010-09-13 12:38:34 +0200 |
commit | 26114a23d0af8b876b85870e5e7777cbd9626e63 (patch) | |
tree | 44ef068fe4eb28dfa7fc93870f6e6ee5439870ae /src/plugins/texteditor/tabsettings.h | |
parent | 642b6fb0d3511f5d125c7079f8a3db77fc3c5da4 (diff) |
Indenter: Add an option to control the padding style.
Reviewed-by: Thorbjorn Lindeijer
Diffstat (limited to 'src/plugins/texteditor/tabsettings.h')
-rw-r--r-- | src/plugins/texteditor/tabsettings.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/texteditor/tabsettings.h b/src/plugins/texteditor/tabsettings.h index 75ec461f0c..66c7fa0e6a 100644 --- a/src/plugins/texteditor/tabsettings.h +++ b/src/plugins/texteditor/tabsettings.h @@ -52,6 +52,13 @@ public: TabLeadingWhitespaceIndents = 2 }; + // This enum must match the indexes of paddingMode widget + enum PaddingMode { + DisablePadding = 0, + PadWithSpaces = 1, + PadWithIndent = 2 + }; + TabSettings(); void toSettings(const QString &category, QSettings *s) const; @@ -89,6 +96,7 @@ public: bool m_indentBraces; bool m_doubleIndentBlocks; TabKeyBehavior m_tabKeyBehavior; + PaddingMode m_paddingMode; bool equals(const TabSettings &ts) const; }; |