Commit b2394a98 authored by Chupligin Sergey's avatar Chupligin Sergey

[CalendarModel] fix const

parent 40ccb20a
...@@ -86,7 +86,7 @@ QVariant CalendarModel::data(const QModelIndex &index, int role) const ...@@ -86,7 +86,7 @@ QVariant CalendarModel::data(const QModelIndex &index, int role) const
} }
} }
QVariant CalendarModel::get(const int idx) QVariant CalendarModel::get(const int idx) const
{ {
if(idx >= m_dateList.size()) if(idx >= m_dateList.size())
{ {
......
...@@ -61,13 +61,13 @@ public: ...@@ -61,13 +61,13 @@ public:
void setMonth(int month); void setMonth(int month);
void setYear(int year); void setYear(int year);
QDate currentDate(){return m_currentDate;} const QDate currentDate(){return m_currentDate;}
QDate selectedDate(){return m_selectedDate;} QDate selectedDate(){return m_selectedDate;}
int month(){return m_month;} int month(){return m_month;}
int year(){return m_year;} int year(){return m_year;}
public slots: public slots:
QVariant get(const int idx); QVariant get(const int idx) const;
signals: signals:
void selectedDateChanged(); void selectedDateChanged();
......
Markdown is supported
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