QEmptyItemModel: add Q_OBJECT macro
Task-number: QTBUG-122619 Change-Id: Ie84e13d64071d2735e0f873b26a73e476d761742 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>bb10
parent
c193030c7c
commit
8250f6f1ee
|
|
@ -686,6 +686,7 @@ QDebug operator<<(QDebug dbg, const QPersistentModelIndex &idx)
|
|||
|
||||
class QEmptyItemModel : public QAbstractItemModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit QEmptyItemModel(QObject *parent = nullptr) : QAbstractItemModel(parent) {}
|
||||
QModelIndex index(int, int, const QModelIndex &) const override { return QModelIndex(); }
|
||||
|
|
@ -4169,3 +4170,4 @@ void QAbstractItemModelPrivate::Persistent::insertMultiAtEnd(const QModelIndex&
|
|||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qabstractitemmodel.cpp"
|
||||
#include "qabstractitemmodel.moc"
|
||||
|
|
|
|||
Loading…
Reference in New Issue