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
qromancalendar_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// Qt-Security score:significant reason:default
4
5#ifndef QROMAN_CALENDAR_P_H
6#define QROMAN_CALENDAR_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of calendar implementations. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
20
22
23class Q_CORE_EXPORT QRomanCalendar : public QCalendarBackend
24{
25public:
26 // date queries:
27 int daysInMonth(int month, int year = QCalendar::Unspecified) const override;
28 int minimumDaysInMonth() const override;
29 // properties of the calendar
30 bool isLunar() const override;
31 bool isLuniSolar() const override;
32 bool isSolar() const override;
33
34 // Names of months (implemented in qlocale.cpp):
35 QString monthName(const QLocale &locale, int month, int year,
36 QLocale::FormatType format) const override;
37 QString standaloneMonthName(const QLocale &locale, int month, int year,
38 QLocale::FormatType format) const override;
39protected:
40 // locale support:
41 const QCalendarLocale *localeMonthIndexData() const override;
42 const char16_t *localeMonthData() const override;
43};
44
45QT_END_NAMESPACE
46
47#endif // QROMAN_CALENDAR_P_H
\inmodule QtCore
Definition qatomic.h:114
\macro Q_ATOMIC_INTnn_IS_SUPPORTED
Definition qatomic.h:125
The QCalendarBackend class provides basic calendaring functions.
The QGregorianCalendar class implements the Gregorian calendar.
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 CASE(E, member)
quint16 m_longMonthStandalone_size
QLocaleData::DataRange monthName(QLocale::FormatType type) const
quint16 m_shortMonthStandalone_idx
quint8 m_narrowMonthStandalone_size
quint8 m_shortMonthStandalone_size
quint16 m_longMonthStandalone_idx
quint16 m_narrowMonthStandalone_idx
QLocaleData::DataRange standaloneMonthName(QLocale::FormatType type) const
bool operator()(QAnyStringView lhs, QAnyStringView rhs) const
Definition qcalendar.cpp:32