diff options
author | Andy Shaw <andy.shaw@qt.io> | 2018-09-27 13:20:52 +0200 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2018-10-02 15:33:46 +0000 |
commit | d8817ddde65d8fd9c5a2785a31a01db43d050114 (patch) | |
tree | c45e3fc6f1630505d8f60caa20d6e74976c13db9 | |
parent | ced34cb3d5805f1fbaf3b275714a1a5f3585900c (diff) |
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 <Friedemann.Kleint@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
-rw-r--r-- | src/widgets/widgets/qstatusbar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); } /*! |