lyx_mirror/src/frontends
Jean-Marc Lasgouttes 6e6976fbc5 Handle the case where breakAt cuts after trailing space
In this case, the extra element returned should empty but valid. The
row flag BreakAfter is set to indicate that we have a break there
(this principle will be used more generally in a forthcoming commit).

To detect that we cut at the trailing space, it is necessary to rely
on the difference between QTextLine::horizontalAdvance() and
QTextLine::naturalTextWidth() when the flag
QTextOption::IncludeTrailingSpaces is used: the trailing space is
taken into account in the later, but not in the former.

Somme comments have been added to make code intent clearer.
2021-12-07 17:04:47 +01:00
..
qt Handle the case where breakAt cuts after trailing space 2021-12-07 17:04:47 +01:00
tests Revert "Amend 3093789e for cmake build" 2020-11-30 10:19:22 +01:00
.gitignore
alert.h Remove redundant const & for primitive types 2020-10-19 12:50:07 +03:00
Application.h Add method to check whether LyX runs in dark mode 2021-01-19 09:21:36 +01:00
CaretGeometry.h Forgot this. 2020-11-24 21:20:25 +01:00
Clipboard.h #8055 add support for system-wide find buffer on Mac 2021-02-14 18:56:25 +01:00
CMakeLists.txt prevent Qt6 from defining UNICODE (Qt6.1.1 and upwards) 2021-06-19 10:48:49 +02:00
Delegates.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
FontLoader.h
FontMetrics.h Change FontMetrics::breakAt to return a position 2021-12-07 17:04:46 +01:00
KeyModifier.h Simplify KeyModifier 2020-11-30 10:44:28 +02:00
KeySymbol.h
Makefile.am Use new signal library nod instead of boost::signals2 2020-12-13 23:11:19 +02:00
mouse_state.h
NullPainter.h Fix bug #12169 2021-02-27 13:27:05 -05:00
Painter.h Fix bug #12169 2021-02-27 13:27:05 -05:00
Selection.h Make primary-selection unknown when not supported 2021-11-22 10:30:43 +01:00
WorkArea.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
WorkAreaManager.cpp Constify 2020-10-25 09:28:34 +02:00
WorkAreaManager.h Constify 2020-10-25 09:28:34 +02:00