]> git.lyx.org Git - features.git/commit
Compute metrics when graphics is updated
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 14 Sep 2017 13:50:30 +0000 (15:50 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 15 Feb 2018 11:29:25 +0000 (12:29 +0100)
commita1579c583acb22a7f5dae80a9bfe7707774f49a4
treee9e22fef26b0989653d180222daec81d284c68ea
parent9bb41f09436ad23fb881dd87e2caf3628b03403f
Compute metrics when graphics is updated

Remove the old schedule_redraw_ mechanism that was only useful because
of our synchronous drawing code. Now that actual painting is
scheduled instead of forced, it becomes pointless.

Rename WorkArea::redraw(bool) to scheduleRedraw(bool), to show that
the drawing is not done right away.

In GuiView::updateInset, call scheduleRedraw(true), so that metrics
are correctly computed (this was the whole point of the exercise).

(cherry picked from commit a31d3dc67dce9655bee9f1b0a2bc2188d7d97453)
src/frontends/WorkArea.h
src/frontends/WorkAreaManager.cpp
src/frontends/qt4/GuiView.cpp
src/frontends/qt4/GuiWorkArea.cpp
src/frontends/qt4/GuiWorkArea.h
src/frontends/qt4/GuiWorkArea_Private.h