aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/marginsettings.h
diff options
context:
space:
mode:
authorBjörn Schäpers <bjoern@hazardy.de>2021-01-24 17:11:02 +0100
committerBjörn Schäpers <qt-codereview@hazardy.de>2021-01-29 17:03:07 +0000
commitd9cd74f06db92a03a2e3a3fa2bdd6981da33ddd2 (patch)
treef0435cb6baf598adbba3cc2dc4fd7af03245dfd1 /src/plugins/texteditor/marginsettings.h
parent069efa948367c8ddaaf4fecef3ae2625538cd0b5 (diff)
Texteditor: Add ability to get margin from indenter
And implement it in the clang-format plugin to use the ColumnLimit from the style. This would be quite useful if you're working on different projects with a different ColumnLimit. This way you get an visual representation and do not only have to rely on clang-format. Change-Id: Ib0258e3fba6f45f0f46ce612f806527a47868ad9 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor/marginsettings.h')
-rw-r--r--src/plugins/texteditor/marginsettings.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/texteditor/marginsettings.h b/src/plugins/texteditor/marginsettings.h
index ff8be7bcde..2dd2e26aa4 100644
--- a/src/plugins/texteditor/marginsettings.h
+++ b/src/plugins/texteditor/marginsettings.h
@@ -49,6 +49,7 @@ public:
bool equals(const MarginSettings &other) const;
bool m_showMargin;
+ bool m_useIndenter;
int m_marginColumn;
};