Modernize: use override
parent
9b7ce549de
commit
d680d3dd53
|
@ -53,7 +53,7 @@ class TextureFoldersPage : public QWizardPage
|
|||
public:
|
||||
TextureFoldersPage(QWidget *parent = nullptr);
|
||||
|
||||
bool isComplete() const;
|
||||
bool isComplete() const override;
|
||||
private slots:
|
||||
void add();
|
||||
void rem();
|
||||
|
|
|
@ -35,7 +35,7 @@ class ConfigDialog : public QDialog
|
|||
|
||||
public:
|
||||
explicit ConfigDialog(const ConfigSettings &settings, MainWindow *app, QWidget *parent = nullptr);
|
||||
~ConfigDialog();
|
||||
~ConfigDialog() override;
|
||||
|
||||
ConfigSettings getSettings() const;
|
||||
void setSettings(const ConfigSettings &value);
|
||||
|
|
|
@ -21,7 +21,7 @@ class GeometryWidget : public QWidget
|
|||
|
||||
public:
|
||||
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 setDefault() { return set(""); }
|
||||
|
|
|
@ -38,7 +38,7 @@ class MainWindow : public QMainWindow
|
|||
|
||||
public:
|
||||
explicit MainWindow(Translator *translator, QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
~MainWindow() override;
|
||||
|
||||
enum class GeometryGranularity {
|
||||
unspecified = -1,
|
||||
|
@ -59,11 +59,11 @@ public:
|
|||
public slots:
|
||||
void startColorsTxtAssistant();
|
||||
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
|
||||
void changeEvent(QEvent*);
|
||||
void changeEvent(QEvent*) override;
|
||||
|
||||
void showEvent(QShowEvent *event);
|
||||
void showEvent(QShowEvent *event) override;
|
||||
protected slots:
|
||||
// this slot is called by the language menu actions
|
||||
void slotLanguageChanged(QAction *action);
|
||||
|
|
|
@ -20,7 +20,7 @@ class MakeColors : public QThread
|
|||
public:
|
||||
explicit MakeColors(const QString &nodesTxt, const QString &colorsTxt, const QStringList &searchPaths, QObject *parent);
|
||||
explicit MakeColors();
|
||||
~MakeColors();
|
||||
~MakeColors() override;
|
||||
void startProcess();
|
||||
void setFileNodesTxt(const QString &value);
|
||||
|
||||
|
@ -48,7 +48,7 @@ public slots:
|
|||
void stopProcess();
|
||||
|
||||
protected:
|
||||
void run();
|
||||
void run() override;
|
||||
private slots:
|
||||
QColor processImage(const QString &path);
|
||||
bool parseNodesTxt(const QString &nodesTxt);
|
||||
|
|
Loading…
Reference in New Issue