28 if (!year || month < 1 || month > 12)
35 return 30 | ((month & 1) ^ (month >> 3));
virtual bool isLeapYear(int year) const =0
Returns true if the specified year is a leap year for this calendar.
const QCalendarLocale * localeMonthIndexData() const override
bool isLuniSolar() const override
Returns true if this calendar is a lunisolar calendar.
bool isSolar() const override
Returns true if this calendar is a solar calendar.
bool isLunar() const override
Returns true if this calendar is a lunar calendar.
int daysInMonth(int month, int year=QCalendar::Unspecified) const override
Returns number of days in the month number month, in year year.
int minimumDaysInMonth() const override
Returns the minimum number of days in any valid month of any valid year.
const char16_t * localeMonthData() const override
Combined button and popup list for selecting options.
static constexpr QCalendarLocale locale_data[]
static constexpr char16_t months_data[]