]> git.lyx.org Git - features.git/commit
Allow automatic text direction in Painter::text()
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 31 May 2016 12:49:13 +0000 (14:49 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 1 Jun 2016 11:48:15 +0000 (13:48 +0200)
commit7855c0c1fc98b154768d3014883873387bd64c95
treeb14a19f897f866cd0d59b34e89c81944bfb44f31
parenta762244ca675d0cc77441307fe50ef392335373d
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.

This is reimplementation of 51ee267c. A direct cherry-pick was not possible.

Fixes bug #10169.
src/frontends/Painter.h
src/frontends/qt4/GuiPainter.cpp
src/frontends/qt4/GuiPainter.h
status.22x