mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:59:26 +02:00
Merged revision(s) 55881 #dd5641eaab from trunk:
Qt,Qt5: fixed cpu eating by gtk+ theme. ........ git-svn-id: branches/fixes_1_8@55898 -
This commit is contained in:
parent
b40401b0c7
commit
e69fa339ea
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user