]> git.lyx.org Git - lyx.git/commit
Update screen as needed when preferences are changed
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 26 Feb 2019 15:37:41 +0000 (16:37 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 27 Feb 2019 11:04:09 +0000 (12:04 +0100)
commitee8a336cbc407e7fb587e2c155fee8c7a5d76e1e
tree461be069ffba26d88ac2db1d58c5533fe85acc7f
parent6c005fd511b9af000a59a4c9c479f57846a920f2
Update screen as needed when preferences are changed

This commit removes the adhoc code in GuiPrefs and moves it to LyXRC,
so that it triggers in every preference change.

The code has also been updated to trigger on more variables, e.g.
font_*_foundry.

Note that the actual function that are called have not been changed
(addPreviews and LFUN_SCREEN_FONT_UPDATE), although there are doubts
that they behave as needed (see FIXMEs).

Fixes bug #11498.

(cherry picked from commit 954531f247adee029c12713634a81717f87a2bcf)
src/LyXRC.cpp
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiPrefs.cpp
src/frontends/qt4/GuiPrefs.h
status.23x