]> 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, 14 Sep 2017 13:50:30 +0000 (15:50 +0200)
commita31d3dc67dce9655bee9f1b0a2bc2188d7d97453
tree3f3f7f6ec0609425cd3aa8e5f8f5a88bdaae86fb
parent5699791d0f27cee804ab5aee7ff50206b236c55a
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).
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