]> git.lyx.org Git - features.git/commit
Introduce a struct to handle docstring <-> QString index translation
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 10 Jul 2022 20:44:23 +0000 (22:44 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 10 Nov 2022 11:06:15 +0000 (12:06 +0100)
commita48efa03b1b081ea9b4653f518b0791b2502b3fb
treec81e064d3a24449afc71a179f390ce577b8e7162
parenta99f76477da0a61247f2c886ecd3598eb2dc09ac
Introduce a struct to handle docstring <-> QString index translation

This new code allows to get rid of some hardcoded stuff and will be a
foundation for handling of consecutive spaces.

This code can be used in the future for getTextLayout, x2pos, and
pos2x in order to streamline code. Actually some features as the naked
parameter are here to prepare for this second set of changes.

No change intended. The modified code is much clearer, though.

Related to bug #10117.
src/frontends/qt/GuiFontMetrics.cpp