Commit 8f4b41da authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use override

parent 5ef6d226
Pipeline #203469 passed with stage
in 1 minute and 21 seconds
......@@ -85,7 +85,7 @@ public:
void setOptionsShown(bool shown);
void resizeEvent(QResizeEvent* ev) Q_DECL_OVERRIDE;
void resizeEvent(QResizeEvent* ev) override;
public Q_SLOTS:
/** Clears the dialog. */
......@@ -107,7 +107,7 @@ private Q_SLOTS:
private:
void setState(const QString& text, bool negative);
void focusInEvent(QFocusEvent*) Q_DECL_OVERRIDE;
void focusInEvent(QFocusEvent*) override;
Analitza::ExpressionEdit *m_func;
Analitza::ExpressionEdit *m_uplimit, *m_downlimit;
......
......@@ -67,14 +67,14 @@ class Add2DOption : public InlineOptions
: m_kalgebra(c)
{}
QString id() const Q_DECL_OVERRIDE { return QStringLiteral("add2d"); }
bool matchesExpression(const Analitza::Expression& exp) const Q_DECL_OVERRIDE {
QString id() const override { return QStringLiteral("add2d"); }
bool matchesExpression(const Analitza::Expression& exp) const override {
return Analitza::PlotsFactory::self()->requestPlot(exp, Analitza::Dim2D).canDraw();
}
QString caption() const Q_DECL_OVERRIDE { return i18n("Plot 2D"); }
QString caption() const override { return i18n("Plot 2D"); }
void triggerOption(const Analitza::Expression& exp) Q_DECL_OVERRIDE { m_kalgebra->add2D(exp); }
void triggerOption(const Analitza::Expression& exp) override { m_kalgebra->add2D(exp); }
private:
KAlgebra* m_kalgebra;
......@@ -87,15 +87,15 @@ class Add3DOption : public InlineOptions
: m_kalgebra(c)
{}
QString id() const Q_DECL_OVERRIDE { return QStringLiteral("add3d"); }
bool matchesExpression(const Analitza::Expression& exp) const Q_DECL_OVERRIDE
QString id() const override { return QStringLiteral("add3d"); }
bool matchesExpression(const Analitza::Expression& exp) const override
{
return Analitza::PlotsFactory::self()->requestPlot(exp, Analitza::Dim3D).canDraw();
}
QString caption() const Q_DECL_OVERRIDE { return i18n("Plot 3D"); }
QString caption() const override { return i18n("Plot 3D"); }
void triggerOption(const Analitza::Expression& exp) Q_DECL_OVERRIDE { m_kalgebra->add3D(exp); }
void triggerOption(const Analitza::Expression& exp) override { m_kalgebra->add3D(exp); }
private:
KAlgebra* m_kalgebra;
......
......@@ -25,8 +25,8 @@ class VariablesDelegate : public QItemDelegate
{
public:
VariablesDelegate(QObject* parent=0) : QItemDelegate(parent) {}
QWidget* createEditor (QWidget*, const QStyleOptionViewItem&, const QModelIndex&) const Q_DECL_OVERRIDE;
void setEditorData(QWidget* editor, const QModelIndex& index) const Q_DECL_OVERRIDE;
QWidget* createEditor (QWidget*, const QStyleOptionViewItem&, const QModelIndex&) const override;
void setEditorData(QWidget* editor, const QModelIndex& index) const override;
};
#endif // VARIABLESDELEGATE_H
Supports Markdown
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