Definition at line 342 of file qcalendarwidget.cpp.
◆ QCalendarYearValidator()
QCalendarYearValidator::QCalendarYearValidator |
( |
| ) |
|
◆ applyToDate()
QDate QCalendarYearValidator::applyToDate |
( |
const QDate & |
date | ) |
const |
|
virtual |
Implements QCalendarDateSectionValidator.
Definition at line 410 of file qcalendarwidget.cpp.
416 int day = date.
day();
417 if (day > newDate.daysInMonth())
418 day = newDate.daysInMonth();
int month() const
Returns the number corresponding to the month of this date, using the following convention: ...
int day() const
Returns the day of the month (1 to 31) of this date.
The QDate class provides date functions.
◆ handleKey()
◆ pow10()
int QCalendarYearValidator::pow10 |
( |
int |
n | ) |
|
|
private |
◆ setDate()
void QCalendarYearValidator::setDate |
( |
const QDate & |
date | ) |
|
|
virtual |
◆ text() [1/2]
QString QCalendarYearValidator::text |
( |
| ) |
const |
|
virtual |
Implements QCalendarDateSectionValidator.
Definition at line 428 of file qcalendarwidget.cpp.
432 for (
int i = 0; i < 3; i++) {
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QString highlightString(const QString &str, int pos) const
The QString class provides a Unicode character string.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
◆ text() [2/2]
QString QCalendarYearValidator::text |
( |
const QDate & |
date, |
|
|
int |
repeat |
|
) |
| const |
|
virtual |
Implements QCalendarDateSectionValidator.
Definition at line 441 of file qcalendarwidget.cpp.
445 int year = date.
year() % 100;
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
The QString class provides a Unicode character string.
int year() const
Returns the year of this date.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
◆ m_oldYear
int QCalendarYearValidator::m_oldYear |
|
private |
◆ m_pos
int QCalendarYearValidator::m_pos |
|
private |
◆ m_year
int QCalendarYearValidator::m_year |
|
private |
The documentation for this class was generated from the following file: