summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorFabien Freling <fabien.freling@nokia.com>2011-01-28 14:19:33 (GMT)
committerFabien Freling <fabien.freling@nokia.com>2011-01-28 14:21:35 (GMT)
commit0b1b6859e7127cd68c262e240e305df03a9e0ef5 (patch)
tree6856f94115977812f8aefc6c1723266b1567da6d /src/gui/kernel/qwidget.cpp
parentb0d682080023dc07e912bf273d007306e758dd01 (diff)
downloadQt-0b1b6859e7127cd68c262e240e305df03a9e0ef5.zip
Qt-0b1b6859e7127cd68c262e240e305df03a9e0ef5.tar.gz
Qt-0b1b6859e7127cd68c262e240e305df03a9e0ef5.tar.bz2
Disable subtractOpaqueSiblings when in the unified toolbar.
Since the items in the unified toolbar have non-relevant positions and can't be overshadowed by another widget, we always paint them. Reviewed-by: Samuel Rødal
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r--src/gui/kernel/qwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index 88348cd..04bc2fb 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -2075,7 +2075,7 @@ void QWidgetPrivate::subtractOpaqueSiblings(QRegion &sourceRegion, bool *hasDirt
{
Q_Q(const QWidget);
static int disableSubtractOpaqueSiblings = qgetenv("QT_NO_SUBTRACTOPAQUESIBLINGS").toInt();
- if (disableSubtractOpaqueSiblings || q->isWindow())
+ if (disableSubtractOpaqueSiblings || q->isWindow() || q->d_func()->isInUnifiedToolbar)
return;
QRect clipBoundingRect;