Changeset View
Changeset View
Standalone View
Standalone View
plan/libs/models/kcalendar/kdatetable.cpp
Context not available. | |||||
50 | public: | 50 | public: | ||
---|---|---|---|---|---|
51 | KDateTablePrivate(KDateTable *q): q(q) | 51 | KDateTablePrivate(KDateTable *q): q(q) | ||
52 | { | 52 | { | ||
53 | m_weekDayFirstOfMonth = 1; | ||||
53 | m_popupMenuEnabled = false; | 54 | m_popupMenuEnabled = false; | ||
54 | m_selectionmode = KDateTable::SingleSelection; | 55 | m_selectionmode = KDateTable::SingleSelection; | ||
55 | m_paintweeknumbers = false; | 56 | m_paintweeknumbers = false; | ||
Context not available. | |||||
123 | { | 124 | { | ||
124 | if (!date.isValid()) { | 125 | if (!date.isValid()) { | ||
125 | debugPlan << "KDateTable ctor: WARNING: Given date is invalid, using current date."; | 126 | debugPlan << "KDateTable ctor: WARNING: Given date is invalid, using current date."; | ||
126 | initWidget(QDate::currentDate()); // this initializes m_weekDayFirstOfMonth, m_numDaysThisMonth, numDaysPrevMonth | 127 | initWidget(QDate::currentDate()); | ||
127 | } else { | 128 | } else { | ||
128 | initWidget(date); // this initializes m_weekDayFirstOfMonth, m_numDaysThisMonth, numDaysPrevMonth | 129 | initWidget(date); | ||
129 | } | 130 | } | ||
130 | } | 131 | } | ||
131 | 132 | | |||
Context not available. | |||||
832 | return false; | 833 | return false; | ||
833 | } | 834 | } | ||
834 | 835 | | |||
836 | d->m_weekDayFirstOfMonth = QDate(date_.year(), date_.month(), 1).dayOfWeek(); | ||||
837 | | ||||
835 | if (d->m_date != date_) { | 838 | if (d->m_date != date_) { | ||
836 | const QDate oldDate = d->m_date; | 839 | const QDate oldDate = d->m_date; | ||
837 | d->m_date = date_; | 840 | d->m_date = date_; | ||
Context not available. |