]> git.lyx.org Git - features.git/commit
Cleanup Painter text() API
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 20 Mar 2016 19:02:05 +0000 (20:02 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 30 May 2016 12:55:41 +0000 (14:55 +0200)
commit598f7e4a45dc10232a42db34e5ca887615c5306f
tree675d4944394780fa7745aa7648211687af04d944
parent333f6fcf07b35f240bcc1190dd21b0dc068a9129
Cleanup Painter text() API

* remove optional arguments to the helpers that use a FontInfo
* add a textwidth argument to the text() methods that are used by rowpainter.

Now textwidth is only computed if a null value was passed to the
text() method. This means that in the use case of rowpainter, no
textwidth needs to be computed.
development/PAINTING_ANALYSIS
src/RowPainter.cpp
src/frontends/Painter.h
src/frontends/qt4/GuiPainter.cpp
src/frontends/qt4/GuiPainter.h