QCalendarWidget: use ctor-init-list (II)
Saves 32 bytes of text size. Change-Id: I24e71f25f9a5a4c70e7948953e049dfb47c0e7d1 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
This commit is contained in:
parent
bf4c50ea33
commit
14511471df
@ -489,9 +489,11 @@ private:
|
||||
};
|
||||
|
||||
QCalendarDateValidator::QCalendarDateValidator()
|
||||
: m_currentToken(0), m_lastSectionMove(QCalendarDateSectionValidator::ThisSection)
|
||||
: m_currentToken(Q_NULLPTR),
|
||||
m_initialDate(QDate::currentDate()),
|
||||
m_currentDate(m_initialDate),
|
||||
m_lastSectionMove(QCalendarDateSectionValidator::ThisSection)
|
||||
{
|
||||
m_initialDate = m_currentDate = QDate::currentDate();
|
||||
m_yearValidator = new QCalendarYearValidator();
|
||||
m_monthValidator = new QCalendarMonthValidator();
|
||||
m_dayValidator = new QCalendarDayValidator();
|
||||
|
Loading…
Reference in New Issue
Block a user