Remove TableFormat as FormatType from QTextFormat
The enum value is unused, a QTextTableFormat is actually documented to have a FormatType of FrameFormat, and isTableFormat() etc. do the right thing. Task-number: QTBUG-35114 Change-Id: I2f3305630b92f117c1f89b85460457265e5af126 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
This commit is contained in:
parent
9e6f0f16ab
commit
fe3637a70f
@ -524,7 +524,7 @@ Q_GUI_EXPORT QDataStream &operator>>(QDataStream &stream, QTextFormat &fmt)
|
||||
\value BlockFormat The object formats a text block
|
||||
\value CharFormat The object formats a single character
|
||||
\value ListFormat The object formats a list
|
||||
\value TableFormat The object formats a table
|
||||
\omitvalue TableFormat Unused Value, a table's FormatType is FrameFormat.
|
||||
\value FrameFormat The object formats a frame
|
||||
|
||||
\value UserFormat
|
||||
|
@ -141,7 +141,9 @@ public:
|
||||
BlockFormat = 1,
|
||||
CharFormat = 2,
|
||||
ListFormat = 3,
|
||||
#if QT_DEPRECATED_SINCE(5, 3)
|
||||
TableFormat = 4,
|
||||
#endif
|
||||
FrameFormat = 5,
|
||||
|
||||
UserFormat = 100
|
||||
|
Loading…
Reference in New Issue
Block a user