diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2012-05-25 05:00:28 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-07 21:18:36 +0200 |
commit | 8aac04f705c8f9e4193444b904f9819aea85b326 (patch) | |
tree | 6e1b0117717551f3fdeb11969dff98b4e4444e0f /src/corelib/tools/qtextboundaryfinder.h | |
parent | 824180a12249e48c0e3280fec64940825ce0aa6e (diff) |
QTextBoundaryFinder: Consider soft hyphen as line breaking opportunity
SoftHyphen enum value was added to specify such a boundary reason
Change-Id: I4248909eed6ab8cbca419de4dcf9fe917620a158
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/tools/qtextboundaryfinder.h')
-rw-r--r-- | src/corelib/tools/qtextboundaryfinder.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/corelib/tools/qtextboundaryfinder.h b/src/corelib/tools/qtextboundaryfinder.h index dc26939664..61af89b208 100644 --- a/src/corelib/tools/qtextboundaryfinder.h +++ b/src/corelib/tools/qtextboundaryfinder.h @@ -70,8 +70,8 @@ public: enum BoundaryReason { NotAtBoundary = 0, StartWord = 1, - EndWord = 2 - //Hyphen + EndWord = 2, + SoftHyphen = 4 }; Q_DECLARE_FLAGS( BoundaryReasons, BoundaryReason ) @@ -105,6 +105,8 @@ private: QTextBoundaryFinderPrivate *d; }; +Q_DECLARE_OPERATORS_FOR_FLAGS(QTextBoundaryFinder::BoundaryReasons) + QT_END_NAMESPACE QT_END_HEADER |