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

Add more Q_DECL_OVERRIDE

parent d0e9044d
......@@ -36,11 +36,11 @@ class EmailIdCombo : public KIdentityManagement::IdentityCombo
void setReadOnly(bool ro) { mReadOnly = ro; }
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 CheckBox : public QCheckBox
*/
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:
......
......@@ -53,11 +53,11 @@ class ColourButton : public KColorButton
*/
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
};
......
......@@ -57,11 +57,11 @@ class GroupBox : public QGroupBox
/** Returns true if the widget is read only. */
virtual bool isReadOnly() const { return mReadOnly; }
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,12 +71,12 @@ class PushButton : public QPushButton
/** Returns true if the widget is read only. */
virtual bool isReadOnly() const { return mReadOnly; }
protected:
virtual void mousePressEvent(QMouseEvent*);
virtual void mouseReleaseEvent(QMouseEvent*);
virtual void mouseMoveEvent(QMouseEvent*);
virtual void keyPressEvent(QKeyEvent*);
virtual void keyReleaseEvent(QKeyEvent*);
virtual bool event(QEvent*);
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;
virtual bool event(QEvent*) Q_DECL_OVERRIDE;
private:
Qt::FocusPolicy mFocusPolicy; // default focus policy for the PushButton
bool mReadOnly; // value cannot be changed
......
......@@ -67,11 +67,11 @@ class Slider : public QSlider
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 by the user
......
......@@ -132,15 +132,15 @@ class SpinBox : public QSpinBox
/** Receives events destined for the spin widget or for the edit field. */
bool eventFilter(QObject*, QEvent*) Q_DECL_OVERRIDE;
virtual void paintEvent(QPaintEvent*);
virtual void focusOutEvent(QFocusEvent*);
virtual void mousePressEvent(QMouseEvent*);
virtual void mouseDoubleClickEvent(QMouseEvent*);
virtual void mouseReleaseEvent(QMouseEvent*);
virtual void mouseMoveEvent(QMouseEvent*);
virtual void keyPressEvent(QKeyEvent*);
virtual void keyReleaseEvent(QKeyEvent*);
virtual void wheelEvent(QWheelEvent*);
virtual void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE;
virtual void focusOutEvent(QFocusEvent*) Q_DECL_OVERRIDE;
virtual void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
virtual void mouseDoubleClickEvent(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;
virtual void wheelEvent(QWheelEvent*) Q_DECL_OVERRIDE;
private slots:
void textEdited();
......
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