Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtPrivate::QCalendarDayValidator Class Reference
+ Inheritance diagram for QtPrivate::QCalendarDayValidator:
+ Collaboration diagram for QtPrivate::QCalendarDayValidator:

Public Member Functions

 QCalendarDayValidator ()
 
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
 
- Public Member Functions inherited from QtPrivate::QCalendarDateSectionValidator
 QCalendarDateSectionValidator ()
 
virtual ~QCalendarDateSectionValidator ()
 

Additional Inherited Members

- Public Types inherited from QtPrivate::QCalendarDateSectionValidator
enum  Section { NextSection , ThisSection , PrevSection }
 
- Public Attributes inherited from QtPrivate::QCalendarDateSectionValidator
QLocale m_locale
 
- Static Protected Member Functions inherited from QtPrivate::QCalendarDateSectionValidator
static QString highlightString (const QString &str, int pos)
 

Detailed Description

Definition at line 80 of file qcalendarwidget.cpp.

Constructor & Destructor Documentation

◆ QCalendarDayValidator()

QtPrivate::QCalendarDayValidator::QCalendarDayValidator ( )

Definition at line 96 of file qcalendarwidget.cpp.

Member Function Documentation

◆ applyToDate()

QDate QtPrivate::QCalendarDayValidator::applyToDate ( QDate date,
QCalendar cal ) const
overridevirtual

Implements QtPrivate::QCalendarDateSectionValidator.

Definition at line 150 of file qcalendarwidget.cpp.

References date, qMax(), and qMin().

+ Here is the call graph for this function:

◆ handleKey()

◆ setDate()

void QtPrivate::QCalendarDayValidator::setDate ( QDate date,
QCalendar cal )
overridevirtual

Implements QtPrivate::QCalendarDateSectionValidator.

Definition at line 159 of file qcalendarwidget.cpp.

References date, and QDate::day().

Referenced by QtPrivate::QCalendarDateValidator::setInitialDate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ text() [1/2]

QString QtPrivate::QCalendarDayValidator::text ( ) const
overridevirtual

Implements QtPrivate::QCalendarDateSectionValidator.

Definition at line 165 of file qcalendarwidget.cpp.

References formatNumber(), and QtPrivate::QCalendarDateSectionValidator::highlightString().

+ Here is the call graph for this function:

◆ text() [2/2]

QString QtPrivate::QCalendarDayValidator::text ( QDate date,
QCalendar cal,
int repeat ) const
overridevirtual

Implements QtPrivate::QCalendarDateSectionValidator.

Definition at line 170 of file qcalendarwidget.cpp.

References date, QDate::day(), QLocale::dayName(), QDate::dayOfWeek(), formatNumber(), QLocale::LongFormat, QtPrivate::QCalendarDateSectionValidator::m_locale, QString::number(), and QLocale::ShortFormat.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: