From 2dee00621632ab8acd0b3d59bdba264afe2f32c1 Mon Sep 17 00:00:00 2001 From: Soroush Rabiei Date: Thu, 8 Aug 2019 15:19:18 +0200 Subject: Adapt QCalendarWidget and QDateTimeEdit to support choice of calendar [ChangeLog][QtWidgets][QCalendarWidget] Allow choice of calendar, with Gregorian remaining the default. [ChangeLog][QtWidgets][QDateTimeEdit] Allow choice of calendar, with Gregorian remaining the default. Change-Id: Ia11dd895032393543aee534b177324e643dcfb20 Done-with: Edward Welbourne Reviewed-by: Volker Hilsheimer --- src/widgets/widgets/qdatetimeedit.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/widgets/widgets/qdatetimeedit.h') diff --git a/src/widgets/widgets/qdatetimeedit.h b/src/widgets/widgets/qdatetimeedit.h index b6fb35fc71..03994675ae 100644 --- a/src/widgets/widgets/qdatetimeedit.h +++ b/src/widgets/widgets/qdatetimeedit.h @@ -42,6 +42,7 @@ #include #include +#include #include #include @@ -102,6 +103,9 @@ public: QDate date() const; QTime time() const; + QCalendar calendar() const; + void setCalendar(QCalendar calendar); + QDateTime minimumDateTime() const; void clearMinimumDateTime(); void setMinimumDateTime(const QDateTime &dt); -- cgit v1.2.3