From c18a49915b4b98ac7f837a1feca3e243ac44940d Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sat, 28 Oct 2017 20:46:34 +0300 Subject: Save the changes between syncs in cache - Fixes high cpu issues caused by the serialization of the whole in-memory state. - Display name changes are now visible in the timeline. --- src/ui/LoadingIndicator.cc | 2 +- src/ui/RippleOverlay.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui') diff --git a/src/ui/LoadingIndicator.cc b/src/ui/LoadingIndicator.cc index 71312d32..f64151ce 100644 --- a/src/ui/LoadingIndicator.cc +++ b/src/ui/LoadingIndicator.cc @@ -41,7 +41,7 @@ LoadingIndicator::paintEvent(QPaintEvent *e) int capsuleRadius = (outerRadius - innerRadius) / 2; - for (int i = 0; i < 8; i++) { + for (int i = 0; i < 8; ++i) { QColor color = color_; color.setAlphaF(1.0f - (i / 8.0f)); diff --git a/src/ui/RippleOverlay.cc b/src/ui/RippleOverlay.cc index 26d432f6..a3567db2 100644 --- a/src/ui/RippleOverlay.cc +++ b/src/ui/RippleOverlay.cc @@ -48,7 +48,7 @@ RippleOverlay::paintEvent(QPaintEvent *event) if (use_clip_) painter.setClipPath(clip_path_); - for (auto it = ripples_.constBegin(); it != ripples_.constEnd(); it++) + for (auto it = ripples_.constBegin(); it != ripples_.constEnd(); ++it) paintRipple(&painter, *it); } -- cgit 1.5.1