diff options
author | Fabien Freling <fabien.freling@nokia.com> | 2010-12-20 13:40:51 (GMT) |
---|---|---|
committer | Fabien Freling <fabien.freling@nokia.com> | 2010-12-20 13:50:43 (GMT) |
commit | cb44818623d10d5d6a9f49ddf5651351ebe55f67 (patch) | |
tree | 94f6574d0b7e947eb40eb3796534c4e1ae473675 /src/gui | |
parent | 8605f528930744b2afc594c39afb146bd7ad4b54 (diff) | |
download | Qt-cb44818623d10d5d6a9f49ddf5651351ebe55f67.zip Qt-cb44818623d10d5d6a9f49ddf5651351ebe55f67.tar.gz Qt-cb44818623d10d5d6a9f49ddf5651351ebe55f67.tar.bz2 |
Fix the redirection of painting for the toolbar.
Task-number: QTBUG-16154
Reviewed-by: Samuel Rødal
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/painting/qunifiedtoolbarsurface_mac.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/painting/qunifiedtoolbarsurface_mac.cpp b/src/gui/painting/qunifiedtoolbarsurface_mac.cpp index ace0a46..02ba8db 100644 --- a/src/gui/painting/qunifiedtoolbarsurface_mac.cpp +++ b/src/gui/painting/qunifiedtoolbarsurface_mac.cpp @@ -83,11 +83,11 @@ void QUnifiedToolbarSurface::recursiveRedirect(QObject *object, const QPoint &of widget->d_func()->unifiedSurface = this; widget->d_func()->isInUnifiedToolbar = true; widget->d_func()->toolbar_offset = offset; - } - } - for (int i = 0; i < object->children().size(); ++i) { - recursiveRedirect(object->children().at(i), offset); + for (int i = 0; i < object->children().size(); ++i) { + recursiveRedirect(object->children().at(i), offset); + } + } } } } |