Kaydet (Commit) e70af109 authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski Kaydeden (comit) Katarina Behrens

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: 's avatarJan-Marek Glogowski <glogow@fbihome.de>
(cherry picked from commit 677db601)
Reviewed-on: https://gerrit.libreoffice.org/73411Reviewed-by: 's avatarMichael Weghorn <m.weghorn@posteo.de>
(cherry picked from commit f85d99ed)
Reviewed-on: https://gerrit.libreoffice.org/73464Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst d93d82de
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
Qt5Timer::Qt5Timer() Qt5Timer::Qt5Timer()
{ {
m_aTimer.setSingleShot(true); m_aTimer.setSingleShot(true);
m_aTimer.setTimerType(Qt::PreciseTimer);
connect(&m_aTimer, SIGNAL(timeout()), this, SLOT(timeoutActivated())); connect(&m_aTimer, SIGNAL(timeout()), this, SLOT(timeoutActivated()));
connect(this, SIGNAL(startTimerSignal(int)), this, SLOT(startTimer(int))); connect(this, SIGNAL(startTimerSignal(int)), this, SLOT(startTimer(int)));
connect(this, SIGNAL(stopTimerSignal()), this, SLOT(stopTimer())); connect(this, SIGNAL(stopTimerSignal()), this, SLOT(stopTimer()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment