Fixup QTextOption enum formatting

Add missing trailing space, and change to newer "since Qt version"
format for relevant enum values.

Pick-to: 6.7 6.5
Change-Id: Iffe959545d9d608a65c41c8d3ad56f16468cfa73
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
(cherry picked from commit f7d1d5cb0110552c276ff7a4d8bfb79bf1129c87)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Igor Khanin 2024-07-21 13:57:42 +03:00 committed by Qt Cherry-pick Bot
parent 334a83e4a7
commit d84105e71f
2 changed files with 3 additions and 4 deletions

View File

@ -267,8 +267,7 @@ QList<QTextOption::Tab> QTextOption::tabs() const
\value ShowTabsAndSpaces Visualize spaces with little dots, and tabs with little arrows. Non-breaking spaces are
shown differently to breaking spaces.
\value ShowLineAndParagraphSeparators Visualize line and paragraph separators with appropriate symbol characters.
\value ShowDocumentTerminator Visualize the end of the document with a section sign. This enum value was added
in Qt 5.7.
\value [since 5.7] ShowDocumentTerminator Visualize the end of the document with a section sign.
\value AddSpaceForLineAndParagraphSeparators While determining the line-break positions take into account the
space added for drawing a separator character.
\value SuppressColors Suppress all color changes in the character formats (except the main selection).

View File

@ -62,7 +62,7 @@ public:
WordWrap,
ManualWrap,
WrapAnywhere,
WrapAtWordBoundaryOrAnywhere
WrapAtWordBoundaryOrAnywhere,
};
inline void setWrapMode(WrapMode wrap) { wordWrap = wrap; }
inline WrapMode wrapMode() const { return static_cast<WrapMode>(wordWrap); }
@ -73,7 +73,7 @@ public:
AddSpaceForLineAndParagraphSeparators = 0x4,
SuppressColors = 0x8,
ShowDocumentTerminator = 0x10,
IncludeTrailingSpaces = 0x80000000
IncludeTrailingSpaces = 0x80000000,
};
Q_DECLARE_FLAGS(Flags, Flag)
inline void setFlags(Flags flags);