Commit e9bd1fdc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify methods

parent c78ffaae
Pipeline #194088 passed with stage
in 6 minutes and 20 seconds
......@@ -273,7 +273,7 @@ void InfiniteCalendarViewModel::setDatesToAdd(int datesToAdd)
Q_EMIT datesToAddChanged();
}
int InfiniteCalendarViewModel::scale()
int InfiniteCalendarViewModel::scale() const
{
return m_scale;
}
......
......@@ -53,7 +53,7 @@ public:
int datesToAdd() const;
void setDatesToAdd(int datesToAdd);
int scale();
int scale() const;
void setScale(int scale);
Q_SIGNALS:
......
......@@ -286,7 +286,7 @@ void MultiDayIncidenceModel::setModel(IncidenceOccurrenceModel *model)
endResetModel();
}
int MultiDayIncidenceModel::periodLength()
int MultiDayIncidenceModel::periodLength() const
{
return mPeriodLength;
}
......
......@@ -62,7 +62,7 @@ public:
IncidenceOccurrenceModel *model();
void setModel(IncidenceOccurrenceModel *model);
int periodLength();
int periodLength() const;
void setPeriodLength(int periodLength);
MultiDayIncidenceModel::Filters filters();
void setFilters(MultiDayIncidenceModel::Filters filters);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment