4#ifndef QGREGORIAN_CALENDAR_P_H
5#define QGREGORIAN_CALENDAR_P_H
45 static int weekDayOfJulian(
qint64 jd);
46 static bool leapTest(
int year);
47 static int monthLength(
int month,
int year);
48 static bool validParts(
int year,
int month,
int day);
50 static std::optional<qint64> julianFromParts(
int year,
int month,
int day);
52 static int yearStartWeekDay(
int year);
53 static int yearSharingWeekDays(
QDate date);
virtual QString standaloneMonthName(const QLocale &locale, int month, int year, QLocale::FormatType format) const
Returns the standalone name of the specified month in the chosen locale, using the specified format t...
virtual bool isLeapYear(int year) const =0
Returns true if the specified year is a leap year for this calendar.
virtual bool dateToJulianDay(int year, int month, int day, qint64 *jd) const =0
Computes the Julian day number corresponding to the specified year, month, and day.
virtual QCalendar::YearMonthDay julianDayToDate(qint64 jd) const =0
Computes the year, month, and day in this calendar for the given Julian day number jd.
virtual QString name() const =0
Returns the primary name of the calendar.
virtual QString monthName(const QLocale &locale, int month, int year, QLocale::FormatType format) const
Returns the name of the specified month in the given year for the chosen locale, using the given form...
\inmodule QtCore \reentrant
The QGregorianCalendar class implements the Gregorian calendar.
The QRomanCalendar class is a shared base for calendars based on the ancient Roman calendar.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum format