Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5d6c1e7a authored by Laurent Montel's avatar Laurent Montel 😁

Use overrid

parent afb68358
......@@ -33,7 +33,7 @@ public:
void setOn(bool value);
protected:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent *event) override;
private:
bool on_;
......
......@@ -115,8 +115,8 @@ public:
Q_DECLARE_FLAGS(UpdateFlags, UpdateFlag)
private:
bool eventFilter(QObject *o, QEvent *e) Q_DECL_OVERRIDE;
bool event(QEvent *e) Q_DECL_OVERRIDE;
bool eventFilter(QObject *o, QEvent *e) override;
bool event(QEvent *e) override;
void updateGeometry();
void setupMainActions();
void setupKeys();
......@@ -128,8 +128,8 @@ private:
void setupStatisticKeys();
void setupConstantsKeys();
void setupMiscKeys();
void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE;
void keyReleaseEvent(QKeyEvent *e) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent *e) override;
void keyReleaseEvent(QKeyEvent *e) override;
void setPrecision();
void setAngle();
void setBase();
......
......@@ -66,7 +66,7 @@ public:
void addMode(ButtonModeFlags mode, const QString &label,
const QString &tooltip);
QSize sizeHint() const; // reimp
QSize sizeHint() const override;
void setFont(const QFont &fnt);
void setText(const QString &text); // reimp
......@@ -77,7 +77,7 @@ public Q_SLOTS:
void slotSetAccelDisplayMode(bool flag);
protected:
void paintEvent(QPaintEvent *e) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent *e) override;
private:
void calcSizeHint();
......
......@@ -90,7 +90,7 @@ public:
QString text() const;
void updateDisplay();
void setStatusText(int i, const QString &text);
QSize sizeHint() const Q_DECL_OVERRIDE;
QSize sizeHint() const override;
void changeSettings();
void enterDigit(int data);
......@@ -108,8 +108,8 @@ Q_SIGNALS:
void changedAmount(const KNumber &);
protected:
void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent *p) Q_DECL_OVERRIDE;
void mousePressEvent(QMouseEvent *) override;
void paintEvent(QPaintEvent *p) override;
private:
bool changeSign();
......
......@@ -45,66 +45,66 @@ public:
virtual ~knumber_error();
public:
QString toString(int precision) const Q_DECL_OVERRIDE;
quint64 toUint64() const Q_DECL_OVERRIDE;
qint64 toInt64() const Q_DECL_OVERRIDE;
QString toString(int precision) const override;
quint64 toUint64() const override;
qint64 toInt64() const override;
public:
bool is_integer() const Q_DECL_OVERRIDE;
bool is_zero() const Q_DECL_OVERRIDE;
int sign() const Q_DECL_OVERRIDE;
bool is_integer() const override;
bool is_zero() const override;
int sign() const override;
public:
knumber_base *add(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *sub(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *mul(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *div(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *mod(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *add(knumber_base *rhs) override;
knumber_base *sub(knumber_base *rhs) override;
knumber_base *mul(knumber_base *rhs) override;
knumber_base *div(knumber_base *rhs) override;
knumber_base *mod(knumber_base *rhs) override;
public:
knumber_base *bitwise_and(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_xor(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_or(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_shift(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_and(knumber_base *rhs) override;
knumber_base *bitwise_xor(knumber_base *rhs) override;
knumber_base *bitwise_or(knumber_base *rhs) override;
knumber_base *bitwise_shift(knumber_base *rhs) override;
public:
knumber_base *pow(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *neg() Q_DECL_OVERRIDE;
knumber_base *cmp() Q_DECL_OVERRIDE;
knumber_base *abs() Q_DECL_OVERRIDE;
knumber_base *sqrt() Q_DECL_OVERRIDE;
knumber_base *cbrt() Q_DECL_OVERRIDE;
knumber_base *factorial() Q_DECL_OVERRIDE;
knumber_base *reciprocal() Q_DECL_OVERRIDE;
knumber_base *tgamma() Q_DECL_OVERRIDE;
knumber_base *pow(knumber_base *rhs) override;
knumber_base *neg() override;
knumber_base *cmp() override;
knumber_base *abs() override;
knumber_base *sqrt() override;
knumber_base *cbrt() override;
knumber_base *factorial() override;
knumber_base *reciprocal() override;
knumber_base *tgamma() override;
public:
knumber_base *log2() Q_DECL_OVERRIDE;
knumber_base *log10() Q_DECL_OVERRIDE;
knumber_base *ln() Q_DECL_OVERRIDE;
knumber_base *exp2() Q_DECL_OVERRIDE;
knumber_base *exp10() Q_DECL_OVERRIDE;
knumber_base *floor() Q_DECL_OVERRIDE;
knumber_base *ceil() Q_DECL_OVERRIDE;
knumber_base *exp() Q_DECL_OVERRIDE;
knumber_base *bin(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *log2() override;
knumber_base *log10() override;
knumber_base *ln() override;
knumber_base *exp2() override;
knumber_base *exp10() override;
knumber_base *floor() override;
knumber_base *ceil() override;
knumber_base *exp() override;
knumber_base *bin(knumber_base *rhs) override;
public:
knumber_base *sin() Q_DECL_OVERRIDE;
knumber_base *cos() Q_DECL_OVERRIDE;
knumber_base *tan() Q_DECL_OVERRIDE;
knumber_base *asin() Q_DECL_OVERRIDE;
knumber_base *acos() Q_DECL_OVERRIDE;
knumber_base *atan() Q_DECL_OVERRIDE;
knumber_base *sinh() Q_DECL_OVERRIDE;
knumber_base *cosh() Q_DECL_OVERRIDE;
knumber_base *tanh() Q_DECL_OVERRIDE;
knumber_base *asinh() Q_DECL_OVERRIDE;
knumber_base *acosh() Q_DECL_OVERRIDE;
knumber_base *atanh() Q_DECL_OVERRIDE;
knumber_base *sin() override;
knumber_base *cos() override;
knumber_base *tan() override;
knumber_base *asin() override;
knumber_base *acos() override;
knumber_base *atan() override;
knumber_base *sinh() override;
knumber_base *cosh() override;
knumber_base *tanh() override;
knumber_base *asinh() override;
knumber_base *acosh() override;
knumber_base *atanh() override;
public:
int compare(knumber_base *rhs) Q_DECL_OVERRIDE;
int compare(knumber_base *rhs) override;
private:
// conversion constructors
......@@ -114,7 +114,7 @@ private:
explicit knumber_error(const knumber_error *value);
public:
knumber_base *clone() Q_DECL_OVERRIDE;
knumber_base *clone() override;
private:
Error error_;
......
......@@ -55,69 +55,69 @@ private:
explicit knumber_float(const knumber_error *value);
public:
QString toString(int precision) const Q_DECL_OVERRIDE;
quint64 toUint64() const Q_DECL_OVERRIDE;
qint64 toInt64() const Q_DECL_OVERRIDE;
QString toString(int precision) const override;
quint64 toUint64() const override;
qint64 toInt64() const override;
public:
bool is_integer() const Q_DECL_OVERRIDE;
bool is_zero() const Q_DECL_OVERRIDE;
int sign() const Q_DECL_OVERRIDE;
bool is_integer() const override;
bool is_zero() const override;
int sign() const override;
public:
knumber_base *add(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *sub(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *mul(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *div(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *mod(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *add(knumber_base *rhs) override;
knumber_base *sub(knumber_base *rhs) override;
knumber_base *mul(knumber_base *rhs) override;
knumber_base *div(knumber_base *rhs) override;
knumber_base *mod(knumber_base *rhs) override;
public:
knumber_base *pow(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *neg() Q_DECL_OVERRIDE;
knumber_base *cmp() Q_DECL_OVERRIDE;
knumber_base *abs() Q_DECL_OVERRIDE;
knumber_base *sqrt() Q_DECL_OVERRIDE;
knumber_base *cbrt() Q_DECL_OVERRIDE;
knumber_base *factorial() Q_DECL_OVERRIDE;
knumber_base *reciprocal() Q_DECL_OVERRIDE;
knumber_base *tgamma() Q_DECL_OVERRIDE;
knumber_base *pow(knumber_base *rhs) override;
knumber_base *neg() override;
knumber_base *cmp() override;
knumber_base *abs() override;
knumber_base *sqrt() override;
knumber_base *cbrt() override;
knumber_base *factorial() override;
knumber_base *reciprocal() override;
knumber_base *tgamma() override;
public:
knumber_base *log2() Q_DECL_OVERRIDE;
knumber_base *log10() Q_DECL_OVERRIDE;
knumber_base *ln() Q_DECL_OVERRIDE;
knumber_base *floor() Q_DECL_OVERRIDE;
knumber_base *ceil() Q_DECL_OVERRIDE;
knumber_base *exp2() Q_DECL_OVERRIDE;
knumber_base *exp10() Q_DECL_OVERRIDE;
knumber_base *exp() Q_DECL_OVERRIDE;
knumber_base *bin(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *log2() override;
knumber_base *log10() override;
knumber_base *ln() override;
knumber_base *floor() override;
knumber_base *ceil() override;
knumber_base *exp2() override;
knumber_base *exp10() override;
knumber_base *exp() override;
knumber_base *bin(knumber_base *rhs) override;
public:
knumber_base *sin() Q_DECL_OVERRIDE;
knumber_base *cos() Q_DECL_OVERRIDE;
knumber_base *tan() Q_DECL_OVERRIDE;
knumber_base *asin() Q_DECL_OVERRIDE;
knumber_base *acos() Q_DECL_OVERRIDE;
knumber_base *atan() Q_DECL_OVERRIDE;
knumber_base *sinh() Q_DECL_OVERRIDE;
knumber_base *cosh() Q_DECL_OVERRIDE;
knumber_base *tanh() Q_DECL_OVERRIDE;
knumber_base *asinh() Q_DECL_OVERRIDE;
knumber_base *acosh() Q_DECL_OVERRIDE;
knumber_base *atanh() Q_DECL_OVERRIDE;
knumber_base *sin() override;
knumber_base *cos() override;
knumber_base *tan() override;
knumber_base *asin() override;
knumber_base *acos() override;
knumber_base *atan() override;
knumber_base *sinh() override;
knumber_base *cosh() override;
knumber_base *tanh() override;
knumber_base *asinh() override;
knumber_base *acosh() override;
knumber_base *atanh() override;
public:
int compare(knumber_base *rhs) Q_DECL_OVERRIDE;
int compare(knumber_base *rhs) override;
public:
knumber_base *bitwise_and(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_xor(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_or(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_shift(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_and(knumber_base *rhs) override;
knumber_base *bitwise_xor(knumber_base *rhs) override;
knumber_base *bitwise_or(knumber_base *rhs) override;
knumber_base *bitwise_shift(knumber_base *rhs) override;
public:
knumber_base *clone() Q_DECL_OVERRIDE;
knumber_base *clone() override;
private:
template <double F(double)>
......
......@@ -49,69 +49,69 @@ public:
virtual ~knumber_fraction();
public:
knumber_base *clone() Q_DECL_OVERRIDE;
knumber_base *clone() override;
public:
QString toString(int precision) const Q_DECL_OVERRIDE;
quint64 toUint64() const Q_DECL_OVERRIDE;
qint64 toInt64() const Q_DECL_OVERRIDE;
QString toString(int precision) const override;
quint64 toUint64() const override;
qint64 toInt64() const override;
public:
bool is_integer() const Q_DECL_OVERRIDE;
bool is_zero() const Q_DECL_OVERRIDE;
int sign() const Q_DECL_OVERRIDE;
bool is_integer() const override;
bool is_zero() const override;
int sign() const override;
public:
knumber_base *add(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *sub(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *mul(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *div(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *mod(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *add(knumber_base *rhs) override;
knumber_base *sub(knumber_base *rhs) override;
knumber_base *mul(knumber_base *rhs) override;
knumber_base *div(knumber_base *rhs) override;
knumber_base *mod(knumber_base *rhs) override;
public:
knumber_base *bitwise_and(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_xor(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_or(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_shift(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_and(knumber_base *rhs) override;
knumber_base *bitwise_xor(knumber_base *rhs) override;
knumber_base *bitwise_or(knumber_base *rhs) override;
knumber_base *bitwise_shift(knumber_base *rhs) override;
public:
knumber_base *pow(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *neg() Q_DECL_OVERRIDE;
knumber_base *cmp() Q_DECL_OVERRIDE;
knumber_base *abs() Q_DECL_OVERRIDE;
knumber_base *sqrt() Q_DECL_OVERRIDE;
knumber_base *cbrt() Q_DECL_OVERRIDE;
knumber_base *factorial() Q_DECL_OVERRIDE;
knumber_base *reciprocal() Q_DECL_OVERRIDE;
knumber_base *tgamma() Q_DECL_OVERRIDE;
knumber_base *pow(knumber_base *rhs) override;
knumber_base *neg() override;
knumber_base *cmp() override;
knumber_base *abs() override;
knumber_base *sqrt() override;
knumber_base *cbrt() override;
knumber_base *factorial() override;
knumber_base *reciprocal() override;
knumber_base *tgamma() override;
public:
knumber_base *log2() Q_DECL_OVERRIDE;
knumber_base *log10() Q_DECL_OVERRIDE;
knumber_base *ln() Q_DECL_OVERRIDE;
knumber_base *exp2() Q_DECL_OVERRIDE;
knumber_base *floor() Q_DECL_OVERRIDE;
knumber_base *ceil() Q_DECL_OVERRIDE;
knumber_base *exp10() Q_DECL_OVERRIDE;
knumber_base *exp() Q_DECL_OVERRIDE;
knumber_base *bin(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *log2() override;
knumber_base *log10() override;
knumber_base *ln() override;
knumber_base *exp2() override;
knumber_base *floor() override;
knumber_base *ceil() override;
knumber_base *exp10() override;
knumber_base *exp() override;
knumber_base *bin(knumber_base *rhs) override;
public:
knumber_base *sin() Q_DECL_OVERRIDE;
knumber_base *cos() Q_DECL_OVERRIDE;
knumber_base *tan() Q_DECL_OVERRIDE;
knumber_base *asin() Q_DECL_OVERRIDE;
knumber_base *acos() Q_DECL_OVERRIDE;
knumber_base *atan() Q_DECL_OVERRIDE;
knumber_base *sinh() Q_DECL_OVERRIDE;
knumber_base *cosh() Q_DECL_OVERRIDE;
knumber_base *tanh() Q_DECL_OVERRIDE;
knumber_base *asinh() Q_DECL_OVERRIDE;
knumber_base *acosh() Q_DECL_OVERRIDE;
knumber_base *atanh() Q_DECL_OVERRIDE;
knumber_base *sin() override;
knumber_base *cos() override;
knumber_base *tan() override;
knumber_base *asin() override;
knumber_base *acos() override;
knumber_base *atan() override;
knumber_base *sinh() override;
knumber_base *cosh() override;
knumber_base *tanh() override;
knumber_base *asinh() override;
knumber_base *acosh() override;
knumber_base *atanh() override;
public:
int compare(knumber_base *rhs) Q_DECL_OVERRIDE;
int compare(knumber_base *rhs) override;
private:
knumber_integer *numerator() const;
......
......@@ -41,71 +41,71 @@ public:
virtual ~knumber_integer();
public:
knumber_base *clone() Q_DECL_OVERRIDE;
knumber_base *clone() override;
public:
QString toString(int precision) const Q_DECL_OVERRIDE;
quint64 toUint64() const Q_DECL_OVERRIDE;
qint64 toInt64() const Q_DECL_OVERRIDE;
QString toString(int precision) const override;
quint64 toUint64() const override;
qint64 toInt64() const override;
public:
virtual bool is_even() const;
virtual bool is_odd() const;
bool is_integer() const Q_DECL_OVERRIDE;
bool is_zero() const Q_DECL_OVERRIDE;
int sign() const Q_DECL_OVERRIDE;
bool is_integer() const override;
bool is_zero() const override;
int sign() const override;
public:
knumber_base *add(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *sub(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *mul(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *div(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *mod(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *add(knumber_base *rhs) override;
knumber_base *sub(knumber_base *rhs) override;
knumber_base *mul(knumber_base *rhs) override;
knumber_base *div(knumber_base *rhs) override;
knumber_base *mod(knumber_base *rhs) override;
public:
knumber_base *bitwise_and(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_xor(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_or(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_shift(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *bitwise_and(knumber_base *rhs) override;
knumber_base *bitwise_xor(knumber_base *rhs) override;
knumber_base *bitwise_or(knumber_base *rhs) override;
knumber_base *bitwise_shift(knumber_base *rhs) override;
public:
knumber_base *pow(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *neg() Q_DECL_OVERRIDE;
knumber_base *cmp() Q_DECL_OVERRIDE;
knumber_base *abs() Q_DECL_OVERRIDE;
knumber_base *sqrt() Q_DECL_OVERRIDE;
knumber_base *cbrt() Q_DECL_OVERRIDE;
knumber_base *factorial() Q_DECL_OVERRIDE;
knumber_base *reciprocal() Q_DECL_OVERRIDE;
knumber_base *pow(knumber_base *rhs) override;
knumber_base *neg() override;
knumber_base *cmp() override;
knumber_base *abs() override;
knumber_base *sqrt() override;
knumber_base *cbrt() override;
knumber_base *factorial() override;
knumber_base *reciprocal() override;
public:
knumber_base *log2() Q_DECL_OVERRIDE;
knumber_base *log10() Q_DECL_OVERRIDE;
knumber_base *ln() Q_DECL_OVERRIDE;
knumber_base *exp2() Q_DECL_OVERRIDE;
knumber_base *floor() Q_DECL_OVERRIDE;
knumber_base *ceil() Q_DECL_OVERRIDE;
knumber_base *exp10() Q_DECL_OVERRIDE;
knumber_base *exp() Q_DECL_OVERRIDE;
knumber_base *bin(knumber_base *rhs) Q_DECL_OVERRIDE;
knumber_base *log2() override;
knumber_base *log10() override;
knumber_base *ln() override;
knumber_base *exp2() override;
knumber_base *floor() override;
knumber_base *ceil() override;
knumber_base *exp10() override;
knumber_base *exp() override;
knumber_base *bin(knumber_base *rhs) override;
public:
knumber_base *sin() Q_DECL_OVERRIDE;
knumber_base *cos() Q_DECL_OVERRIDE;
knumber_base *tan() Q_DECL_OVERRIDE;
knumber_base *asin() Q_DECL_OVERRIDE;
knumber_base *acos() Q_DECL_OVERRIDE;
knumber_base *atan() Q_DECL_OVERRIDE;
knumber_base *sinh() Q_DECL_OVERRIDE;
knumber_base *cosh() Q_DECL_OVERRIDE;
knumber_base *tanh() Q_DECL_OVERRIDE;
knumber_base *asinh() Q_DECL_OVERRIDE;
knumber_base *acosh() Q_DECL_OVERRIDE;
knumber_base *atanh() Q_DECL_OVERRIDE;
knumber_base *tgamma() Q_DECL_OVERRIDE;
knumber_base *sin() override;
knumber_base *cos() override;
knumber_base *tan() override;
knumber_base *asin() override;
knumber_base *acos() override;
knumber_base *atan() override;
knumber_base *sinh() override;
knumber_base *cosh() override;
knumber_base *tanh() override;
knumber_base *asinh() override;
knumber_base *acosh() override;
knumber_base *atanh() override;
knumber_base *tgamma() override;
public:
int compare(knumber_base *rhs) Q_DECL_OVERRIDE;
int compare(knumber_base *rhs) override;
private:
// conversion constructors
......
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