]> git.lyx.org Git - lyx.git/commit
Speed up exit time
authorEnrico Forestieri <forenr@lyx.org>
Wed, 18 Oct 2017 11:12:20 +0000 (13:12 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 18 Oct 2017 11:38:16 +0000 (13:38 +0200)
commit5a3201a8c4373d92ef3c750c72b6ae4c8a9388b0
tree3b38db2ef8312f59472599eac43bd7fbec5e5110
parent4947476da8d7e42ded2c53ee984dc4c38db1d528
Speed up exit time

Instantiating a single QSettings and using it for each ui element
can significantly shorten the time required to save the various
states at exit. The speed up can be better appreciated on *nix,
where the settings are saved on disk, rather than on Windows where
they are held in memory (in the registry).

(cherry picked from commit 3b43fbfbb18cc4535aba3fd77c6a3cf21835dafa)
15 files changed:
src/frontends/qt4/Dialog.cpp
src/frontends/qt4/Dialog.h
src/frontends/qt4/GuiCharacter.cpp
src/frontends/qt4/GuiCharacter.h
src/frontends/qt4/GuiCitation.cpp
src/frontends/qt4/GuiCitation.h
src/frontends/qt4/GuiParagraph.cpp
src/frontends/qt4/GuiParagraph.h
src/frontends/qt4/GuiProgressView.cpp
src/frontends/qt4/GuiProgressView.h
src/frontends/qt4/GuiToolbar.cpp
src/frontends/qt4/GuiToolbar.h
src/frontends/qt4/GuiView.cpp
src/frontends/qt4/GuiViewSource.cpp
src/frontends/qt4/GuiViewSource.h