]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/settings/servicemodel.h
Modernize: Use override where possible
[dolphin.git] / src / settings / servicemodel.h
index f2b91c7e4af1abe49650db3b79424442fbdeb474..47fe54d6a565e20b63a55f59857915b1c6a1caeb 100644 (file)
@@ -45,12 +45,12 @@ public:
     };
 
     explicit ServiceModel(QObject* parent = 0);
-    virtual ~ServiceModel();
+    ~ServiceModel() override;
 
-    virtual bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex()) Q_DECL_OVERRIDE;
-    virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
-    virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
-    virtual int rowCount(const QModelIndex& parent = QModelIndex()) const Q_DECL_OVERRIDE;
+    bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex()) override;
+    bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) override;
+    QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
+    int rowCount(const QModelIndex& parent = QModelIndex()) const override;
 
  private:
     struct ServiceItem