4#ifndef QGREGORIAN_CALENDAR_P_H
5#define QGREGORIAN_CALENDAR_P_H
30 QString name()
const override;
31 static QStringList nameList();
33 bool isLeapYear(
int year)
const override;
35 bool dateToJulianDay(
int year,
int month,
int day, qint64 *jd)
const override;
36 QCalendar::YearMonthDay julianDayToDate(qint64 jd)
const override;
37 qint64 matchCenturyToWeekday(
const QCalendar::YearMonthDay &parts,
int dow)
const override;
40 static int weekDayOfJulian(qint64 jd);
41 static bool leapTest(
int year);
42 static int monthLength(
int month,
int year);
43 static bool validParts(
int year,
int month,
int day);
44 static QCalendar::YearMonthDay partsFromJulian(qint64 jd);
45 static std::optional<qint64> julianFromParts(
int year,
int month,
int day);
47 static int yearStartWeekDay(
int year);
48 static int yearSharingWeekDays(QDate date);
\macro Q_ATOMIC_INTnn_IS_SUPPORTED
The QCalendarBackend class provides basic calendaring functions.
The QGregorianCalendar class implements the Gregorian calendar.
const QCalendarBackend * fromEnum(QCalendar::System system)
QStringList availableCalendars()
const QCalendarBackend * fromName(QAnyStringView name)
void registerCustomBackend(QCalendarBackend *backend, const QStringList &names)
bool isGregorian(const QCalendarBackend *backend) const
bool isBeingDestroyed() const
const QCalendarBackend * fromIndex(size_t index)
QStringList backendNames(const QCalendarBackend *backend)
const QCalendarBackend * gregorian()
Q_GLOBAL_STATIC(QtPrivate::QCalendarRegistry, calendarRegistry)
quint16 m_longMonthStandalone_size
QLocaleData::DataRange monthName(QLocale::FormatType type) const
quint16 m_shortMonthStandalone_idx
quint8 m_narrowMonthStandalone_size
quint8 m_shortMonthStandalone_size
quint16 m_longMonthStandalone_idx
quint16 m_narrowMonthStandalone_idx
QLocaleData::DataRange standaloneMonthName(QLocale::FormatType type) const
quint8 m_narrowMonth_size
quint16 m_narrowMonth_idx
bool operator()(QAnyStringView lhs, QAnyStringView rhs) const