From 46c395e8ac9bde3fa16caf09357bd3cc690521f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 27 Aug 2013 11:59:24 +0200 Subject: [PATCH] Specify override on overriden methods in model.h Let's use C++11 - the good parts ;-) --- kcmkwin/kwincompositing/model.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kcmkwin/kwincompositing/model.h b/kcmkwin/kwincompositing/model.h index 8bba11d589..57cc939118 100644 --- a/kcmkwin/kwincompositing/model.h +++ b/kcmkwin/kwincompositing/model.h @@ -63,12 +63,12 @@ public: explicit EffectModel(QObject *parent = 0); - QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const; - QModelIndex parent(const QModelIndex &child) const; - int rowCount(const QModelIndex &parent = QModelIndex()) const; - int columnCount(const QModelIndex &parent = QModelIndex()) const; - QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; - bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); + QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override; + QModelIndex parent(const QModelIndex &child) const override; + int rowCount(const QModelIndex &parent = QModelIndex()) const override; + int columnCount(const QModelIndex &parent = QModelIndex()) const override; + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) override; QString serviceName(const QString &effectName); bool effectListContains(const QString &effectFilter, int source_row);