aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicklistview_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2012-02-23 16:57:06 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-27 02:43:19 +0100
commit15dac112df4f44ba8b15047720e1570fd4096f26 (patch)
tree1aa1f1fe0caec4d8a3a24db4ec7fa59fd39c7555 /src/quick/items/qquicklistview_p.h
parentd2921ffc52fed380326f8abb86d6d659cc47f9d1 (diff)
Don't create a separate section header for currentItem
The currentItem FxViewItem contained it's own section item, which when created would cause the current item delegate to be repositioned. This change associates the section item with the delegate item, via the attached object. Change-Id: Ie675d545539b56d0f1cf5a9b4ea26668978a5e72 Reviewed-by: Bea Lam <bea.lam@nokia.com>
Diffstat (limited to 'src/quick/items/qquicklistview_p.h')
-rw-r--r--src/quick/items/qquicklistview_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quick/items/qquicklistview_p.h b/src/quick/items/qquicklistview_p.h
index bffd935616..058c50f4d7 100644
--- a/src/quick/items/qquicklistview_p.h
+++ b/src/quick/items/qquicklistview_p.h
@@ -181,7 +181,7 @@ class QQuickListViewAttached : public QQuickItemViewAttached
public:
QQuickListViewAttached(QObject *parent)
- : QQuickItemViewAttached(parent), m_view(0) {}
+ : QQuickItemViewAttached(parent), m_view(0), m_sectionItem(0) {}
~QQuickListViewAttached() {}
Q_PROPERTY(QQuickListView *view READ view NOTIFY viewChanged)
@@ -198,6 +198,7 @@ Q_SIGNALS:
public:
QDeclarativeGuard<QQuickListView> m_view;
+ QQuickItem *m_sectionItem;
};