diff options
author | Water-Team <water@pad.test.qt.nokia.com> | 2011-09-18 23:00:11 (GMT) |
---|---|---|
committer | Water-Team <water@pad.test.qt.nokia.com> | 2011-09-18 23:00:11 (GMT) |
commit | a27b646bff215301d9218c18d7eb330e1ed1e60a (patch) | |
tree | 96a4e29bdc733f39c9bd63a4474ee1ac319d46c5 /src/gui/graphicsview/qgraphicswidget.cpp | |
parent | c6b4e8e28456fe389e30c2038808681f86140950 (diff) | |
parent | 53d9e3620ede7492c141402d9365d5c0dd7c10fd (diff) | |
download | Qt-a27b646bff215301d9218c18d7eb330e1ed1e60a.zip Qt-a27b646bff215301d9218c18d7eb330e1ed1e60a.tar.gz Qt-a27b646bff215301d9218c18d7eb330e1ed1e60a.tar.bz2 |
Merge branch '4.8-upstream' into master-water
Diffstat (limited to 'src/gui/graphicsview/qgraphicswidget.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicswidget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget.cpp b/src/gui/graphicsview/qgraphicswidget.cpp index b16e51e..c275968 100644 --- a/src/gui/graphicsview/qgraphicswidget.cpp +++ b/src/gui/graphicsview/qgraphicswidget.cpp @@ -1173,6 +1173,12 @@ QVariant QGraphicsWidget::itemChange(GraphicsItemChange change, const QVariant & QApplication::sendEvent(this, &event); break; } + case ItemChildAddedChange: { + QGraphicsItem *child = qVariantValue<QGraphicsItem *>(value); + if (child->isWidget()) + static_cast<QGraphicsWidget *>(child)->d_func()->resolveLayoutDirection(); + break; + } default: break; } |