Commit 3b3111de authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECL_OVERRIDE

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