]> git.lyx.org Git - lyx.git/commit
Allow automatic text direction in Painter::text()
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 31 May 2016 07:13:18 +0000 (09:13 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 31 May 2016 09:52:30 +0000 (11:52 +0200)
commit51ee267c6e8336727b3d94db424a8efd1cfc4a1e
tree9414a46f034fe8133b99e93a55d7c762b8cb4b72
parentd88a813701b3b9a4788722d7d71b3a2b82452b84
Allow automatic text direction in Painter::text()

It is wrong to assume that direction is left-to-right when no indication exist.

Add a new enum with values LtR, RtL and Auto to be used as argument of
the private text() methods. When direction is Auto, let Qt decide how
the string shall be layed out.

Fixes bug #10169.
src/frontends/qt4/GuiPainter.cpp
src/frontends/qt4/GuiPainter.h