diff options
author | Marius Bugge Monsen <mmonsen@trolltech.com> | 2009-09-30 12:08:51 +0200 |
---|---|---|
committer | Marius Bugge Monsen <mmonsen@trolltech.com> | 2009-09-30 12:08:51 +0200 |
commit | 053a9a4a293eed32ed625e961a5ec8570f154d4a (patch) | |
tree | 0bc67302fe554450bdb405bd12a4a2239ff52b67 /src/qgraphicstreeview.h | |
parent | 35f07e0ad9ddcf9660f36d4b30d5627170951f71 (diff) |
Compile after converting from int role to QByteArray role names.
Diffstat (limited to 'src/qgraphicstreeview.h')
-rw-r--r-- | src/qgraphicstreeview.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/qgraphicstreeview.h b/src/qgraphicstreeview.h index c97a28e..e37123b 100644 --- a/src/qgraphicstreeview.h +++ b/src/qgraphicstreeview.h @@ -98,18 +98,10 @@ template <class T> class QtGraphicsTreeViewItemCreator : public QtGraphicsTreeViewItemCreatorBase { public: - inline QGraphicsObject *create(const QtTreeModelIterator &it, QtGraphicsTreeView *view) { return new T(it, view); } - inline QGraphicsObject *reassign(const QtTreeModelIterator &it, QGraphicsObject *item, QtGraphicsTreeView *view) - { - Q_UNUSED(view); - static_cast<QtGraphicsTreeViewItem*>(item)->setIterator(it); - return item; - } - inline void update(const QtTreeModelIterator &it, QGraphicsObject *item, const QList<QByteArray> &roles) - { - Q_UNUSED(it); - static_cast<QtGraphicsTreeViewItem*>(item)->itemChanged(roles); - } + inline ~QtGraphicsTreeViewItemCreator(); + inline QGraphicsObject *create(const QtTreeModelIterator &it, QtGraphicsTreeView *view); + inline QGraphicsObject *reassign(const QtTreeModelIterator &it, QGraphicsObject *item, QtGraphicsTreeView *view); + inline void update(const QtTreeModelIterator &it, QGraphicsObject *item, const QList<QByteArray> &roles); }; template <class T> @@ -129,7 +121,7 @@ inline QGraphicsObject *QtGraphicsTreeViewItemCreator<T>::reassign(const QtTreeM } template <class T> -inline void QtGraphicsTreeViewItemCreator<T>::update(const QtTreeModelIterator &it, QGraphicsObject *item, const QList<int> &roles) +inline void QtGraphicsTreeViewItemCreator<T>::update(const QtTreeModelIterator &it, QGraphicsObject *item, const QList<QByteArray> &roles) { Q_UNUSED(it); static_cast<QtGraphicsTreeViewItem*>(item)->itemChanged(roles); |