diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-11 09:56:54 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-06-11 14:07:02 (GMT) |
commit | 3f7a7c20c8493f62e090e703acfd581a4e3c4d2e (patch) | |
tree | cb835094f6f035ddd3b975db164a056d12f04280 /src/gui/itemviews/qlistwidget_p.h | |
parent | 0f60b6e05a707630e02655c60ae60884262a4b8e (diff) | |
download | Qt-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/qlistwidget_p.h')
-rw-r--r-- | src/gui/itemviews/qlistwidget_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qlistwidget_p.h b/src/gui/itemviews/qlistwidget_p.h index 8556047..6887d9d 100644 --- a/src/gui/itemviews/qlistwidget_p.h +++ b/src/gui/itemviews/qlistwidget_p.h @@ -143,7 +143,7 @@ class QListWidgetPrivate : public QListViewPrivate Q_DECLARE_PUBLIC(QListWidget) public: QListWidgetPrivate() : QListViewPrivate(), sortOrder(Qt::AscendingOrder), sortingEnabled(false) {} - inline QListModel *model() const { return qobject_cast<QListModel*>(q_func()->model()); } + inline QListModel *listModel() const { return qobject_cast<QListModel*>(model); } void setup(); void _q_emitItemPressed(const QModelIndex &index); void _q_emitItemClicked(const QModelIndex &index); |