diff options
author | Carolina Gomes <ext-carolina.s.gomes@nomovok.com> | 2010-08-11 09:11:41 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2010-08-11 09:11:41 (GMT) |
commit | ae1a4a918137e99417e70a4f2c2c43f14406f993 (patch) | |
tree | e616e7180b3c087586a8015f09b74c51ecf3b714 /src/gui/graphicsview/qgraphicsgridlayout.cpp | |
parent | 9a6bd194d403f596d66fbe8aad43550310f48eca (diff) | |
download | Qt-ae1a4a918137e99417e70a4f2c2c43f14406f993.zip Qt-ae1a4a918137e99417e70a4f2c2c43f14406f993.tar.gz Qt-ae1a4a918137e99417e70a4f2c2c43f14406f993.tar.bz2 |
Patch to QTBUG-3078
Merge-request: 723
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'src/gui/graphicsview/qgraphicsgridlayout.cpp')
-rw-r--r-- | src/gui/graphicsview/qgraphicsgridlayout.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsgridlayout.cpp b/src/gui/graphicsview/qgraphicsgridlayout.cpp index 062b5ac..2660b06 100644 --- a/src/gui/graphicsview/qgraphicsgridlayout.cpp +++ b/src/gui/graphicsview/qgraphicsgridlayout.cpp @@ -589,6 +589,18 @@ void QGraphicsGridLayout::removeAt(int index) } /*! + Removes the layout item \a item without destroying it. + Ownership of the item is transferred to the caller. + + \sa addItem() +*/ +void QGraphicsGridLayout::removeItem(QGraphicsLayoutItem *item) +{ + Q_D(QGraphicsGridLayout); + int index = d->engine.indexOf(item); + removeAt(index); +} +/*! \reimp */ void QGraphicsGridLayout::invalidate() |