5#ifndef QQUICKWEEKNUMBERMODEL_P_H
6#define QQUICKWEEKNUMBERMODEL_P_H
19#include <QtCore/qabstractitemmodel.h>
20#include <QtCore/qlocale.h>
21#include <QtQml/qqml.h>
22#include <QtCore/private/qglobal_p.h>
31 Q_PROPERTY(
int month READ month WRITE setMonth NOTIFY monthChanged FINAL)
56 QVariant data(
const QModelIndex &index,
int role)
const override;
57 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
A column of week numbers.
QQuickWeekNumberColumnPrivate()
QQuickWeekNumberModel * model
int year() const
\qmlproperty int QtQuick.Controls::WeekNumberColumn::year
void setSource(const QVariant &source)
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
int month() const
\qmlproperty int QtQuick.Controls::WeekNumberColumn::month
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override
void setDelegate(QQmlComponent *delegate)
void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding) override
QQmlComponent * delegate() const
\qmlproperty Component QtQuick.Controls::WeekNumberColumn::delegate
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.
Q_INVOKABLE int indexOf(int weekNumber) const
Q_INVOKABLE int weekNumberAt(int index) const