]> git.lyx.org Git - lyx.git/commit
Speed up exit time
authorEnrico Forestieri <forenr@lyx.org>
Wed, 18 Oct 2017 20:11:56 +0000 (22:11 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 18 Oct 2017 20:11:56 +0000 (22:11 +0200)
commit054b7c68a414e5a0fb311c1ed9ac3b27d10c8174
treeec4fc7acebff3bd75cfffd60ea60c109cdc95479
parent74dbfc1b1b9f7b05e5fde97398504974c4277686
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).
16 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
status.22x