summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qstyleanimation_p.h
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@qt.io>2017-05-17 15:34:48 -0700
committerGabriel de Dietrich <gabriel.dedietrich@qt.io>2017-06-01 17:56:24 +0000
commit0e3d6214df0ccc3f181c97ccd27cc93e428688ae (patch)
tree5d91796545565d3a6080aa9793b7ea7eb8aaae28 /src/widgets/styles/qstyleanimation_p.h
parent83cbb314609250131d45b14678bbefda8b76bcb1 (diff)
QStyleAnimation: Go down to 15 fps
The new implementation of CE_ProgressBarContents in QMacStyle uses NSProgressIndicator, which is noticeably heavier than the previously used HITheme API. Setting the animation frame rate to 20 fps improves things significantly compared to the default 30 fps, but Cocoa seems to update the animation at 15 fps for indeterminate NSProgressIndicator. Going down to 12 or 10 fps may be an option in the future, but it's not compatible with NSProgressIndicator. Change-Id: Ie1e18d7d78d1bd7ea38a12d715a6a7db0e175a29 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/widgets/styles/qstyleanimation_p.h')
-rw-r--r--src/widgets/styles/qstyleanimation_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/styles/qstyleanimation_p.h b/src/widgets/styles/qstyleanimation_p.h
index e5cfe0bbee..bb1ab9d877 100644
--- a/src/widgets/styles/qstyleanimation_p.h
+++ b/src/widgets/styles/qstyleanimation_p.h
@@ -83,7 +83,8 @@ public:
DefaultFps,
SixtyFps,
ThirtyFps,
- TwentyFps
+ TwentyFps,
+ FifteenFps
};
FrameRate frameRate() const;