summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qtextboundaryfinder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qtextboundaryfinder.h')
-rw-r--r--src/corelib/tools/qtextboundaryfinder.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/corelib/tools/qtextboundaryfinder.h b/src/corelib/tools/qtextboundaryfinder.h
index c752623844..6e33167bcb 100644
--- a/src/corelib/tools/qtextboundaryfinder.h
+++ b/src/corelib/tools/qtextboundaryfinder.h
@@ -63,16 +63,20 @@ public:
enum BoundaryType {
Grapheme,
Word,
- Line,
- Sentence
+ Sentence,
+ Line
};
enum BoundaryReason {
NotAtBoundary = 0,
- StartWord = 0x10,
- EndWord = 0x20,
- MandatoryBreak = 0x40,
- SoftHyphen = 0x80
+ BreakOpportunity = 0x1f,
+ StartOfItem = 0x20,
+ EndOfItem = 0x40,
+ MandatoryBreak = 0x80,
+ SoftHyphen = 0x100,
+ // ### Qt6: remove
+ StartWord = 0x1000,
+ EndWord = 0x2000
};
Q_DECLARE_FLAGS( BoundaryReasons, BoundaryReason )