diff options
Diffstat (limited to 'src/widgets/widgets/qcalendarwidget.cpp')
-rw-r--r-- | src/widgets/widgets/qcalendarwidget.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/widgets/widgets/qcalendarwidget.cpp b/src/widgets/widgets/qcalendarwidget.cpp index 0071143958..3e2b982751 100644 --- a/src/widgets/widgets/qcalendarwidget.cpp +++ b/src/widgets/widgets/qcalendarwidget.cpp @@ -969,19 +969,19 @@ private: }; QCalendarModel::QCalendarModel(QObject *parent) - : QAbstractTableModel(parent) -{ - 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; + : 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) +{ } Qt::DayOfWeek QCalendarModel::dayOfWeekForColumn(int column) const |