diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2010-03-31 00:19:42 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2010-03-31 00:19:42 (GMT) |
commit | ebd1c45822aca087be994c898cfb01cd41599429 (patch) | |
tree | 69b3cb95493ae28bf0a4fcb84bc2560c50b36759 /src/gui/graphicsview/qgraphicswidget.cpp | |
parent | 4e4c0055d59978850796ff8c1b5015e17459e8d2 (diff) | |
download | Qt-ebd1c45822aca087be994c898cfb01cd41599429.zip Qt-ebd1c45822aca087be994c898cfb01cd41599429.tar.gz Qt-ebd1c45822aca087be994c898cfb01cd41599429.tar.bz2 |
Revert "Better handling for NOTIFY in QGraphicsWidget regarding geometry changes"
This reverts commit 13bccd4ade76dd8a9c1cc067cc2b8da69c11def2.
Conflicts:
src/gui/graphicsview/qgraphicswidget.cpp
Drop the support of QML on top of 4.6
Diffstat (limited to 'src/gui/graphicsview/qgraphicswidget.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicswidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget.cpp b/src/gui/graphicsview/qgraphicswidget.cpp index 131ee87..7be0096 100644 --- a/src/gui/graphicsview/qgraphicswidget.cpp +++ b/src/gui/graphicsview/qgraphicswidget.cpp @@ -392,7 +392,7 @@ void QGraphicsWidget::setGeometry(const QRectF &rect) } QSizeF oldSize = size(); QGraphicsLayoutItem::setGeometry(newGeom); - emit geometryChanged(); + // Send resize event bool resized = newGeom.size() != oldSize; if (resized) { @@ -403,6 +403,7 @@ void QGraphicsWidget::setGeometry(const QRectF &rect) emit widthChanged(); if (oldSize.height() != newGeom.size().height()) emit heightChanged(); + emit sizeChanged(); QApplication::sendEvent(this, &re); } } |