Commit 2df79e81 authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECL_OVERRIDE

parent a0e3902c
......@@ -52,11 +52,11 @@ class ComboBox : public KComboBox
*/
virtual void setReadOnly(bool readOnly);
protected:
virtual void mousePressEvent(QMouseEvent*);
virtual void mouseReleaseEvent(QMouseEvent*);
virtual void mouseMoveEvent(QMouseEvent*);
virtual void keyPressEvent(QKeyEvent*);
virtual void keyReleaseEvent(QKeyEvent*);
virtual void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
virtual void mouseReleaseEvent(QMouseEvent*) Q_DECL_OVERRIDE;
virtual void mouseMoveEvent(QMouseEvent*) Q_DECL_OVERRIDE;
virtual void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE;
virtual void keyReleaseEvent(QKeyEvent*) Q_DECL_OVERRIDE;
private:
bool mReadOnly; // value cannot be changed
};
......
......@@ -71,11 +71,11 @@ class RadioButton : public QRadioButton
*/
void setFocusWidget(QWidget* widget, bool enable = true);
protected:
virtual void mousePressEvent(QMouseEvent*);
virtual void mouseReleaseEvent(QMouseEvent*);
virtual void mouseMoveEvent(QMouseEvent*);
virtual void keyPressEvent(QKeyEvent*);
virtual void keyReleaseEvent(QKeyEvent*);
virtual void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
virtual void mouseReleaseEvent(QMouseEvent*) Q_DECL_OVERRIDE;
virtual void mouseMoveEvent(QMouseEvent*) Q_DECL_OVERRIDE;
virtual void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE;
virtual void keyReleaseEvent(QKeyEvent*) Q_DECL_OVERRIDE;
protected slots:
void slotClicked();
private:
......
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