summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qtreewidget_p.h
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-06-11 09:56:54 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-06-11 14:07:02 (GMT)
commit3f7a7c20c8493f62e090e703acfd581a4e3c4d2e (patch)
treecb835094f6f035ddd3b975db164a056d12f04280 /src/gui/itemviews/qtreewidget_p.h
parent0f60b6e05a707630e02655c60ae60884262a4b8e (diff)
downloadQt-3f7a7c20c8493f62e090e703acfd581a4e3c4d2e.zip
Qt-3f7a7c20c8493f62e090e703acfd581a4e3c4d2e.tar.gz
Qt-3f7a7c20c8493f62e090e703acfd581a4e3c4d2e.tar.bz2
refactor of private getters for the mode i item widget classes
Diffstat (limited to 'src/gui/itemviews/qtreewidget_p.h')
-rw-r--r--src/gui/itemviews/qtreewidget_p.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/itemviews/qtreewidget_p.h b/src/gui/itemviews/qtreewidget_p.h
index a089cf5..fb0ee11 100644
--- a/src/gui/itemviews/qtreewidget_p.h
+++ b/src/gui/itemviews/qtreewidget_p.h
@@ -219,12 +219,11 @@ class QTreeWidgetPrivate : public QTreeViewPrivate
Q_DECLARE_PUBLIC(QTreeWidget)
public:
QTreeWidgetPrivate() : QTreeViewPrivate(), explicitSortColumn(-1) {}
- inline QTreeModel *model() const
- { return qobject_cast<QTreeModel*>(q_func()->model()); }
+ inline QTreeModel *treeModel() const { return qobject_cast<QTreeModel*>(model); }
inline QModelIndex index(const QTreeWidgetItem *item, int column = 0) const
- { return model()->index(item, column); }
+ { return treeModel()->index(item, column); }
inline QTreeWidgetItem *item(const QModelIndex &index) const
- { return model()->item(index); }
+ { return treeModel()->item(index); }
void _q_emitItemPressed(const QModelIndex &index);
void _q_emitItemClicked(const QModelIndex &index);
void _q_emitItemDoubleClicked(const QModelIndex &index);