Commit c3724fed authored by Kevin Funk's avatar Kevin Funk
Browse files

Modernize: Use override where possible

parent 3f9f5fa8
......@@ -34,7 +34,7 @@ class ActionBar : public QGraphicsObject
Q_OBJECT
public:
ActionBar(WorksheetEntry* parent);
~ActionBar();
~ActionBar() override;
WorksheetToolButton* addButton(const QIcon& icon, QString toolTip,
QObject* receiver = 0,
......
......@@ -34,7 +34,7 @@ class Animation : public QObject
Q_OBJECT
public:
Animation( QObject* parent=0);
~Animation();
~Animation() override;
void setMovie(QMovie* movie);
QMovie* movie();
......
......@@ -33,7 +33,7 @@ class AnimationResultItem : public WorksheetImageItem, public ResultItem
public:
AnimationResultItem(QGraphicsObject* parent);
~AnimationResultItem();
~AnimationResultItem() override;
using WorksheetImageItem::setGeometry;
double setGeometry(double x, double y, double w) Q_DECL_OVERRIDE;
......
......@@ -31,7 +31,7 @@ class AdvancedPlotAssistant : public Cantor::Assistant
{
public:
AdvancedPlotAssistant( QObject* parent, QList<QVariant> args );
~AdvancedPlotAssistant();
~AdvancedPlotAssistant() override;
void initActions() Q_DECL_OVERRIDE;
......
......@@ -27,7 +27,7 @@ class DifferentiateAssistant : public Cantor::Assistant
{
public:
DifferentiateAssistant( QObject* parent, QList<QVariant> args );
~DifferentiateAssistant();
~DifferentiateAssistant() override;
void initActions() Q_DECL_OVERRIDE;
......
......@@ -27,7 +27,7 @@ class ImportPackageAssistant : public Cantor::Assistant
{
public:
ImportPackageAssistant( QObject* parent, QList<QVariant> args );
~ImportPackageAssistant();
~ImportPackageAssistant() override;
void initActions() Q_DECL_OVERRIDE;
......
......@@ -27,7 +27,7 @@ class IntegrateAssistant : public Cantor::Assistant
{
public:
IntegrateAssistant( QObject* parent, QList<QVariant> args );
~IntegrateAssistant();
~IntegrateAssistant() override;
void initActions() Q_DECL_OVERRIDE;
......
......@@ -27,7 +27,7 @@ class CreateMatrixAssistant : public Cantor::Assistant
{
public:
CreateMatrixAssistant( QObject* parent, QList<QVariant> args );
~CreateMatrixAssistant();
~CreateMatrixAssistant() override;
void initActions() Q_DECL_OVERRIDE;
......
......@@ -29,7 +29,7 @@ class CreateMatrixDlg : public QDialog
Q_OBJECT
public:
CreateMatrixDlg( QWidget* parent);
~CreateMatrixDlg();
~CreateMatrixDlg() override;
int numRows();
int numCols();
......
......@@ -27,7 +27,7 @@ class EigenValuesAssistant : public Cantor::Assistant
{
public:
EigenValuesAssistant( QObject* parent, QList<QVariant> args );
~EigenValuesAssistant();
~EigenValuesAssistant() override;
void initActions() Q_DECL_OVERRIDE;
......
......@@ -27,7 +27,7 @@ class EigenVectorsAssistant : public Cantor::Assistant
{
public:
EigenVectorsAssistant( QObject* parent, QList<QVariant> args );
~EigenVectorsAssistant();
~EigenVectorsAssistant() override;
void initActions() Q_DECL_OVERRIDE;
......
......@@ -27,7 +27,7 @@ class InvertMatrixAssistant : public Cantor::Assistant
{
public:
InvertMatrixAssistant( QObject* parent, QList<QVariant> args );
~InvertMatrixAssistant();
~InvertMatrixAssistant() override;
void initActions() Q_DECL_OVERRIDE;
......
......@@ -27,7 +27,7 @@ class Plot2dAssistant : public Cantor::Assistant
{
public:
Plot2dAssistant( QObject* parent, QList<QVariant> args );
~Plot2dAssistant();
~Plot2dAssistant() override;
void initActions() Q_DECL_OVERRIDE;
......
......@@ -27,7 +27,7 @@ class Plot3dAssistant : public Cantor::Assistant
{
public:
Plot3dAssistant( QObject* parent, QList<QVariant> args );
~Plot3dAssistant();
~Plot3dAssistant() override;
void initActions() Q_DECL_OVERRIDE;
......
......@@ -27,7 +27,7 @@ class RunScriptAssistant : public Cantor::Assistant
{
public:
RunScriptAssistant( QObject* parent, QList<QVariant> args );
~RunScriptAssistant();
~RunScriptAssistant() override;
void initActions() Q_DECL_OVERRIDE;
......
......@@ -27,7 +27,7 @@ class SolveAssistant : public Cantor::Assistant
{
public:
SolveAssistant( QObject* parent, QList<QVariant> args );
~SolveAssistant();
~SolveAssistant() override;
void initActions() Q_DECL_OVERRIDE;
......
......@@ -30,7 +30,7 @@ class BackendChooseDialog : public QDialog
Q_OBJECT
public:
BackendChooseDialog( QWidget* parent);
~BackendChooseDialog();
~BackendChooseDialog() override;
QString backendName();
......
......@@ -28,7 +28,7 @@ class MaximaBackend : public Cantor::Backend
Q_OBJECT
public:
explicit MaximaBackend( QObject* parent = 0,const QList<QVariant> args = QList<QVariant>());
~MaximaBackend();
~MaximaBackend() override;
QString id() const Q_DECL_OVERRIDE;
QString version() const override;
......
......@@ -29,7 +29,7 @@ class MaximaCompletionObject : public Cantor::CompletionObject
{
public:
MaximaCompletionObject( const QString& cmd, int index, MaximaSession* session );
~MaximaCompletionObject();
~MaximaCompletionObject() override;
protected:
bool mayIdentifierContain(QChar c) const Q_DECL_OVERRIDE;
......
......@@ -34,7 +34,7 @@ class MaximaExpression : public Cantor::Expression
Q_OBJECT
public:
explicit MaximaExpression( Cantor::Session* session);
~MaximaExpression();
~MaximaExpression() override;
void evaluate() Q_DECL_OVERRIDE;
void interrupt() Q_DECL_OVERRIDE;
......
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