MauiKit Calendar
infinitecalendarviewmodel.cpp
67 const int firstYear = ((floor(today.year() / 10)) * 10) - 1; // E.g. For 2020 have view start at 2019...
69 firstDay = firstDay.addYears(((-m_datesToAdd * 12) / 2) + 10); // 3 * 4 grid so 12 years, end at 2030, and align for mid index to be current decade
161 QDate startDate = startFrom.isValid() && i == 0 ? startFrom : atEnd ? m_startDates[rowCount() - 1].addDays(amount) : m_startDates[0].addDays(-amount);
180 QDate startDate = startFrom.isValid() && i == 0 ? startFrom : atEnd ? m_startDates[rowCount() - 1].addDays(7) : m_startDates[0].addDays(-7);
232 QDate startDate = startFrom.isValid() && i == 0 ? startFrom : atEnd ? m_startDates[rowCount() - 1].addYears(1) : m_startDates[0].addYears(-1);
251 QDate startDate = startFrom.isValid() && i == 0 ? startFrom : atEnd ? m_startDates[rowCount() - 1].addYears(10) : m_startDates[0].addYears(-10);
char * toString(const EngineQuery &query)
void beginInsertRows(const QModelIndex &parent, int first, int last)
void beginResetModel()
void endInsertRows()
void endResetModel()
bool hasIndex(int row, int column, const QModelIndex &parent) const const
QDate addDays(qint64 ndays) const const
QDate currentDate()
int dayOfWeek() const const
int month() const const
QDateTime startOfDay() const const
int year() const const
void append(QList< T > &&value)
void clear()
qsizetype length() const const
NarrowFormat
Qt::DayOfWeek firstDayOfWeek() const const
QLocale system()
Q_EMITQ_EMIT
QObject * parent() const const
T qobject_cast(QObject *object)
QTestData & newRow(const char *dataTag)
bool setHMS(int h, int m, int s, int ms)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:50:31 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:50:31 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.