28 Q_PROPERTY(
int count READ count NOTIFY countChanged)
29 Q_PROPERTY(
bool dirty READ dirty WRITE setDirty NOTIFY dirtyChanged)
31 bool dirty()
const {
return _dirty; }
34 void beginResetModel();
40 virtual bool isEmpty()
const {
return (count() == 0); }
49 void _childDirtyChanged(
bool dirty);
52 QHash<int, QByteArray> roleNames()
const override;
53 void _signalCountChangedIfNotNested();
56 uint _resetModelNestingCount = 0;
58 static constexpr int ObjectRole = Qt::UserRole;
59 static constexpr int TextRole = Qt::UserRole + 1;