![]() |
Qt 6.x
The Qt SDK
|
Public Member Functions | |
QCalendarMonthValidator () | |
virtual Section | handleKey (int key) override |
virtual QDate | applyToDate (QDate date, QCalendar cal) const override |
virtual void | setDate (QDate date, QCalendar cal) override |
virtual QString | text () const override |
virtual QString | text (QDate date, QCalendar cal, int repeat) const override |
![]() | |
QCalendarDateSectionValidator () | |
virtual | ~QCalendarDateSectionValidator () |
virtual Section | handleKey (int key)=0 |
virtual QDate | applyToDate (QDate date, QCalendar cal=QCalendar()) const =0 |
virtual void | setDate (QDate date, QCalendar cal=QCalendar())=0 |
virtual QString | text () const =0 |
virtual QString | text (QDate date, QCalendar cal, int repeat) const =0 |
Additional Inherited Members | |
![]() | |
enum | Section { NextSection , ThisSection , PrevSection } |
![]() | |
QLocale | m_locale |
![]() | |
static QString | highlightString (const QString &str, int pos) |
Definition at line 185 of file qcalendarwidget.cpp.
QtPrivate::QCalendarMonthValidator::QCalendarMonthValidator | ( | ) |
Definition at line 201 of file qcalendarwidget.cpp.
|
overridevirtual |
Implements QtPrivate::QCalendarDateSectionValidator.
Definition at line 255 of file qcalendarwidget.cpp.
References date, QCalendar::dateFromParts(), QCalendar::daysInMonth(), QCalendar::monthsInYear(), QCalendar::partsFromDate(), qMax(), and qMin().
|
overridevirtual |
Implements QtPrivate::QCalendarDateSectionValidator.
Definition at line 206 of file qcalendarwidget.cpp.
References Qt::Key_0, Qt::Key_9, Qt::Key_Back, Qt::Key_Backspace, Qt::Key_Down, Qt::Key_Left, Qt::Key_Right, Qt::Key_Up, QtPrivate::QCalendarDateSectionValidator::NextSection, QtPrivate::QCalendarDateSectionValidator::PrevSection, and QtPrivate::QCalendarDateSectionValidator::ThisSection.
Implements QtPrivate::QCalendarDateSectionValidator.
Definition at line 265 of file qcalendarwidget.cpp.
References date, and QDate::month().
Referenced by QtPrivate::QCalendarDateValidator::setInitialDate().
|
overridevirtual |
Implements QtPrivate::QCalendarDateSectionValidator.
Definition at line 271 of file qcalendarwidget.cpp.
References formatNumber(), and QtPrivate::QCalendarDateSectionValidator::highlightString().
|
overridevirtual |
Implements QtPrivate::QCalendarDateSectionValidator.
Definition at line 276 of file qcalendarwidget.cpp.
References date, formatNumber(), QLocale::LongFormat, QtPrivate::QCalendarDateSectionValidator::m_locale, QString::number(), QCalendar::partsFromDate(), QLocale::ShortFormat, and QCalendar::standaloneMonthName().