vcl/qt5/Qt5Timer.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit f85d99ede4054876f608819e808c9b03c6a03481
Author:     Jan-Marek Glogowski <glo...@fbihome.de>
AuthorDate: Sat Jun 1 22:23:58 2019 +0000
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Tue Jun 4 08:43:03 2019 +0200

    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 <glo...@fbihome.de>
    (cherry picked from commit 677db60166106e33bc2329f868f96cf2fb85f11b)
    Reviewed-on: https://gerrit.libreoffice.org/73411
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/vcl/qt5/Qt5Timer.cxx b/vcl/qt5/Qt5Timer.cxx
index 9868052dd85f..bbc2800e868d 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()));
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to