Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qmilankoviccalendar_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QMILANKOVICCALENDAR_CALENDAR_P_H
5#define QMILANKOVICCALENDAR_CALENDAR_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of calendar implementations. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19
21
22class Q_CORE_EXPORT QMilankovicCalendar : public QRomanCalendar
23{
24public:
25 // Calendar properties:
26 QString name() const override;
27 static QStringList nameList();
28 // Date queries:
29 bool isLeapYear(int year) const override;
30 // Julian Day conversions:
31 bool dateToJulianDay(int year, int month, int day, qint64 *jd) const override;
32 QCalendar::YearMonthDay julianDayToDate(qint64 jd) const override;
33};
34
35QT_END_NAMESPACE
36
37#endif // QMILANKOVICCALENDAR_CALENDAR_P_H
\inmodule QtCore
Definition qatomic.h:112
\macro Q_ATOMIC_INTnn_IS_SUPPORTED
Definition qatomic.h:123
The QCalendarBackend class provides basic calendaring functions.
The QGregorianCalendar class implements the Gregorian calendar.
The QJulianCalendar class provides Julian calendar system implementation.
The QMilankovicCalendar class provides Milanković calendar system implementation.
The QRomanCalendar class is a shared base for calendars based on the ancient Roman calendar.
const QCalendarBackend * fromEnum(QCalendar::System system)
const QCalendarBackend * fromName(QAnyStringView name)
void registerCustomBackend(QCalendarBackend *backend, const QStringList &names)
bool isGregorian(const QCalendarBackend *backend) const
const QCalendarBackend * fromIndex(size_t index)
QStringList backendNames(const QCalendarBackend *backend)
const QCalendarBackend * gregorian()
Combined button and popup list for selecting options.
#define SAFE_D()
Q_GLOBAL_STATIC(QtPrivate::QCalendarRegistry, calendarRegistry)
#define rangeGetter(name)
Definition qlocale_p.h:485
quint16 m_longMonthStandalone_size
quint16 m_shortMonthStandalone_idx
quint8 m_narrowMonthStandalone_size
quint8 m_shortMonthStandalone_size
quint16 m_narrowMonthStandalone_idx
bool operator()(QAnyStringView lhs, QAnyStringView rhs) const
Definition qcalendar.cpp:31