Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 , NextSection ,
  ThisSection , PrevSection
}
 
enum  Section {
  NextSection , ThisSection , PrevSection , 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
 
 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)
 
static QString highlightString (const QString &str, int pos)
 

Detailed Description

Definition at line 47 of file qcalendarwidget.cpp.

Member Enumeration Documentation

◆ Section [1/2]

Enumerator
NextSection 
ThisSection 
PrevSection 
NextSection 
ThisSection 
PrevSection 

Definition at line 51 of file qcalendarwidget.cpp.

◆ Section [2/2]

Enumerator
NextSection 
ThisSection 
PrevSection 
NextSection 
ThisSection 
PrevSection 

Definition at line 51 of file qcalendarwidget.cpp.

Constructor & Destructor Documentation

◆ QCalendarDateSectionValidator() [1/2]

QtPrivate::QCalendarDateSectionValidator::QCalendarDateSectionValidator ( )
inline

Definition at line 57 of file qcalendarwidget.cpp.

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

+ Here is the caller graph for this function:

◆ ~QCalendarDateSectionValidator() [1/2]

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

Definition at line 58 of file qcalendarwidget.cpp.

◆ QCalendarDateSectionValidator() [2/2]

QtPrivate::QCalendarDateSectionValidator::QCalendarDateSectionValidator ( )
inline

Definition at line 57 of file qcalendarwidget.cpp.

◆ ~QCalendarDateSectionValidator() [2/2]

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

Definition at line 58 of file qcalendarwidget.cpp.

Member Function Documentation

◆ applyToDate() [1/2]

◆ applyToDate() [2/2]

◆ handleKey() [1/2]

◆ handleKey() [2/2]

◆ highlightString() [1/2]

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

Definition at line 71 of file qcalendarwidget.cpp.

◆ highlightString() [2/2]

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

◆ setDate() [1/2]

◆ setDate() [2/2]

◆ text() [1/4]

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

Implemented in QtPrivate::QCalendarDayValidator, QtPrivate::QCalendarDayValidator, QtPrivate::QCalendarMonthValidator, QtPrivate::QCalendarMonthValidator, QtPrivate::QCalendarYearValidator, and QtPrivate::QCalendarYearValidator.

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

+ Here is the caller graph for this function:

◆ text() [2/4]

◆ text() [3/4]

◆ text() [4/4]

Member Data Documentation

◆ m_locale

QLocale QtPrivate::QCalendarDateSectionValidator::m_locale

Definition at line 65 of file qcalendarwidget.cpp.


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