Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 97bae15c authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECL_OVERRIDE

parent d42bd859
......@@ -28,7 +28,7 @@ class CreateAvatarJob : public KJob
public:
explicit CreateAvatarJob(QObject* parent = 0);
virtual void start();
void start() Q_DECL_OVERRIDE;
void setUrl(const QUrl &url);
QString avatarPath() const;
......
......@@ -59,11 +59,11 @@ class AccountModel : public QAbstractListModel
AccountModel(QObject* parent);
~AccountModel();
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
virtual QVariant data(const QModelIndex& index, int role) const;
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);
virtual bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex());
int rowCount(const QModelIndex& parent = QModelIndex()) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex& index, int role) const Q_DECL_OVERRIDE;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) Q_DECL_OVERRIDE;
bool removeAccountKeepingFiles(int row, bool keepFile = false);
QVariant newUserData(int role) const;
......
......@@ -30,5 +30,5 @@ class PasswordEdit : public QLineEdit
void focused();
protected:
virtual void focusInEvent(QFocusEvent* e);
};
\ No newline at end of file
void focusInEvent(QFocusEvent* e) Q_DECL_OVERRIDE;
};
......@@ -41,8 +41,8 @@ class UserManager : public KCModule
explicit UserManager(QWidget *parent, const QVariantList& args);
virtual ~UserManager();
virtual void load();
virtual void save();
void load() Q_DECL_OVERRIDE;
void save() Q_DECL_OVERRIDE;
public Q_SLOTS:
void currentChanged(const QModelIndex &selected, const QModelIndex &previous);
......
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