summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsscenelinearindex_p.h
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-22 09:38:17 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-22 09:38:17 (GMT)
commit375c4f53e9702aa3273154c0879e3b6dbd2723d6 (patch)
tree58f899ffbafa9ea0edbbb00be9d58b2be37501f1 /src/gui/graphicsview/qgraphicsscenelinearindex_p.h
parent8befd7589456c6fd193676daeba8f0779d88776e (diff)
downloadQt-375c4f53e9702aa3273154c0879e3b6dbd2723d6.zip
Qt-375c4f53e9702aa3273154c0879e3b6dbd2723d6.tar.gz
Qt-375c4f53e9702aa3273154c0879e3b6dbd2723d6.tar.bz2
QGraphicsSceneLinearIndex: touch-ups.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsscenelinearindex_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsscenelinearindex_p.h39
1 files changed, 16 insertions, 23 deletions
diff --git a/src/gui/graphicsview/qgraphicsscenelinearindex_p.h b/src/gui/graphicsview/qgraphicsscenelinearindex_p.h
index a5327ef..88e0e6a 100644
--- a/src/gui/graphicsview/qgraphicsscenelinearindex_p.h
+++ b/src/gui/graphicsview/qgraphicsscenelinearindex_p.h
@@ -73,42 +73,35 @@ class Q_AUTOTEST_EXPORT QGraphicsSceneLinearIndex : public QGraphicsSceneIndex
Q_OBJECT
public:
- QGraphicsSceneLinearIndex(QGraphicsScene *scene = 0): QGraphicsSceneIndex(scene)
- {
- }
+ QGraphicsSceneLinearIndex(QGraphicsScene *scene = 0) : QGraphicsSceneIndex(scene)
+ { }
- QList<QGraphicsItem *> items(Qt::SortOrder order = Qt::AscendingOrder) const {
- Q_UNUSED(order);
- return m_items;
- }
+ QList<QGraphicsItem *> items(Qt::SortOrder order = Qt::AscendingOrder) const
+ { Q_UNUSED(order); return m_items; }
- virtual QList<QGraphicsItem *> estimateItems(const QRectF &rect, Qt::SortOrder order, const QTransform &deviceTransform) const {
+ virtual QList<QGraphicsItem *> estimateItems(const QRectF &rect, Qt::SortOrder order, const QTransform &deviceTransform) const
+ {
Q_UNUSED(rect);
Q_UNUSED(order);
Q_UNUSED(deviceTransform);
return m_items;
}
- virtual QRectF indexedRect() const {
- return m_sceneRect;
- }
+ virtual QRectF indexedRect() const
+ { return m_sceneRect; }
protected :
- void sceneRectChanged(const QRectF &rect) {
- m_sceneRect = rect;
- }
+ void sceneRectChanged(const QRectF &rect)
+ { m_sceneRect = rect; }
- virtual void clear() {
- m_items.clear();
- }
+ virtual void clear()
+ { m_items.clear(); }
- virtual void addItem(QGraphicsItem *item) {
- m_items << item;
- }
+ virtual void addItem(QGraphicsItem *item)
+ { m_items << item; }
- virtual void removeItem(QGraphicsItem *item) {
- m_items.removeAll(item);
- }
+ virtual void removeItem(QGraphicsItem *item)
+ { m_items.removeOne(item); }
private:
QRectF m_sceneRect;