QRomanCalendar Class

The QRomanCalendar class is a shared base for calendars based on the ancient Roman calendar. More...

Header: #include <QRomanCalendar>
qmake: QT += core
Since: Qt 5.14
Inherited By:

QGregorianCalendar, QJulianCalendar, and QMilankovicCalendar

Reimplemented Public Functions

virtual int daysInMonth(int month, int year = QCalendar::Unspecified) const override
virtual bool isLunar() const override
virtual bool isLuniSolar() const override
virtual bool isSolar() const override
virtual int minimumDaysInMonth() const override

Protected Functions

QRomanCalendar(const QString &name, QCalendar::System id = QCalendar::System::User)

Reimplemented Protected Functions

virtual const ushort *localeMonthData() const override
virtual const QCalendarLocale *localeMonthIndexData() const override

Detailed Description

The QRomanCalendar class is a shared base for calendars based on the ancient Roman calendar.

Calendars based on the ancient Roman calendar share the names of months, whose lengths depend in a common way on whether the year is a leap year. They differ in how they determine which years are leap years.

See also QGregorianCalendar, QJulianCalendar, and QMilankovicCalendar.

Member Function Documentation

[protected] QRomanCalendar::QRomanCalendar(const QString &name, QCalendar::System id = QCalendar::System::User)

Default constructs an instance of QRomanCalendar.

[override virtual] int QRomanCalendar::daysInMonth(int month, int year = QCalendar::Unspecified) const

[override virtual] bool QRomanCalendar::isLunar() const

[override virtual] bool QRomanCalendar::isLuniSolar() const

[override virtual] bool QRomanCalendar::isSolar() const

[override virtual protected] const ushort *QRomanCalendar::localeMonthData() const

[override virtual protected] const QCalendarLocale *QRomanCalendar::localeMonthIndexData() const

[override virtual] int QRomanCalendar::minimumDaysInMonth() const