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

Remove virtual when not necessary

parent 2df79e81
......@@ -36,11 +36,11 @@ class EmailIdCombo : public KIdentityManagement::IdentityCombo
void setReadOnly(bool ro) { mReadOnly = ro; }
protected:
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;
void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE;
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*) 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;
void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE;
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*) 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;
void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE;
void keyReleaseEvent(QKeyEvent*) Q_DECL_OVERRIDE;
private:
bool mReadOnly; // value cannot be changed
};
......
......@@ -52,11 +52,11 @@ class ComboBox : public KComboBox
*/
virtual void setReadOnly(bool readOnly);
protected:
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;
void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE;
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*) 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;
void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE;
void keyReleaseEvent(QKeyEvent*) Q_DECL_OVERRIDE;
private:
bool mReadOnly; // value cannot be changed
};
......
......@@ -85,9 +85,9 @@ class LineEdit : public KLineEdit
/** Sets the contents of the line edit to be @p str. */
virtual void setText(const QString& str);
protected:
virtual void focusInEvent(QFocusEvent*) Q_DECL_OVERRIDE;
virtual void dragEnterEvent(QDragEnterEvent*) Q_DECL_OVERRIDE;
virtual void dropEvent(QDropEvent*) Q_DECL_OVERRIDE;
void focusInEvent(QFocusEvent*) Q_DECL_OVERRIDE;
void dragEnterEvent(QDragEnterEvent*) Q_DECL_OVERRIDE;
void dropEvent(QDropEvent*) Q_DECL_OVERRIDE;
private:
void init();
......
......@@ -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*) 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;
void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE;
void keyReleaseEvent(QKeyEvent*) Q_DECL_OVERRIDE;
bool event(QEvent*) Q_DECL_OVERRIDE;
private:
Qt::FocusPolicy mFocusPolicy; // default focus policy for the PushButton
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*) 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;
void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE;
void keyReleaseEvent(QKeyEvent*) Q_DECL_OVERRIDE;
protected slots:
void slotClicked();
private:
......
......@@ -67,11 +67,11 @@ class Slider : public QSlider
virtual void setReadOnly(bool readOnly);
protected:
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;
void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE;
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*) 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;
void paintEvent(QPaintEvent*) Q_DECL_OVERRIDE;
void focusOutEvent(QFocusEvent*) Q_DECL_OVERRIDE;
void mousePressEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseDoubleClickEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent*) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent*) Q_DECL_OVERRIDE;
void keyReleaseEvent(QKeyEvent*) Q_DECL_OVERRIDE;
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