Commit 80f27574 authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECL_OVERRIDE

parent 80609967
......@@ -59,7 +59,7 @@ class CollectionListModel : public KDescendantsProxyModel
Akonadi::Collection collection(const QModelIndex&) const;
QModelIndex collectionIndex(const Akonadi::Collection&) const;
virtual bool isDescendantOf(const QModelIndex& ancestor, const QModelIndex& descendant) const;
virtual QVariant data(const QModelIndex&, int role = Qt::DisplayRole) const;
QVariant data(const QModelIndex&, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
private:
bool mUseCollectionColour;
......
......@@ -110,8 +110,8 @@ class AlarmListModel : public ItemListModel
*/
CalEvent::Types eventTypeFilter() const { return mFilterTypes; }
virtual int columnCount(const QModelIndex& = QModelIndex()) const { return ColumnCount; }
virtual QVariant headerData(int section, Qt::Orientation, int role = Qt::DisplayRole) const;
int columnCount(const QModelIndex& = QModelIndex()) const Q_DECL_OVERRIDE { return ColumnCount; }
QVariant headerData(int section, Qt::Orientation, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
protected:
bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const Q_DECL_OVERRIDE;
......
......@@ -48,7 +48,7 @@ class PackedLayout : public QLayout
virtual QLayoutItem* itemAt(int index) const;
virtual QLayoutItem* takeAt(int index);
virtual void setGeometry(const QRect& r);
virtual QSize sizeHint() const { return minimumSize(); }
QSize sizeHint() const Q_DECL_OVERRIDE { return minimumSize(); }
virtual QSize minimumSize() const;
virtual Qt::Orientations expandingDirections() const { return Qt::Vertical | Qt::Horizontal; }
virtual void invalidate() { mWidthCached = mHeightCached = false; }
......
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