QCalendarWidget: use ctor-init-list (I)

Saves 64 bytes of text size.

Change-Id: I77c52b80b835b4e59e0683b41d5a4cee8a34d40a
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
bb10
Marc Mutz 2014-09-13 21:30:12 +02:00
parent 9b14f1cc21
commit bf4c50ea33
1 changed files with 12 additions and 12 deletions

View File

@ -969,19 +969,19 @@ private:
};
QCalendarModel::QCalendarModel(QObject *parent)
: QAbstractTableModel(parent)
: QAbstractTableModel(parent),
m_firstColumn(1),
m_firstRow(1),
m_date(QDate::currentDate()),
m_minimumDate(QDate::fromJulianDay(1)),
m_maximumDate(7999, 12, 31),
m_shownYear(m_date.year()),
m_shownMonth(m_date.month()),
m_firstDay(QLocale().firstDayOfWeek()),
m_horizontalHeaderFormat(QCalendarWidget::ShortDayNames),
m_weekNumbersShown(true),
m_view(Q_NULLPTR)
{
m_date = QDate::currentDate();
m_minimumDate = QDate::fromJulianDay(1);
m_maximumDate = QDate(7999, 12, 31);
m_shownYear = m_date.year();
m_shownMonth = m_date.month();
m_firstDay = QLocale().firstDayOfWeek();
m_horizontalHeaderFormat = QCalendarWidget::ShortDayNames;
m_weekNumbersShown = true;
m_firstColumn = 1;
m_firstRow = 1;
m_view = 0;
}
Qt::DayOfWeek QCalendarModel::dayOfWeekForColumn(int column) const