60 return qMod<30>(year * 11 + 14) < 11;
84 const auto year30Day = qDivMod<ThirtyYears>(30 * (jd -
EpochJd) + 15);
86 const auto month11Day = qDivMod<ElevenMonths>(11 * qDiv<30>(year30Day.remainder) + 5);
88 const int month = month11Day.quotient + 1;
89 const int day = qDiv<11>(month11Day.remainder) + 1;
90 const int y = year30Day.quotient + 1;
virtual bool isDateValid(int year, int month, int day) const
Returns true if the date specified by year, month, and day is valid for this calendar; otherwise retu...
bool isLeapYear(int year) const override
Returns true if the specified year is a leap year for this calendar.
bool dateToJulianDay(int year, int month, int day, qint64 *jd) const override
Computes the Julian day number corresponding to the specified year, month, and day.
QString name() const override
Returns the primary name of the calendar.
QCalendar::YearMonthDay julianDayToDate(qint64 jd) const override
Computes the year, month, and day in this calendar for the given Julian day number jd.
static QStringList nameList()
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
constexpr unsigned ElevenMonths
constexpr unsigned ThirtyYears
#define QStringLiteral(str)