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::QCalendarDateValidator Class Reference
+ Collaboration diagram for QtPrivate::QCalendarDateValidator:

Public Member Functions

 QCalendarDateValidator ()
 
 ~QCalendarDateValidator ()
 
void handleKeyEvent (QKeyEvent *keyEvent, QCalendar cal)
 
QString currentText (QCalendar cal) const
 
QDate currentDate () const
 
void setFormat (const QString &format)
 
void setInitialDate (QDate date, QCalendar cal)
 
void setLocale (const QLocale &locale)
 

Detailed Description

Definition at line 407 of file qcalendarwidget.cpp.

Constructor & Destructor Documentation

◆ QCalendarDateValidator()

QtPrivate::QCalendarDateValidator::QCalendarDateValidator ( )

Definition at line 443 of file qcalendarwidget.cpp.

◆ ~QCalendarDateValidator()

QtPrivate::QCalendarDateValidator::~QCalendarDateValidator ( )

Definition at line 458 of file qcalendarwidget.cpp.

Member Function Documentation

◆ currentDate()

QDate QtPrivate::QCalendarDateValidator::currentDate ( ) const
inline

Definition at line 415 of file qcalendarwidget.cpp.

◆ currentText()

QString QtPrivate::QCalendarDateValidator::currentText ( QCalendar cal) const

Definition at line 484 of file qcalendarwidget.cpp.

References i, str, and token.

◆ handleKeyEvent()

void QtPrivate::QCalendarDateValidator::handleKeyEvent ( QKeyEvent * keyEvent,
QCalendar cal )

Definition at line 581 of file qcalendarwidget.cpp.

References QKeyEvent::key(), Qt::Key_Back, Qt::Key_Backspace, Qt::Key_Left, Qt::Key_Right, QtPrivate::QCalendarDateSectionValidator::NextSection, and QtPrivate::QCalendarDateSectionValidator::PrevSection.

Referenced by QtPrivate::QCalendarTextNavigator::eventFilter().

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

◆ setFormat()

void QtPrivate::QCalendarDateValidator::setFormat ( const QString & format)

Definition at line 510 of file qcalendarwidget.cpp.

References QStringView::mid(), pos, qMin(), quote(), and QStringView::startsWith().

+ Here is the call graph for this function:

◆ setInitialDate()

void QtPrivate::QCalendarDateValidator::setInitialDate ( QDate date,
QCalendar cal )

Definition at line 474 of file qcalendarwidget.cpp.

References date, QtPrivate::QCalendarDayValidator::setDate(), QtPrivate::QCalendarMonthValidator::setDate(), QtPrivate::QCalendarYearValidator::setDate(), and QtPrivate::QCalendarDateSectionValidator::ThisSection.

+ Here is the call graph for this function:

◆ setLocale()

void QtPrivate::QCalendarDateValidator::setLocale ( const QLocale & locale)

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