61 if (year == 0 || month < 1 || month > 12)
67 return month % 2 == 0 ? 29 : 30;
virtual bool isLeapYear(int year) const =0
Returns true if the specified year is a leap year for this calendar.
virtual int monthsInYear(int year) const
Returns the total number of months in the year number year.
int daysInYear(int year) const override
Returns the total number of days in the year number year.
const QCalendarLocale * localeMonthIndexData() const override
bool isLunar() const override
Returns true if this calendar is a lunar calendar.
bool isSolar() const override
Returns true if this calendar is a solar calendar.
int maximumDaysInMonth() const override
Returns the maximum number of days in a month for any year.
bool isLuniSolar() const override
Returns true if this calendar is a lunisolar calendar.
const char16_t * localeMonthData() const override
int daysInMonth(int month, int year=QCalendar::Unspecified) const override
Returns number of days in the month number month, in year year.
Combined button and popup list for selecting options.
static constexpr char16_t months_data[]
static constexpr QCalendarLocale locale_data[]