5#ifndef QQUICKMONTHMODEL_P_H
6#define QQUICKMONTHMODEL_P_H
19#include <QtCore/qabstractitemmodel.h>
20#include <QtCore/qdatetime.h>
21#include <QtCore/qlocale.h>
22#include <QtQml/qqml.h>
23#include <QtCore/private/qglobal_p.h>
32 Q_PROPERTY(
int month READ month WRITE setMonth NOTIFY monthChanged FINAL)
66 QVariant data(
const QModelIndex &index,
int role)
const override;
67 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
A grid of days for a calendar month.
bool handleRelease(const QPointF &point, ulong timestamp) override
bool handlePress(const QPointF &point, ulong timestamp) override
QQuickItem * cellAt(const QPointF &pos) const
void handleUngrab() override
QDateTime dateOf(QQuickItem *cell) const
bool handleMove(const QPointF &point, ulong timestamp) override
void clearPress(bool clicked)
void updatePress(const QPointF &pos)
void clicked(QDateTime date)
void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding) override
void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
int month() const
\qmlproperty int QtQuick.Controls::MonthGrid::month
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
void setTitle(const QString &title)
void timerEvent(QTimerEvent *event) override
This event handler can be reimplemented in a subclass to receive timer events for the object.
QQmlComponent * delegate() const
\qmlproperty Component QtQuick.Controls::MonthGrid::delegate
void setSource(const QVariant &source)
void setDelegate(QQmlComponent *delegate)
QString title() const
\qmlproperty string QtQuick.Controls::MonthGrid::title
void pressAndHold(QDateTime date)
void updatePolish() override
This function should perform any layout as required for this item.
void pressed(QDateTime date)
int year() const
\qmlproperty int QtQuick.Controls::MonthGrid::year
void released(QDateTime date)
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.
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)
Q_INVOKABLE int indexOf(QDateTime date) const
void setTitle(const QString &title)