Commit c65f4a2a authored by Laurent Montel's avatar Laurent Montel 😁

Use override

parent d220f33c
......@@ -39,11 +39,11 @@ public:
explicit KWalletConfig(QWidget *parent = nullptr, const QVariantList & = QVariantList());
virtual ~KWalletConfig();
void load() Q_DECL_OVERRIDE;
void save() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
void load() override;
void save() override;
void defaults() override;
QString quickHelp() const Q_DECL_OVERRIDE;
QString quickHelp() const override;
public slots:
void configChanged();
......
......@@ -690,7 +690,7 @@ public:
parent->installEventFilter(this);
}
bool eventFilter(QObject * /*watched*/, QEvent *event) Q_DECL_OVERRIDE
bool eventFilter(QObject * /*watched*/, QEvent *event) override
{
if (event->type() == QEvent::KeyPress) {
QKeyEvent *ke = static_cast<QKeyEvent *>(event);
......
......@@ -116,11 +116,11 @@ public:
void setWallet(KWallet::Wallet *w);
protected:
void dragEnterEvent(QDragEnterEvent *e) Q_DECL_OVERRIDE;
void dragMoveEvent(QDragMoveEvent *e) Q_DECL_OVERRIDE;
void dropEvent(QDropEvent *e) Q_DECL_OVERRIDE;
void mousePressEvent(QMouseEvent *e) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent *e) Q_DECL_OVERRIDE;
void dragEnterEvent(QDragEnterEvent *e) override;
void dragMoveEvent(QDragMoveEvent *e) override;
void dropEvent(QDropEvent *e) override;
void mousePressEvent(QMouseEvent *e) override;
void mouseMoveEvent(QMouseEvent *e) override;
void itemDropped(QDropEvent *e, QTreeWidgetItem *item);
......
......@@ -33,11 +33,11 @@ class AuthorizedApplicationsTable : public QTableView
public:
explicit AuthorizedApplicationsTable(QWidget *parent);
void setModel(QAbstractItemModel *model) Q_DECL_OVERRIDE;
void setModel(QAbstractItemModel *model) override;
void setWallet(KWallet::Wallet *wallet);
protected:
void resizeEvent(QResizeEvent *resizeEvent) Q_DECL_OVERRIDE;
void resizeEvent(QResizeEvent *resizeEvent) override;
private:
KWallet::Wallet *_wallet;
......
......@@ -29,11 +29,11 @@ class ConnectedApplicationsTable : public QTableView
public:
explicit ConnectedApplicationsTable(QWidget *parent);
void setModel(QAbstractItemModel *model) Q_DECL_OVERRIDE;
void setModel(QAbstractItemModel *model) override;
void setWallet(KWallet::Wallet *wallet);
protected:
void resizeEvent(QResizeEvent *resizeEvent) Q_DECL_OVERRIDE;
void resizeEvent(QResizeEvent *resizeEvent) override;
private:
KWallet::Wallet *_wallet;
......
......@@ -32,8 +32,8 @@ public:
public slots:
virtual void setLabel(const QString &label);
void accept() Q_DECL_OVERRIDE;
void reject() Q_DECL_OVERRIDE;
void accept() override;
void reject() override;
private slots:
virtual void clicked();
......
......@@ -51,8 +51,8 @@ public:
void setNewWallet(bool newWallet);
protected:
void hideEvent(QHideEvent *) Q_DECL_OVERRIDE;
void showEvent(QShowEvent *) Q_DECL_OVERRIDE;
void hideEvent(QHideEvent *) override;
void showEvent(QShowEvent *) override;
public slots:
void walletClosed();
......
......@@ -54,7 +54,7 @@ public slots:
void walletCreated(const QString &walletName);
protected:
bool queryClose() Q_DECL_OVERRIDE;
bool queryClose() override;
private:
public Q_SLOTS: //dbus
......
......@@ -44,9 +44,9 @@ public:
bool hasUnsavedChanges(const QString& name) const;
protected:
void dragEnterEvent(QDragEnterEvent *e) Q_DECL_OVERRIDE;
void dragMoveEvent(QDragMoveEvent *e) Q_DECL_OVERRIDE;
void dropEvent(QDropEvent *e) Q_DECL_OVERRIDE;
void dragEnterEvent(QDragEnterEvent *e) override;
void dragMoveEvent(QDragMoveEvent *e) override;
void dropEvent(QDropEvent *e) override;
private Q_SLOTS:
void onCurrentPageChanged(KPageWidgetItem *, KPageWidgetItem *);
......
......@@ -47,7 +47,7 @@ public:
}
protected:
void focusOutEvent(QFocusEvent *e) Q_DECL_OVERRIDE
void focusOutEvent(QFocusEvent *e) override
{
if (e->reason() == Qt::PopupFocusReason) {
// TODO: It seems we only get here if we're disturbed
......@@ -57,7 +57,7 @@ protected:
close();
}
void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE
void keyPressEvent(QKeyEvent *e) override
{
if (e->key() == Qt::Key_Escape) {
e->accept();
......@@ -67,7 +67,7 @@ protected:
QTextEdit::keyPressEvent(e);
}
}
void contextMenuEvent(QContextMenuEvent *event) Q_DECL_OVERRIDE
void contextMenuEvent(QContextMenuEvent *event) override
{
QMenu *menu = createStandardContextMenu();
popup = menu;
......@@ -85,7 +85,7 @@ public:
{
}
QWidget *createEditor(QWidget *parentWidget, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE
QWidget *createEditor(QWidget *parentWidget, const QStyleOptionViewItem &option, const QModelIndex &index) const override
{
if (index.column() != 2) {
return QItemDelegate::createEditor(parentWidget, option, index);
......@@ -95,7 +95,7 @@ public:
return new InlineEditor(mapEditor);
}
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
{
if (dynamic_cast<InlineEditor *>(editor)) {
KWMapEditor *mapEditor = static_cast<KWMapEditor *>(parent());
......@@ -107,7 +107,7 @@ public:
}
}
void setEditorData(QWidget *editor, const QModelIndex &index) const Q_DECL_OVERRIDE
void setEditorData(QWidget *editor, const QModelIndex &index) const override
{
InlineEditor *e = dynamic_cast<InlineEditor *>(editor);
if (e) {
......@@ -118,7 +118,7 @@ public:
}
}
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const Q_DECL_OVERRIDE
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
{
InlineEditor *e = dynamic_cast<InlineEditor *>(editor);
if (e) {
......
......@@ -47,8 +47,8 @@ public Q_SLOTS:
void onChangePassword();
protected:
void hideEvent(QHideEvent *) Q_DECL_OVERRIDE;
void showEvent(QShowEvent *) Q_DECL_OVERRIDE;
void hideEvent(QHideEvent *) override;
void showEvent(QShowEvent *) override;
private:
QString _walletName;
......
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