diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-07-21 05:30:58 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-07-21 06:35:30 (GMT) |
commit | e0c84298b2d4ed0b8b564dd491e5687296b75ebc (patch) | |
tree | 799f933b700aade8db98ff98bd419f76a5096299 /src/gui/graphicsview/qgraphicsscene_p.h | |
parent | 8079a0c5b4ee6550501476410fab457d63c705b6 (diff) | |
download | Qt-e0c84298b2d4ed0b8b564dd491e5687296b75ebc.zip Qt-e0c84298b2d4ed0b8b564dd491e5687296b75ebc.tar.gz Qt-e0c84298b2d4ed0b8b564dd491e5687296b75ebc.tar.bz2 |
Compile after merge commit 8079a0c5b4ee6550501476410fab457d63c705b6
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscene_p.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene_p.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene_p.h b/src/gui/graphicsview/qgraphicsscene_p.h index 9a91acc..38f5682 100644 --- a/src/gui/graphicsview/qgraphicsscene_p.h +++ b/src/gui/graphicsview/qgraphicsscene_p.h @@ -278,6 +278,14 @@ static inline QRectF adjustedItemBoundingRect(const QGraphicsItem *item) return boundingRect; } +static inline QRectF adjustedItemEffectiveBoundingRect(const QGraphicsItem *item) +{ + Q_ASSERT(item); + QRectF boundingRect(item->effectiveBoundingRect()); + _q_adjustRect(&boundingRect); + return boundingRect; +} + QT_END_NAMESPACE #endif // QT_NO_GRAPHICSVIEW |