summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-08-03 23:10:19 +0200
committerMontel Laurent <[email protected]>2015-08-03 23:11:13 +0200
commit2b7eba39ec8c6c223951f632eaba38e0ca5b4716 (patch)
tree3cb627ed890e36297bbecc223811d4878b485e3b
parent05471c2ee98ab73c17269705808be401eaffe276 (diff)
const'ify clean up
-rw-r--r--calendarviews/month/monthgraphicsitems.h4
-rw-r--r--calendarviews/multiagenda/multiagendaview.h2
-rw-r--r--calendarviews/todo/todomodel.h18
3 files changed, 2 insertions, 22 deletions
diff --git a/calendarviews/month/monthgraphicsitems.h b/calendarviews/month/monthgraphicsitems.h
index 04c8678..5a6e1f7 100644
--- a/calendarviews/month/monthgraphicsitems.h
+++ b/calendarviews/month/monthgraphicsitems.h
@@ -107,11 +107,11 @@ public:
bool hasEventBelow(int height);
// TODO : move this to a new GUI class (monthcell could be GraphicsItems)
- ScrollIndicator *upArrow()
+ ScrollIndicator *upArrow() const
{
return mUpArrow;
}
- ScrollIndicator *downArrow()
+ ScrollIndicator *downArrow() const
{
return mDownArrow;
}
diff --git a/calendarviews/multiagenda/multiagendaview.h b/calendarviews/multiagenda/multiagendaview.h
index 9703b67..993f6e2 100644
--- a/calendarviews/multiagenda/multiagendaview.h
+++ b/calendarviews/multiagenda/multiagendaview.h
@@ -47,10 +47,8 @@ public:
bool eventDurationHint(QDateTime &startDt, QDateTime &endDt, bool &allDay) const Q_DECL_OVERRIDE;
- /* reimp */
void setCalendar(const Akonadi::ETMCalendar::Ptr &cal) Q_DECL_OVERRIDE;
- /* reimp */
bool hasConfigurationDialog() const Q_DECL_OVERRIDE;
void setChanges(Changes changes) Q_DECL_OVERRIDE;
diff --git a/calendarviews/todo/todomodel.h b/calendarviews/todo/todomodel.h
index a87cc93..56a5a7f 100644
--- a/calendarviews/todo/todomodel.h
+++ b/calendarviews/todo/todomodel.h
@@ -66,60 +66,42 @@ public:
~TodoModel();
- /**reimp*/
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
- /**reimp*/
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
- /**reimp*/
void setSourceModel(QAbstractItemModel *sourceModel) Q_DECL_OVERRIDE;
- /**reimp*/
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
- /**reimp*/
bool setData(const QModelIndex &index, const QVariant &value, int role) Q_DECL_OVERRIDE;
- /**reimp*/
QVariant headerData(int section, Qt::Orientation, int role) const Q_DECL_OVERRIDE;
- /**reimp*/
void setCalendar(const Akonadi::ETMCalendar::Ptr &calendar);
- /**reimp*/
void setIncidenceChanger(Akonadi::IncidenceChanger *changer);
- /**reimp*/
QMimeData *mimeData(const QModelIndexList &indexes) const Q_DECL_OVERRIDE;
- /**reimp*/
bool dropMimeData(const QMimeData *data, Qt::DropAction action,
int row, int column, const QModelIndex &parent) Q_DECL_OVERRIDE;
- /**reimp*/
QStringList mimeTypes() const Q_DECL_OVERRIDE;
- /**reimp*/
Qt::DropActions supportedDropActions() const Q_DECL_OVERRIDE;
- /**reimp*/
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
- /**reimp*/
QModelIndex parent(const QModelIndex &child) const Q_DECL_OVERRIDE;
- /**reimp*/
QModelIndex mapFromSource(const QModelIndex &sourceIndex) const Q_DECL_OVERRIDE;
- /**reimp*/
QModelIndex mapToSource(const QModelIndex &proxyIndex) const Q_DECL_OVERRIDE;
- /**reimp*/
QModelIndex index(int row, int column,
const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
- /**reimp*/
QModelIndex buddy(const QModelIndex &index) const Q_DECL_OVERRIDE;
private: