path: root/dist
diff options
authorKonstantin Ritt <>2012-10-12 06:49:27 +0300
committerThe Qt Project <>2012-10-12 07:44:51 +0200
commitda7111be51cab7c7484afd15ec9de7fb852ae305 (patch)
tree03ffbe7a5cb8e49ada9b521bf5f613d501cbbb3a /dist
parent8b41f22f5c4bb401182e2b458f61177b92bd48ce (diff)
QTextBoundaryFinder: Fix handling of break opportunities
Add BoundaryReason::BreakOpportunity flag that will be returned by the boundaryReasons() when the boundary finder is at the break opportunity position that might be not an item boundary. This is the same as (StartWord || EndWord) in Grapheme and Sentence modes; in Word and Line modes, BreakOpportunity flag might occur between the words or in between of Line boundaries (e.g. in conjunction with SoftHyphen flag). In other words, the text boundaries are always break opportunities, but not vice versa. StartWord and EndWord flags has been deprecated by new StartOfItem and EndOfItem flags which are not about the word boundaries only. In line breaking, StartOfItem and EndOfItem are set for the mandatory breaks only. Change-Id: I79bf297e2b988f5976f30cff0c8ca616385f6552 Reviewed-by: Konstantin Ritt <>
Diffstat (limited to 'dist')
1 files changed, 9 insertions, 0 deletions
diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0
index f2164087eb..57736472bc 100644
--- a/dist/changes-5.0.0
+++ b/dist/changes-5.0.0
@@ -470,6 +470,15 @@ QtCore
variable. qInstallMsgHandler() has been deprecated, and should be replaced with
+* QTextBoundaryFinder
+ - [QTBUG-6498] The word start and word end boundaries detection is now
+ unaware of surrounding white space characters.
+ - SoftHyphen enum value has been added to specify a line break opportunity
+ at a soft hyphen (SHY) character.
+ - MandatoryBreak enum value has been added to specify a mandatory (aka "hard") line breaks.
+ - StartWord/EndWord enum values has been logically replaced with StartOfItem/EndOfItem ones
+ to mention they are not about the word boundaries only.
* Accessibility has been refactored. The hierachy of accessible objects is implemented via