Modernize: use override

master
Unknown 2019-03-29 17:35:10 +01:00
parent 9b7ce549de
commit d680d3dd53
5 changed files with 9 additions and 9 deletions

View File

@ -53,7 +53,7 @@ class TextureFoldersPage : public QWizardPage
public: public:
TextureFoldersPage(QWidget *parent = nullptr); TextureFoldersPage(QWidget *parent = nullptr);
bool isComplete() const; bool isComplete() const override;
private slots: private slots:
void add(); void add();
void rem(); void rem();

View File

@ -35,7 +35,7 @@ class ConfigDialog : public QDialog
public: public:
explicit ConfigDialog(const ConfigSettings &settings, MainWindow *app, QWidget *parent = nullptr); explicit ConfigDialog(const ConfigSettings &settings, MainWindow *app, QWidget *parent = nullptr);
~ConfigDialog(); ~ConfigDialog() override;
ConfigSettings getSettings() const; ConfigSettings getSettings() const;
void setSettings(const ConfigSettings &value); void setSettings(const ConfigSettings &value);

View File

@ -21,7 +21,7 @@ class GeometryWidget : public QWidget
public: public:
explicit GeometryWidget(QWidget *parent = nullptr); explicit GeometryWidget(QWidget *parent = nullptr);
~GeometryWidget(); ~GeometryWidget() override;
bool set(const QString& geomStr, Geometry::Format format = Geometry::FormatUnknown); //{ return set(geomStr.toStdString().c_str(), format); } bool set(const QString& geomStr, Geometry::Format format = Geometry::FormatUnknown); //{ return set(geomStr.toStdString().c_str(), format); }
bool setDefault() { return set(""); } bool setDefault() { return set(""); }

View File

@ -38,7 +38,7 @@ class MainWindow : public QMainWindow
public: public:
explicit MainWindow(Translator *translator, QWidget *parent = nullptr); explicit MainWindow(Translator *translator, QWidget *parent = nullptr);
~MainWindow(); ~MainWindow() override;
enum class GeometryGranularity { enum class GeometryGranularity {
unspecified = -1, unspecified = -1,
@ -59,11 +59,11 @@ public:
public slots: public slots:
void startColorsTxtAssistant(); void startColorsTxtAssistant();
protected: protected:
void closeEvent(QCloseEvent* event); void closeEvent(QCloseEvent* event) override;
// this event is called, when a new translator is loaded or the system language is changed // this event is called, when a new translator is loaded or the system language is changed
void changeEvent(QEvent*); void changeEvent(QEvent*) override;
void showEvent(QShowEvent *event); void showEvent(QShowEvent *event) override;
protected slots: protected slots:
// this slot is called by the language menu actions // this slot is called by the language menu actions
void slotLanguageChanged(QAction *action); void slotLanguageChanged(QAction *action);

View File

@ -20,7 +20,7 @@ class MakeColors : public QThread
public: public:
explicit MakeColors(const QString &nodesTxt, const QString &colorsTxt, const QStringList &searchPaths, QObject *parent); explicit MakeColors(const QString &nodesTxt, const QString &colorsTxt, const QStringList &searchPaths, QObject *parent);
explicit MakeColors(); explicit MakeColors();
~MakeColors(); ~MakeColors() override;
void startProcess(); void startProcess();
void setFileNodesTxt(const QString &value); void setFileNodesTxt(const QString &value);
@ -48,7 +48,7 @@ public slots:
void stopProcess(); void stopProcess();
protected: protected:
void run(); void run() override;
private slots: private slots:
QColor processImage(const QString &path); QColor processImage(const QString &path);
bool parseNodesTxt(const QString &nodesTxt); bool parseNodesTxt(const QString &nodesTxt);