Remove unused QEmptyModel
It's not exported and, while all-inline, is not used anywhere in Qt. Since it's in a private header, it follows that we can safely remove it. Change-Id: I4b5534e4cf8187232bdce0a9f7a4795ece1e3555 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
5723c53708
commit
2ee5b5de22
@ -89,18 +89,6 @@ class QTypeInfo<QItemViewPaintPair> : public QTypeInfoMerger<QItemViewPaintPair,
|
||||
|
||||
typedef QVector<QItemViewPaintPair> QItemViewPaintPairs;
|
||||
|
||||
class QEmptyModel : public QAbstractItemModel
|
||||
{
|
||||
public:
|
||||
explicit QEmptyModel(QObject *parent = 0) : QAbstractItemModel(parent) {}
|
||||
QModelIndex index(int, int, const QModelIndex &) const override { return QModelIndex(); }
|
||||
QModelIndex parent(const QModelIndex &) const override { return QModelIndex(); }
|
||||
int rowCount(const QModelIndex &) const override { return 0; }
|
||||
int columnCount(const QModelIndex &) const override { return 0; }
|
||||
bool hasChildren(const QModelIndex &) const override { return false; }
|
||||
QVariant data(const QModelIndex &, int) const override { return QVariant(); }
|
||||
};
|
||||
|
||||
class Q_AUTOTEST_EXPORT QAbstractItemViewPrivate : public QAbstractScrollAreaPrivate
|
||||
{
|
||||
Q_DECLARE_PUBLIC(QAbstractItemView)
|
||||
|
Loading…
x
Reference in New Issue
Block a user