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::QCalendarDateSectionValidator Class Referenceabstract
+ Inheritance diagram for QtPrivate::QCalendarDateSectionValidator:
+ Collaboration diagram for QtPrivate::QCalendarDateSectionValidator:

Public Types

enum  Section { NextSection , ThisSection , PrevSection }
 

Public Member Functions

 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
 

Public Attributes

QLocale m_locale
 

Static Protected Member Functions

static QString highlightString (const QString &str, int pos)
 

Detailed Description

Definition at line 47 of file qcalendarwidget.cpp.

Member Enumeration Documentation

◆ Section

Enumerator
NextSection 
ThisSection 
PrevSection 

Definition at line 51 of file qcalendarwidget.cpp.

Constructor & Destructor Documentation

◆ QCalendarDateSectionValidator()

QtPrivate::QCalendarDateSectionValidator::QCalendarDateSectionValidator ( )
inline

Definition at line 57 of file qcalendarwidget.cpp.

◆ ~QCalendarDateSectionValidator()

virtual QtPrivate::QCalendarDateSectionValidator::~QCalendarDateSectionValidator ( )
inlinevirtual

Definition at line 58 of file qcalendarwidget.cpp.

Member Function Documentation

◆ applyToDate()

virtual QDate QtPrivate::QCalendarDateSectionValidator::applyToDate ( QDate date,
QCalendar cal = QCalendar() ) const
pure virtual

◆ handleKey()

virtual Section QtPrivate::QCalendarDateSectionValidator::handleKey ( int key)
pure virtual

◆ highlightString()

QString QtPrivate::QCalendarDateSectionValidator::highlightString ( const QString & str,
int pos )
staticprotected

Definition at line 71 of file qcalendarwidget.cpp.

References QString::mid(), pos, QString::size(), and str.

Referenced by QtPrivate::QCalendarDayValidator::text(), QtPrivate::QCalendarMonthValidator::text(), and QtPrivate::QCalendarYearValidator::text().

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

◆ setDate()

virtual void QtPrivate::QCalendarDateSectionValidator::setDate ( QDate date,
QCalendar cal = QCalendar() )
pure virtual

◆ text() [1/2]

virtual QString QtPrivate::QCalendarDateSectionValidator::text ( ) const
pure virtual

◆ text() [2/2]

virtual QString QtPrivate::QCalendarDateSectionValidator::text ( QDate date,
QCalendar cal,
int repeat ) const
pure virtual

Member Data Documentation

◆ m_locale

QLocale QtPrivate::QCalendarDateSectionValidator::m_locale

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