summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-07-03 09:21:58 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-07-03 09:25:27 (GMT)
commitd64d961c7242d22a4d71b376e9dcbbb3a7061a9e (patch)
treefe420d82ccb1e08053f70c9429b9245f3b917863 /src/gui/widgets
parent95e4c95d28be9bc9d94685f7a13e36cbf57bf74e (diff)
downloadQt-d64d961c7242d22a4d71b376e9dcbbb3a7061a9e.zip
Qt-d64d961c7242d22a4d71b376e9dcbbb3a7061a9e.tar.gz
Qt-d64d961c7242d22a4d71b376e9dcbbb3a7061a9e.tar.bz2
QToolBar: avoid repaints when entering/leaving a toolbar
HoverEnter/Leave now do nothing. Task-number: 256103
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qtoolbar.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/qtoolbar.cpp b/src/gui/widgets/qtoolbar.cpp
index 3414b4f..b249915 100644
--- a/src/gui/widgets/qtoolbar.cpp
+++ b/src/gui/widgets/qtoolbar.cpp
@@ -1145,6 +1145,10 @@ bool QToolBar::event(QEvent *event)
if (d->mouseReleaseEvent(static_cast<QMouseEvent*>(event)))
return true;
break;
+ case QEvent::HoverEnter:
+ case QEvent::HoverLeave:
+ // there's nothing special to do here and we don't want to update the whole widget
+ return true;
case QEvent::HoverMove: {
#ifndef QT_NO_CURSOR
QHoverEvent *e = static_cast<QHoverEvent*>(event);