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
Juha Vuolle 2024-04-15 10:28:43 +03:00
parent c193030c7c
commit 8250f6f1ee
1 changed files with 2 additions and 0 deletions

View File

@ -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"