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>
This commit is contained in:
Björn Schäpers
2021-01-24 17:11:02 +01:00
committed by Björn Schäpers
parent 069efa9483
commit d9cd74f06d
13 changed files with 73 additions and 1 deletions

View File

@@ -621,6 +621,8 @@ private:
friend class Internal::TextEditorWidgetPrivate;
friend class Internal::TextEditorOverlay;
friend class RefactorOverlay;
void updateVisualWrapColumn();
};
class TEXTEDITOR_EXPORT TextEditorLinkLabel : public Utils::ElidingLabel