QTextBoundaryFinder: Introduce BoundaryReason::MandatoryBreak flag
authorKonstantin Ritt <ritt.ks@gmail.com>
Thu, 4 Oct 2012 03:52:13 +0000 (06:52 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 10 Oct 2012 11:26:13 +0000 (13:26 +0200)
commitf0ee31dc93813808a59a0fe576da120de2caf074
tree4894feb2cdf725f4bf31b7c04b91e213ed08e217
parent008e5ba61a68846ad29c65a2fe10b8c19c74f6eb
QTextBoundaryFinder: Introduce BoundaryReason::MandatoryBreak flag

that will be returned by boundaryReasons() when the boundary finder
is at the line end position (CR, LF, NewLine Function, End of Text, etc.).
The MandatoryBreak flag, if set, means the text should be wrapped at a given position.

Change-Id: I32d4f570935d2e015bfc5f18915396a15f009fde
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/3rdparty/harfbuzz/src/harfbuzz-shaper.h
src/corelib/tools/qtextboundaryfinder.cpp
src/corelib/tools/qtextboundaryfinder.h
src/corelib/tools/qunicodetools.cpp
src/corelib/tools/qunicodetools_p.h
tests/auto/corelib/tools/qtextboundaryfinder/tst_qtextboundaryfinder.cpp