diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-04 08:45:17 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-04 08:46:41 (GMT) |
commit | c116ffaa7abb26373475921db7410503a79b4207 (patch) | |
tree | baf44a336198c98e8ce5b705e5daff02b9e7b67b /src/gui/widgets/qstatusbar.cpp | |
parent | 397c3bb494e220af5ef1cf6e47cfdfc84b61540b (diff) | |
download | Qt-c116ffaa7abb26373475921db7410503a79b4207.zip Qt-c116ffaa7abb26373475921db7410503a79b4207.tar.gz Qt-c116ffaa7abb26373475921db7410503a79b4207.tar.bz2 |
Fixed the frame that would sometimes not be painted around widgets in
a QStatusBar
Task-number: 253717
Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/widgets/qstatusbar.cpp')
-rw-r--r-- | src/gui/widgets/qstatusbar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qstatusbar.cpp b/src/gui/widgets/qstatusbar.cpp index 3829bcb..a248346 100644 --- a/src/gui/widgets/qstatusbar.cpp +++ b/src/gui/widgets/qstatusbar.cpp @@ -728,7 +728,7 @@ void QStatusBar::paintEvent(QPaintEvent *event) QStatusBarPrivate::SBItem* item = d->items.at(i); if (item && item->w->isVisible() && (!haveMessage || item->p)) { QRect ir = item->w->geometry().adjusted(-2, -1, 2, 1); - if (event->rect().contains(ir)) { + if (event->rect().intersects(ir)) { QStyleOption opt(0); opt.rect = ir; opt.palette = palette(); |