From dd5641eaabe72dfbe3bd3936d9acf64ee0e368d7 Mon Sep 17 00:00:00 2001 From: zeljko Date: Mon, 18 Sep 2017 07:15:42 +0000 Subject: [PATCH] Qt,Qt5: fixed cpu eating by gtk+ theme. git-svn-id: trunk@55881 - --- lcl/interfaces/qt/qtobject.inc | 2 +- lcl/interfaces/qt5/qtobject.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lcl/interfaces/qt/qtobject.inc b/lcl/interfaces/qt/qtobject.inc index a142ac6a1e..ec4f7a9dd0 100644 --- a/lcl/interfaces/qt/qtobject.inc +++ b/lcl/interfaces/qt/qtobject.inc @@ -290,7 +290,7 @@ var begin {$IFDEF QtUseNativeEventLoop} ATimer := QTimer_create(QCoreApplication_instance()); - if StyleName = 'gtk' then + if (StyleName = 'gtk') or (StyleName = 'gtk+') then QTimer_setInterval(ATimer, 1) {issue #31191} else QTimer_setInterval(ATimer, 0); diff --git a/lcl/interfaces/qt5/qtobject.inc b/lcl/interfaces/qt5/qtobject.inc index 13f49348cc..b13347cec1 100644 --- a/lcl/interfaces/qt5/qtobject.inc +++ b/lcl/interfaces/qt5/qtobject.inc @@ -239,7 +239,7 @@ begin {$IFDEF QtUseNativeEventLoop} FMainTimerID := -1; ATimer := QTimer_Create(QCoreApplication_instance()); - if StyleName = 'gtk' then + if (StyleName = 'gtk') or (StyleName = 'gtk+') then QTimer_setInterval(ATimer, 1) {issue #31191} else QTimer_setInterval(ATimer, 0);