diff --git a/kdecoration/breezebutton.h b/kdecoration/breezebutton.h index fb09df9c..fd28e774 100644 --- a/kdecoration/breezebutton.h +++ b/kdecoration/breezebutton.h @@ -50,7 +50,7 @@ namespace Breeze static Button *create(KDecoration2::DecorationButtonType type, KDecoration2::Decoration *decoration, QObject *parent); //* render - virtual void paint(QPainter *painter, const QRect &repaintRegion) Q_DECL_OVERRIDE; + virtual void paint(QPainter *painter, const QRect &repaintRegion) override; //* flag enum Flag diff --git a/kdecoration/config/breezelistmodel.h b/kdecoration/config/breezelistmodel.h index b6573dbb..267c78df 100644 --- a/kdecoration/config/breezelistmodel.h +++ b/kdecoration/config/breezelistmodel.h @@ -70,14 +70,14 @@ namespace Breeze //@{ //! flags - Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE + Qt::ItemFlags flags(const QModelIndex &index) const override { if (!index.isValid()) return 0; return Qt::ItemIsEnabled | Qt::ItemIsSelectable; } //! unique index for given row, column and parent index - QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE + QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override { // check if index is valid @@ -92,11 +92,11 @@ namespace Breeze } //! index of parent - QModelIndex parent(const QModelIndex &) const Q_DECL_OVERRIDE + QModelIndex parent(const QModelIndex &) const override { return QModelIndex(); } //! number of rows below given index - int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE + int rowCount(const QModelIndex &parent = QModelIndex()) const override { return parent.isValid() ? 0:_values.size(); } //@}