5#ifndef QQUICKDAYOFWEEKMODEL_P_H
6#define QQUICKDAYOFWEEKMODEL_P_H
19#include <QtCore/qabstractitemmodel.h>
20#include <QtCore/qlocale.h>
21#include <QtQml/qqml.h>
22#include <QtCore/private/qglobal_p.h>
26class QQuickDayOfWeekModelPrivate;
31 Q_PROPERTY(QLocale locale READ locale WRITE setLocale NOTIFY localeChanged FINAL)
50 QVariant data(
const QModelIndex &index,
int role)
const override;
51 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
Q_INVOKABLE int dayAt(int index) const
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Returns the number of rows under the given parent.
QHash< int, QByteArray > roleNames() const override
void setLocale(const QLocale &locale)
QVariant data(const QModelIndex &index, int role) const override
Returns the data stored under the given role for the item referred to by the index.