5#ifndef QQUICKCALENDARMODEL_P_H
6#define QQUICKCALENDARMODEL_P_H
19#include <QtCore/qabstractitemmodel.h>
20#include <QtCore/qdatetime.h>
21#include <QtQml/qqmlparserstatus.h>
22#include <QtQml/qqml.h>
23#include <QtCore/private/qglobal_p.h>
27class QQuickCalendarModelPrivate;
32 Q_INTERFACES(QQmlParserStatus)
59 QVariant data(
const QModelIndex &index,
int role)
const override;
60 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
void populate(QDate from, QDate to, bool force=false)
Q_INVOKABLE int yearAt(int index) const
\qmlmethod int QtQuick.Controls::CalendarModel::yearAt(int index)
QDate to() const
\qmlproperty date QtQuick.Controls::CalendarModel::to
void classBegin() override
Invoked after class creation, but before any properties have been set.
Q_INVOKABLE int indexOf(int year, int month) const
\qmlmethod int QtQuick.Controls::CalendarModel::indexOf(int year, int month)
QDate from() const
\qmlproperty date QtQuick.Controls::CalendarModel::from
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
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.
Q_INVOKABLE int indexOf(QDate date) const
\qmlmethod int QtQuick.Controls::CalendarModel::indexOf(Date date)
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Returns the number of rows under the given parent.
QHash< int, QByteArray > roleNames() const override
Q_INVOKABLE int monthAt(int index) const
\qmlmethod int QtQuick.Controls::CalendarModel::monthAt(int index)