Qt,Qt5: fixed cpu eating by gtk+ theme.

git-svn-id: trunk@55881 -
This commit is contained in:
zeljko 2017-09-18 07:15:42 +00:00
parent 85741238d0
commit dd5641eaab
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);