diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-03-31 01:43:41 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-03-31 01:43:41 (GMT) |
commit | ca51a4aab9f6b91b034a3b269718165b56883285 (patch) | |
tree | bc26a593565cb9320edd1896a5092ab6026e866d /src/gui/graphicsview/qgraphicswidget.cpp | |
parent | 88eb3b1670ac3989e6549bd8870f482ce357c979 (diff) | |
parent | 622a27c582f859274a5b9e40c625a6fda600b7b1 (diff) | |
download | Qt-ca51a4aab9f6b91b034a3b269718165b56883285.zip Qt-ca51a4aab9f6b91b034a3b269718165b56883285.tar.gz Qt-ca51a4aab9f6b91b034a3b269718165b56883285.tar.bz2 |
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.6
Diffstat (limited to 'src/gui/graphicsview/qgraphicswidget.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicswidget.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/gui/graphicsview/qgraphicswidget.cpp b/src/gui/graphicsview/qgraphicswidget.cpp index 654a432..4c5cffa 100644 --- a/src/gui/graphicsview/qgraphicswidget.cpp +++ b/src/gui/graphicsview/qgraphicswidget.cpp @@ -324,14 +324,6 @@ void QGraphicsWidget::resize(const QSizeF &size) */ /*! - - \fn QGraphicsWidget::geometryChanged() - - This signal gets emitted whenever the geometry of the item changes - \internal -*/ - -/*! \property QGraphicsWidget::geometry \brief the geometry of the widget @@ -392,17 +384,13 @@ void QGraphicsWidget::setGeometry(const QRectF &rect) } QSizeF oldSize = size(); QGraphicsLayoutItem::setGeometry(newGeom); - emit geometryChanged(); + // Send resize event bool resized = newGeom.size() != oldSize; if (resized) { QGraphicsSceneResizeEvent re; re.setOldSize(oldSize); re.setNewSize(newGeom.size()); - if (oldSize.width() != newGeom.size().width()) - emit widthChanged(); - if (oldSize.height() != newGeom.size().height()) - emit heightChanged(); QApplication::sendEvent(this, &re); } } @@ -801,7 +789,6 @@ void QGraphicsWidget::setLayout(QGraphicsLayout *l) l->setParentLayoutItem(this); l->d_func()->reparentChildItems(this); l->invalidate(); - emit layoutChanged(); } /*! |