Unhide QObject::parent() from QAbstract{Table,List}model.

Both overwrite QAbstractItemModel's parent taking a QModelIndex which
hides the QObject::parent() method. This must be explicitly forwarded
like e.g. QAbstractItemModel is doing.

Change-Id: I6149ae365cd8467248f4ca79a3cb898e62068b10
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
Milian Wolff 2013-09-02 17:29:48 +02:00 committed by The Qt Project
parent dc7972b261
commit 63b5082ea8

View File

@ -432,6 +432,15 @@ public:
int row, int column, const QModelIndex &parent);
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
#ifdef Q_NO_USING_KEYWORD
#ifndef Q_QDOC
inline QObject *parent() const { return QAbstractItemModel::parent(); }
#endif
#else
using QObject::parent;
#endif
protected:
QAbstractTableModel(QAbstractItemModelPrivate &dd, QObject *parent);
@ -454,6 +463,15 @@ public:
int row, int column, const QModelIndex &parent);
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
#ifdef Q_NO_USING_KEYWORD
#ifndef Q_QDOC
inline QObject *parent() const { return QAbstractItemModel::parent(); }
#endif
#else
using QObject::parent;
#endif
protected:
QAbstractListModel(QAbstractItemModelPrivate &dd, QObject *parent);