Commit b54f287a authored by Laurent Montel's avatar Laurent Montel 😁

Add more Q_DECL_OVERRIDE

parent 20caeae8
......@@ -75,7 +75,7 @@ class BirthdaySortModel : public QSortFilterProxyModel
void setPrefixSuffix(const QString& prefix, const QString& suffix);
protected:
virtual bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const;
bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const Q_DECL_OVERRIDE;
private:
QStringList mContactsWithAlarm;
......
......@@ -69,7 +69,7 @@ class CollectionMimeTypeFilterModel : public Akonadi::EntityMimeTypeFilterModel
QModelIndex collectionIndex(const Akonadi::Collection&) const;
protected:
virtual bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const;
bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const Q_DECL_OVERRIDE;
private:
CalEvent::Type mAlarmType; // collection content type contained in this model
......
......@@ -117,10 +117,10 @@ class CollectionFilterCheckListModel : public QSortFilterProxyModel
void setEventTypeFilter(CalEvent::Type);
Akonadi::Collection collection(int row) const;
Akonadi::Collection collection(const QModelIndex&) const;
virtual QVariant data(const QModelIndex&, int role = Qt::DisplayRole) const;
QVariant data(const QModelIndex&, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
protected:
bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const;
bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const Q_DECL_OVERRIDE;
private Q_SLOTS:
void collectionTypeChanged(CollectionCheckListModel*);
......
......@@ -65,7 +65,7 @@ class ItemListModel : public Akonadi::EntityMimeTypeFilterModel
void haveEventsStatus(bool have);
protected:
virtual bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const;
bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const Q_DECL_OVERRIDE;
private Q_SLOTS:
void slotRowsInserted();
......@@ -114,8 +114,8 @@ class AlarmListModel : public ItemListModel
virtual QVariant headerData(int section, Qt::Orientation, int role = Qt::DisplayRole) const;
protected:
virtual bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const;
virtual bool filterAcceptsColumn(int sourceCol, const QModelIndex& sourceParent) const;
bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const Q_DECL_OVERRIDE;
bool filterAcceptsColumn(int sourceCol, const QModelIndex& sourceParent) const Q_DECL_OVERRIDE;
private:
static AlarmListModel* mAllInstance;
......@@ -162,8 +162,8 @@ class TemplateListModel : public ItemListModel
virtual Qt::ItemFlags flags(const QModelIndex&) const;
protected:
virtual bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const;
virtual bool filterAcceptsColumn(int sourceCol, const QModelIndex& sourceParent) const;
bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const Q_DECL_OVERRIDE;
bool filterAcceptsColumn(int sourceCol, const QModelIndex& sourceParent) const Q_DECL_OVERRIDE;
private:
static TemplateListModel* mAllInstance;
......
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