From d8817ddde65d8fd9c5a2785a31a01db43d050114 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Thu, 27 Sep 2018 13:20:52 +0200 Subject: [PATCH] Use update() instead of repaint() when displaying a new message There is no advantage to using repaint() here, so using update will give a performance improvement. Change-Id: Icc6a28dfc12dffb8ea3df0300fd14c66c775bf16 Reviewed-by: Friedemann Kleint Reviewed-by: Richard Moe Gustavsen --- src/widgets/widgets/qstatusbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/widgets/qstatusbar.cpp b/src/widgets/widgets/qstatusbar.cpp index fb551158bf..ef98bb6950 100644 --- a/src/widgets/widgets/qstatusbar.cpp +++ b/src/widgets/widgets/qstatusbar.cpp @@ -643,7 +643,7 @@ void QStatusBar::hideOrShow() } #endif - repaint(d->messageRect()); + update(d->messageRect()); } /*!