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 7376011b authored by Laurent Montel's avatar Laurent Montel 😁

Use override. Use nullptr

parent 80eb5f3a
......@@ -28,7 +28,7 @@ class CreateAvatarJob : public KJob
public:
explicit CreateAvatarJob(QObject* parent = nullptr);
void start() Q_DECL_OVERRIDE;
void start() override;
void setUrl(const QUrl &url);
QString avatarPath() const;
......
......@@ -58,12 +58,12 @@ class AccountModel : public QAbstractListModel
};
explicit AccountModel(QObject* parent);
~AccountModel() Q_DECL_OVERRIDE;
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;
~AccountModel() override;
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
QVariant data(const QModelIndex& index, int role) const override;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) override;
bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) override;
bool removeAccountKeepingFiles(int row, bool keepFile = false);
QVariant newUserData(int role) const;
......
......@@ -33,7 +33,7 @@ class ModelTest : public QObject
Q_OBJECT
public:
ModelTest(QAbstractItemModel *model, QObject *parent = 0);
ModelTest(QAbstractItemModel *model, QObject *parent = nullptr);
private Q_SLOTS:
void nonDestructiveBasicTest();
......
......@@ -30,5 +30,5 @@ class PasswordEdit : public QLineEdit
void focused();
protected:
void focusInEvent(QFocusEvent* e) Q_DECL_OVERRIDE;
void focusInEvent(QFocusEvent* e) override;
};
......@@ -36,7 +36,6 @@
#include <KIconLoader>
K_PLUGIN_FACTORY(UserManagerFactory, registerPlugin<UserManager>();)
K_EXPORT_PLUGIN(UserManagerFactory("user_manager", "user_manager"))
UserManager::UserManager(QWidget* parent, const QVariantList& args)
: KCModule(parent, args)
......
......@@ -39,10 +39,10 @@ class UserManager : public KCModule
Q_OBJECT
public:
explicit UserManager(QWidget *parent, const QVariantList& args);
~UserManager() Q_DECL_OVERRIDE;
~UserManager() override;
void load() Q_DECL_OVERRIDE;
void save() Q_DECL_OVERRIDE;
void load() override;
void save() 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