summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2019-06-01 22:23:58 +0000
committerKatarina Behrens <Katarina.Behrens@cib.de>2019-06-05 22:22:35 +0200
commite70af1096275e7705fa71bb5ca0fc564746a98c7 (patch)
tree709d0768aaab437492ae76c7d9f51798c7763bce /vcl
parentd93d82de8725031cbe9b47046081328674cbead4 (diff)
Qt5 use precise timer to prevent unneeded restarts
We just have one driving timer. Not much to sync with. Gets rid of these annoying scheduler restart messages. The idea of coarse, synced timer events sounds nice to have, but LO currently can't handle it in a sensible sense.. Change-Id: I169c2bb582aca0e03b00e24dc364ac9b19162c3b Reviewed-on: https://gerrit.libreoffice.org/73392 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de> (cherry picked from commit 677db60166106e33bc2329f868f96cf2fb85f11b) Reviewed-on: https://gerrit.libreoffice.org/73411 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> (cherry picked from commit f85d99ede4054876f608819e808c9b03c6a03481) Reviewed-on: https://gerrit.libreoffice.org/73464 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qt5/Qt5Timer.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/qt5/Qt5Timer.cxx b/vcl/qt5/Qt5Timer.cxx
index 7fcb7e17dcda..348c9a825ae6 100644
--- a/vcl/qt5/Qt5Timer.cxx
+++ b/vcl/qt5/Qt5Timer.cxx
@@ -29,6 +29,7 @@
Qt5Timer::Qt5Timer()
{
m_aTimer.setSingleShot(true);
+ m_aTimer.setTimerType(Qt::PreciseTimer);
connect(&m_aTimer, SIGNAL(timeout()), this, SLOT(timeoutActivated()));
connect(this, SIGNAL(startTimerSignal(int)), this, SLOT(startTimer(int)));
connect(this, SIGNAL(stopTimerSignal()), this, SLOT(stopTimer()));