]> git.lyx.org Git - features.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:12:20 +0000 (13:12 +0200)
commit3b43fbfbb18cc4535aba3fd77c6a3cf21835dafa
treeb848edebe42c1210d0c047dd566b83e807491867
parent88a0666d6c039decfbd0da0dee6c9b4ba4923806
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).
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