Cppcheck warning 'missingOverride'.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-06-26 15:53:48 +03:00
parent 6c3ef7580a
commit 63b1eb8068
299 changed files with 1578 additions and 1578 deletions

View File

@ -46,7 +46,7 @@ public:
void Apply(); void Apply();
protected: protected:
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE; virtual void changeEvent(QEvent* event) override;
private: private:
Q_DISABLE_COPY(TapePreferencesConfigurationPage) Q_DISABLE_COPY(TapePreferencesConfigurationPage)
Ui::TapePreferencesConfigurationPage *ui; Ui::TapePreferencesConfigurationPage *ui;

View File

@ -46,7 +46,7 @@ public:
void Apply(); void Apply();
protected: protected:
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE; virtual void changeEvent(QEvent* event) override;
private slots: private slots:
void DefaultPath(); void DefaultPath();
void EditPath(); void EditPath();

View File

@ -45,8 +45,8 @@ public:
virtual ~DialogAboutTape(); virtual ~DialogAboutTape();
protected: protected:
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE; virtual void changeEvent(QEvent* event) override;
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; virtual void showEvent(QShowEvent *event) override;
private: private:
Q_DISABLE_COPY(DialogAboutTape) Q_DISABLE_COPY(DialogAboutTape)

View File

@ -45,7 +45,7 @@ class DialogMDataBase : public QDialog
public: public:
explicit DialogMDataBase(const QStringList &list, QWidget *parent = nullptr); explicit DialogMDataBase(const QStringList &list, QWidget *parent = nullptr);
explicit DialogMDataBase(QWidget *parent = nullptr); explicit DialogMDataBase(QWidget *parent = nullptr);
virtual ~DialogMDataBase() Q_DECL_OVERRIDE; virtual ~DialogMDataBase() override;
QStringList GetNewNames() const; QStringList GetNewNames() const;
@ -54,8 +54,8 @@ public:
static QString ImgTag(const QString &number); static QString ImgTag(const QString &number);
protected: protected:
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE; virtual void changeEvent(QEvent* event) override;
virtual bool eventFilter(QObject *target, QEvent *event) Q_DECL_OVERRIDE; virtual bool eventFilter(QObject *target, QEvent *event) override;
private slots: private slots:
void UpdateChecks(QTreeWidgetItem *item, int column); void UpdateChecks(QTreeWidgetItem *item, int column);

View File

@ -52,8 +52,8 @@ public:
int BaseHeight() const; int BaseHeight() const;
protected: protected:
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE; virtual void changeEvent(QEvent* event) override;
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; virtual void showEvent(QShowEvent *event) override;
private slots: private slots:
void CurrentTypeChanged(int index); void CurrentTypeChanged(int index);

View File

@ -50,9 +50,9 @@ public:
signals: signals:
void UpdateProperties(); void UpdateProperties();
protected: protected:
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; virtual void showEvent(QShowEvent *event) override;
virtual void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE; virtual void resizeEvent(QResizeEvent *event) override;
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE; virtual void changeEvent(QEvent* event) override;
private slots: private slots:
void Apply(); void Apply();
void Ok(); void Ok();

View File

@ -52,21 +52,21 @@ class MApplication : public VAbstractApplication
public: public:
MApplication(int &argc, char **argv); MApplication(int &argc, char **argv);
virtual ~MApplication() Q_DECL_OVERRIDE; virtual ~MApplication() override;
virtual bool notify(QObject * receiver, QEvent * event) Q_DECL_OVERRIDE; virtual bool notify(QObject * receiver, QEvent * event) override;
bool IsTestMode() const; bool IsTestMode() const;
virtual bool IsAppInGUIMode() const Q_DECL_OVERRIDE; virtual bool IsAppInGUIMode() const override;
TMainWindow *MainWindow(); TMainWindow *MainWindow();
QList<TMainWindow*> MainWindows(); QList<TMainWindow*> MainWindows();
TMainWindow *NewMainWindow(); TMainWindow *NewMainWindow();
void InitOptions(); void InitOptions();
virtual const VTranslateVars *TrVars() Q_DECL_OVERRIDE; virtual const VTranslateVars *TrVars() override;
virtual void OpenSettings() Q_DECL_OVERRIDE; virtual void OpenSettings() override;
VTapeSettings *TapeSettings(); VTapeSettings *TapeSettings();
QString diagramsPath() const; QString diagramsPath() const;
@ -81,8 +81,8 @@ public slots:
void ProcessCMD(); void ProcessCMD();
protected: protected:
virtual void InitTrVars() Q_DECL_OVERRIDE; virtual void InitTrVars() override;
virtual bool event(QEvent *e) Q_DECL_OVERRIDE; virtual bool event(QEvent *e) override;
private slots: private slots:
void NewLocalSocketConnection(); void NewLocalSocketConnection();

View File

@ -51,7 +51,7 @@ class TMainWindow : public VAbstractMainWindow
public: public:
explicit TMainWindow(QWidget *parent = nullptr); explicit TMainWindow(QWidget *parent = nullptr);
virtual ~TMainWindow() Q_DECL_OVERRIDE; virtual ~TMainWindow() override;
QString CurrentFile() const; QString CurrentFile() const;
@ -64,15 +64,15 @@ public:
bool LoadFile(const QString &path); bool LoadFile(const QString &path);
public slots: public slots:
virtual void ShowToolTip(const QString &toolTip) Q_DECL_OVERRIDE; virtual void ShowToolTip(const QString &toolTip) override;
protected: protected:
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE; virtual void closeEvent(QCloseEvent *event) override;
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE; virtual void changeEvent(QEvent* event) override;
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; virtual void showEvent(QShowEvent *event) override;
virtual bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE; virtual bool eventFilter(QObject *object, QEvent *event) override;
virtual void ExportToCSVData(const QString &fileName, bool withHeader, int mib, virtual void ExportToCSVData(const QString &fileName, bool withHeader, int mib,
const QChar &separator) Q_DECL_FINAL; const QChar &separator) final;
private slots: private slots:
void FileNew(); void FileNew();

View File

@ -37,18 +37,18 @@ class VLitePattern : public VAbstractPattern
public: public:
explicit VLitePattern(QObject *parent = nullptr); explicit VLitePattern(QObject *parent = nullptr);
virtual void CreateEmptyFile() Q_DECL_OVERRIDE; virtual void CreateEmptyFile() override;
virtual void IncrementReferens(quint32 id) const Q_DECL_OVERRIDE; virtual void IncrementReferens(quint32 id) const override;
virtual void DecrementReferens(quint32 id) const Q_DECL_OVERRIDE; virtual void DecrementReferens(quint32 id) const override;
virtual QString GenerateLabel(const LabelType &type, const QString &reservedName = QString())const Q_DECL_OVERRIDE; virtual QString GenerateLabel(const LabelType &type, const QString &reservedName = QString())const override;
virtual QString GenerateSuffix() const Q_DECL_OVERRIDE; virtual QString GenerateSuffix() const override;
virtual void UpdateToolData(const quint32 &id, VContainer *data) Q_DECL_OVERRIDE; virtual void UpdateToolData(const quint32 &id, VContainer *data) override;
public slots: public slots:
virtual void LiteParseTree(const Document &parse) Q_DECL_OVERRIDE; virtual void LiteParseTree(const Document &parse) override;
private: private:
Q_DISABLE_COPY(VLitePattern) Q_DISABLE_COPY(VLitePattern)

View File

@ -52,9 +52,9 @@ class VApplication : public VAbstractApplication
public: public:
VApplication(int &argc, char ** argv); VApplication(int &argc, char ** argv);
virtual ~VApplication() Q_DECL_OVERRIDE; virtual ~VApplication() override;
static void NewValentina(const QString &fileName = QString()); static void NewValentina(const QString &fileName = QString());
virtual bool notify(QObject * receiver, QEvent * event) Q_DECL_OVERRIDE; virtual bool notify(QObject * receiver, QEvent * event) override;
void InitOptions(); void InitOptions();
@ -68,17 +68,17 @@ public:
void StartLogging(); void StartLogging();
QTextStream *LogFile(); QTextStream *LogFile();
virtual const VTranslateVars *TrVars() Q_DECL_OVERRIDE; virtual const VTranslateVars *TrVars() override;
bool static IsGUIMode(); bool static IsGUIMode();
virtual bool IsAppInGUIMode() const Q_DECL_OVERRIDE; virtual bool IsAppInGUIMode() const override;
virtual void OpenSettings() Q_DECL_OVERRIDE; virtual void OpenSettings() override;
VSettings *ValentinaSettings(); VSettings *ValentinaSettings();
protected: protected:
virtual void InitTrVars() Q_DECL_OVERRIDE; virtual void InitTrVars() override;
virtual bool event(QEvent *e) Q_DECL_OVERRIDE; virtual bool event(QEvent *e) override;
private: private:
Q_DISABLE_COPY(VApplication) Q_DISABLE_COPY(VApplication)

View File

@ -40,10 +40,10 @@ public:
explicit VFormulaProperty(const QString &name); explicit VFormulaProperty(const QString &name);
//! Get the data how it should be displayed //! Get the data how it should be displayed
virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const override;
//! Returns item flags //! Returns item flags
virtual Qt::ItemFlags flags(int column = DPC_Name) const Q_DECL_OVERRIDE; virtual Qt::ItemFlags flags(int column = DPC_Name) const override;
//! Returns an editor widget, or NULL if it doesn't supply one //! Returns an editor widget, or NULL if it doesn't supply one
//! \param parent The widget to which the editor will be added as a child //! \param parent The widget to which the editor will be added as a child
@ -51,16 +51,16 @@ public:
//! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and //! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and
//! slots. //! slots.
virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options, virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options,
const QAbstractItemDelegate* delegate) Q_DECL_OVERRIDE; const QAbstractItemDelegate* delegate) override;
//! Sets the property's data to the editor (returns false, if the standard delegate should do that) //! Sets the property's data to the editor (returns false, if the standard delegate should do that)
virtual bool setEditorData(QWidget* editor) Q_DECL_OVERRIDE; virtual bool setEditorData(QWidget* editor) override;
//! Gets the data from the widget //! Gets the data from the widget
virtual QVariant getEditorData(const QWidget* editor) const Q_DECL_OVERRIDE; virtual QVariant getEditorData(const QWidget* editor) const override;
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const Q_DECL_OVERRIDE; virtual QString type() const override;
//! Clones this property //! Clones this property
//! \param include_children Indicates whether to also clone the children //! \param include_children Indicates whether to also clone the children
@ -68,13 +68,13 @@ public:
//! to fill all the data into container. This can also be used when subclassing this function. //! to fill all the data into container. This can also be used when subclassing this function.
//! \return Returns the newly created property (or container, if it was not NULL) //! \return Returns the newly created property (or container, if it was not NULL)
Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true, Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true,
VProperty* container = nullptr) const Q_DECL_OVERRIDE; VProperty* container = nullptr) const override;
//! Sets the value of the property //! Sets the value of the property
virtual void setValue(const QVariant& value) Q_DECL_OVERRIDE; virtual void setValue(const QVariant& value) override;
//! Returns the value of the property as a QVariant //! Returns the value of the property as a QVariant
virtual QVariant getValue() const Q_DECL_OVERRIDE; virtual QVariant getValue() const override;
//! Returns the formula //! Returns the formula
VFormula GetFormula() const; VFormula GetFormula() const;
@ -83,7 +83,7 @@ public:
void SetFormula(const VFormula &formula); void SetFormula(const VFormula &formula);
public slots: public slots:
virtual void ValueChildChanged(const QVariant &value, int typeForParent) Q_DECL_OVERRIDE; virtual void ValueChildChanged(const QVariant &value, int typeForParent) override;
}; };

View File

@ -51,7 +51,7 @@ public:
VFormula GetFormula() const; VFormula GetFormula() const;
//! Needed for proper event handling //! Needed for proper event handling
virtual bool eventFilter(QObject *obj, QEvent *ev) Q_DECL_OVERRIDE; virtual bool eventFilter(QObject *obj, QEvent *ev) override;
signals: signals:
//! This is emitted, when the user changes the color //! This is emitted, when the user changes the color

View File

@ -46,7 +46,7 @@ public:
QStringList Apply(); QStringList Apply();
protected: protected:
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE; virtual void changeEvent(QEvent* event) override;
private: private:
Q_DISABLE_COPY(PreferencesConfigurationPage) Q_DISABLE_COPY(PreferencesConfigurationPage)
Ui::PreferencesConfigurationPage *ui; Ui::PreferencesConfigurationPage *ui;

View File

@ -47,7 +47,7 @@ public:
QStringList Apply(); QStringList Apply();
protected: protected:
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE; virtual void changeEvent(QEvent* event) override;
private slots: private slots:
void DefaultPath(); void DefaultPath();

View File

@ -51,7 +51,7 @@ public:
void InitDefaultSeamAllowance(); void InitDefaultSeamAllowance();
protected: protected:
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE; virtual void changeEvent(QEvent* event) override;
private slots: private slots:
void EditDateTimeFormats(); void EditDateTimeFormats();

View File

@ -45,7 +45,7 @@ public:
virtual ~DialogAboutApp(); virtual ~DialogAboutApp();
protected: protected:
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; virtual void showEvent(QShowEvent *event) override;
private: private:
Ui::DialogAboutApp *ui; Ui::DialogAboutApp *ui;

View File

@ -51,11 +51,11 @@ public:
QVector<VFinalMeasurement> FinalMeasurements() const; QVector<VFinalMeasurement> FinalMeasurements() const;
protected: protected:
virtual void closeEvent ( QCloseEvent * event ) Q_DECL_OVERRIDE; virtual void closeEvent ( QCloseEvent * event ) override;
virtual void changeEvent ( QEvent * event) Q_DECL_OVERRIDE; virtual void changeEvent ( QEvent * event) override;
virtual bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE; virtual bool eventFilter(QObject *object, QEvent *event) override;
virtual void showEvent( QShowEvent *event ) Q_DECL_OVERRIDE; virtual void showEvent( QShowEvent *event ) override;
virtual void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE; virtual void resizeEvent(QResizeEvent *event) override;
private slots: private slots:
void ShowFinalMeasurementDetails(); void ShowFinalMeasurementDetails();
void Add(); void Add();

View File

@ -48,13 +48,13 @@ class DialogHistory : public DialogTool
Q_OBJECT Q_OBJECT
public: public:
DialogHistory(VContainer *data, VPattern *doc, QWidget *parent = nullptr); DialogHistory(VContainer *data, VPattern *doc, QWidget *parent = nullptr);
virtual ~DialogHistory() Q_DECL_OVERRIDE; virtual ~DialogHistory() override;
public slots: public slots:
virtual void DialogAccepted() Q_DECL_OVERRIDE; virtual void DialogAccepted() override;
/** TODO ISSUE 79 : create real function /** TODO ISSUE 79 : create real function
* @brief DialogApply apply data and emit signal about applied dialog. * @brief DialogApply apply data and emit signal about applied dialog.
*/ */
virtual void DialogApply() Q_DECL_OVERRIDE {} virtual void DialogApply() override {}
void cellClicked(int row, int column); void cellClicked(int row, int column);
void ChangedCursor(quint32 id); void ChangedCursor(quint32 id);
void UpdateHistory(); void UpdateHistory();
@ -66,8 +66,8 @@ signals:
*/ */
void ShowHistoryTool(quint32 id, bool enable); void ShowHistoryTool(quint32 id, bool enable);
protected: protected:
virtual void closeEvent ( QCloseEvent * event ) Q_DECL_OVERRIDE; virtual void closeEvent ( QCloseEvent * event ) override;
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE; virtual void changeEvent(QEvent* event) override;
private: private:
Q_DISABLE_COPY(DialogHistory) Q_DISABLE_COPY(DialogHistory)

View File

@ -50,17 +50,17 @@ class DialogIncrements : public DialogTool
Q_OBJECT Q_OBJECT
public: public:
DialogIncrements(VContainer *data, VPattern *doc, QWidget *parent = nullptr); DialogIncrements(VContainer *data, VPattern *doc, QWidget *parent = nullptr);
virtual ~DialogIncrements() Q_DECL_OVERRIDE; virtual ~DialogIncrements() override;
signals: signals:
void UpdateProperties(); void UpdateProperties();
protected: protected:
virtual void closeEvent ( QCloseEvent * event ) Q_DECL_OVERRIDE; virtual void closeEvent ( QCloseEvent * event ) override;
virtual void changeEvent ( QEvent * event) Q_DECL_OVERRIDE; virtual void changeEvent ( QEvent * event) override;
virtual bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE; virtual bool eventFilter(QObject *object, QEvent *event) override;
virtual void showEvent( QShowEvent *event ) Q_DECL_OVERRIDE; virtual void showEvent( QShowEvent *event ) override;
virtual void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE; virtual void resizeEvent(QResizeEvent *event) override;
private slots: private slots:
void ShowIncrementDetails(); void ShowIncrementDetails();
void AddIncrement(); void AddIncrement();

View File

@ -56,7 +56,7 @@ public slots:
void Finished(); void Finished();
protected: protected:
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; virtual void showEvent(QShowEvent *event) override;
private: private:
Q_DISABLE_COPY(DialogLayoutProgress) Q_DISABLE_COPY(DialogLayoutProgress)

View File

@ -112,7 +112,7 @@ public:
qreal PageToPixels(qreal value) const; qreal PageToPixels(qreal value) const;
static QString MakeGroupsHelp(); static QString MakeGroupsHelp();
protected: protected:
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; virtual void showEvent(QShowEvent *event) override;
QSizeF GetTemplateSize(const PaperSizeTemplate &tmpl, const Unit &unit) const; QSizeF GetTemplateSize(const PaperSizeTemplate &tmpl, const Unit &unit) const;
public slots: public slots:

View File

@ -49,7 +49,7 @@ public:
QString name() const; QString name() const;
Unit PatternUnit() const; Unit PatternUnit() const;
protected: protected:
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; virtual void showEvent(QShowEvent *event) override;
private slots: private slots:
void CheckState(); void CheckState();
private: private:

View File

@ -67,7 +67,7 @@ public:
} }
virtual QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, virtual QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
const QModelIndex &index) const Q_DECL_OVERRIDE const QModelIndex &index) const override
{ {
Q_UNUSED(option) Q_UNUSED(option)
Q_UNUSED(index) Q_UNUSED(index)
@ -78,7 +78,7 @@ public:
return editor; return editor;
} }
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const Q_DECL_OVERRIDE virtual void setEditorData(QWidget *editor, const QModelIndex &index) const override
{ {
const QString value = index.model()->data(index, Qt::EditRole).toString(); const QString value = index.model()->data(index, Qt::EditRole).toString();
@ -92,7 +92,7 @@ public:
} }
virtual void setModelData(QWidget *editor, QAbstractItemModel *model, virtual void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index) const Q_DECL_OVERRIDE const QModelIndex &index) const override
{ {
QComboBox *comboBox = static_cast<QComboBox*>(editor); QComboBox *comboBox = static_cast<QComboBox*>(editor);
QString value; QString value;
@ -107,7 +107,7 @@ public:
} }
virtual void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, virtual void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option,
const QModelIndex &index) const Q_DECL_OVERRIDE const QModelIndex &index) const override
{ {
Q_UNUSED(index) Q_UNUSED(index)
editor->setGeometry(option.rect); editor->setGeometry(option.rect);

View File

@ -47,7 +47,7 @@ class DialogPatternProperties : public QDialog
Q_OBJECT Q_OBJECT
public: public:
explicit DialogPatternProperties(VPattern *doc, VContainer *pattern, QWidget *parent = nullptr); explicit DialogPatternProperties(VPattern *doc, VContainer *pattern, QWidget *parent = nullptr);
virtual ~DialogPatternProperties() Q_DECL_OVERRIDE; virtual ~DialogPatternProperties() override;
signals: signals:
void UpdateGradation(); void UpdateGradation();
private slots: private slots:

View File

@ -52,9 +52,9 @@ public:
signals: signals:
void UpdateProperties(); void UpdateProperties();
protected: protected:
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; virtual void showEvent(QShowEvent *event) override;
virtual void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE; virtual void resizeEvent(QResizeEvent *event) override;
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE; virtual void changeEvent(QEvent* event) override;
private slots: private slots:
void PageChanged(QListWidgetItem *current, QListWidgetItem *previous); void PageChanged(QListWidgetItem *current, QListWidgetItem *previous);
private: private:

View File

@ -123,7 +123,7 @@ public:
PageOrientation GetTiledPageOrientation() const; PageOrientation GetTiledPageOrientation() const;
protected: protected:
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; virtual void showEvent(QShowEvent *event) override;
void InitTemplates(QComboBox *comboBoxTemplates); void InitTemplates(QComboBox *comboBoxTemplates);
private slots: private slots:

View File

@ -62,16 +62,16 @@ class MainWindow : public MainWindowsNoGUI
Q_OBJECT Q_OBJECT
public: public:
explicit MainWindow(QWidget *parent = nullptr); explicit MainWindow(QWidget *parent = nullptr);
virtual ~MainWindow() Q_DECL_OVERRIDE; virtual ~MainWindow() override;
bool LoadPattern(QString fileName, const QString &customMeasureFile = QString()); bool LoadPattern(QString fileName, const QString &customMeasureFile = QString());
public slots: public slots:
void ProcessCMD(); void ProcessCMD();
virtual void ShowToolTip(const QString &toolTip) Q_DECL_OVERRIDE; virtual void ShowToolTip(const QString &toolTip) override;
virtual void UpdateVisibilityGroups() Q_DECL_OVERRIDE; virtual void UpdateVisibilityGroups() override;
virtual void UpdateDetailsList() Q_DECL_OVERRIDE; virtual void UpdateDetailsList() override;
virtual void ZoomFitBestCurrent() Q_DECL_OVERRIDE; virtual void ZoomFitBestCurrent() override;
signals: signals:
void RefreshHistory(); void RefreshHistory();
@ -100,15 +100,15 @@ signals:
void EnableNodePointHover(bool enable); void EnableNodePointHover(bool enable);
void EnableDetailHover(bool enable); void EnableDetailHover(bool enable);
protected: protected:
virtual void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE; virtual void keyPressEvent(QKeyEvent *event) override;
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; virtual void showEvent(QShowEvent *event) override;
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE; virtual void changeEvent(QEvent* event) override;
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE; virtual void closeEvent(QCloseEvent *event) override;
virtual void customEvent(QEvent * event) Q_DECL_OVERRIDE; virtual void customEvent(QEvent * event) override;
virtual void CleanLayout() Q_DECL_OVERRIDE; virtual void CleanLayout() override;
virtual void PrepareSceneList() Q_DECL_OVERRIDE; virtual void PrepareSceneList() override;
virtual void ExportToCSVData(const QString &fileName, bool withHeader, int mib, virtual void ExportToCSVData(const QString &fileName, bool withHeader, int mib,
const QChar &separator) Q_DECL_FINAL; const QChar &separator) final;
private slots: private slots:
void ScaleChanged(qreal scale); void ScaleChanged(qreal scale);
void MouseMove(const QPointF &scenePos); void MouseMove(const QPointF &scenePos);

View File

@ -52,7 +52,7 @@ class MainWindowsNoGUI : public VAbstractMainWindow
Q_OBJECT Q_OBJECT
public: public:
explicit MainWindowsNoGUI(QWidget *parent = nullptr); explicit MainWindowsNoGUI(QWidget *parent = nullptr);
virtual ~MainWindowsNoGUI() Q_DECL_OVERRIDE; virtual ~MainWindowsNoGUI() override;
public slots: public slots:
void ToolLayoutSettings(bool checked); void ToolLayoutSettings(bool checked);

View File

@ -49,25 +49,25 @@ public:
VPattern(VContainer *data, Draw *mode, VMainGraphicsScene *sceneDraw, VMainGraphicsScene *sceneDetail, VPattern(VContainer *data, Draw *mode, VMainGraphicsScene *sceneDraw, VMainGraphicsScene *sceneDetail,
QObject *parent = nullptr); QObject *parent = nullptr);
virtual void CreateEmptyFile() Q_DECL_OVERRIDE; virtual void CreateEmptyFile() override;
void Parse(const Document &parse); void Parse(const Document &parse);
void GarbageCollector(bool commit = false); void GarbageCollector(bool commit = false);
void setCurrentData(); void setCurrentData();
virtual void UpdateToolData(const quint32 &id, VContainer *data) Q_DECL_OVERRIDE; virtual void UpdateToolData(const quint32 &id, VContainer *data) override;
VContainer GetCompleteData() const; VContainer GetCompleteData() const;
virtual void IncrementReferens(quint32 id) const Q_DECL_OVERRIDE; virtual void IncrementReferens(quint32 id) const override;
virtual void DecrementReferens(quint32 id) const Q_DECL_OVERRIDE; virtual void DecrementReferens(quint32 id) const override;
quint32 SPointActiveDraw(); quint32 SPointActiveDraw();
QVector<quint32> GetActivePPPieces() const; QVector<quint32> GetActivePPPieces() const;
virtual void setXMLContent(const QString &fileName) Q_DECL_OVERRIDE; virtual void setXMLContent(const QString &fileName) override;
virtual bool SaveDocument(const QString &fileName, QString &error) Q_DECL_OVERRIDE; virtual bool SaveDocument(const QString &fileName, QString &error) override;
QRectF ActiveDrawBoundingRect() const; QRectF ActiveDrawBoundingRect() const;
@ -92,8 +92,8 @@ public:
void ReplaceNameInFormula(QVector<VFormulaField> &expressions, const QString &name, const QString &newName); void ReplaceNameInFormula(QVector<VFormulaField> &expressions, const QString &name, const QString &newName);
virtual QString GenerateLabel(const LabelType &type, const QString &reservedName = QString())const Q_DECL_OVERRIDE; virtual QString GenerateLabel(const LabelType &type, const QString &reservedName = QString())const override;
virtual QString GenerateSuffix() const Q_DECL_OVERRIDE; virtual QString GenerateSuffix() const override;
bool IsDefCustom() const; bool IsDefCustom() const;
void SetDefCustom(bool value); void SetDefCustom(bool value);
@ -114,10 +114,10 @@ public:
int ElementsToParse() const; int ElementsToParse() const;
public slots: public slots:
virtual void LiteParseTree(const Document &parse) Q_DECL_OVERRIDE; virtual void LiteParseTree(const Document &parse) override;
protected: protected:
virtual void customEvent(QEvent * event) Q_DECL_OVERRIDE; virtual void customEvent(QEvent * event) override;
private: private:
Q_DISABLE_COPY(VPattern) Q_DISABLE_COPY(VPattern)

View File

@ -48,10 +48,10 @@ public:
VException &operator=(const VException &e); VException &operator=(const VException &e);
virtual ~VException() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT; virtual ~VException() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
Q_NORETURN virtual void raise() const Q_DECL_OVERRIDE; Q_NORETURN virtual void raise() const override;
// cppcheck-suppress unusedFunction // cppcheck-suppress unusedFunction
Q_REQUIRED_RESULT virtual VException *clone() const Q_DECL_OVERRIDE; Q_REQUIRED_RESULT virtual VException *clone() const override;
virtual QString ErrorMessage() const; virtual QString ErrorMessage() const;
virtual QString DetailedInformation() const; virtual QString DetailedInformation() const;
@ -99,9 +99,9 @@ public:
VExceptionToolWasDeleted &operator=(const VExceptionToolWasDeleted &e); VExceptionToolWasDeleted &operator=(const VExceptionToolWasDeleted &e);
virtual ~VExceptionToolWasDeleted() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT; virtual ~VExceptionToolWasDeleted() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
Q_NORETURN virtual void raise() const Q_DECL_OVERRIDE; Q_NORETURN virtual void raise() const override;
// cppcheck-suppress unusedFunction // cppcheck-suppress unusedFunction
virtual VExceptionToolWasDeleted *clone() const Q_DECL_OVERRIDE; virtual VExceptionToolWasDeleted *clone() const override;
}; };
#endif // VEXCEPTION_H #endif // VEXCEPTION_H

View File

@ -47,7 +47,7 @@ public:
VExceptionBadId(const VExceptionBadId &e); VExceptionBadId(const VExceptionBadId &e);
VExceptionBadId &operator=(const VExceptionBadId &e); VExceptionBadId &operator=(const VExceptionBadId &e);
virtual ~VExceptionBadId() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT; virtual ~VExceptionBadId() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
virtual QString ErrorMessage() const Q_DECL_OVERRIDE; virtual QString ErrorMessage() const override;
quint32 BadId() const; quint32 BadId() const;
QString BadKey() const; QString BadKey() const;
protected: protected:

View File

@ -45,7 +45,7 @@ public:
VExceptionConversionError(const VExceptionConversionError &e); VExceptionConversionError(const VExceptionConversionError &e);
VExceptionConversionError &operator=(const VExceptionConversionError &e); VExceptionConversionError &operator=(const VExceptionConversionError &e);
virtual ~VExceptionConversionError() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT; virtual ~VExceptionConversionError() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
virtual QString ErrorMessage() const Q_DECL_OVERRIDE; virtual QString ErrorMessage() const override;
QString String() const; QString String() const;
protected: protected:
/** @brief str string, where happend error */ /** @brief str string, where happend error */

View File

@ -48,8 +48,8 @@ public:
VExceptionEmptyParameter(const VExceptionEmptyParameter &e); VExceptionEmptyParameter(const VExceptionEmptyParameter &e);
VExceptionEmptyParameter &operator=(const VExceptionEmptyParameter &e); VExceptionEmptyParameter &operator=(const VExceptionEmptyParameter &e);
virtual ~VExceptionEmptyParameter() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT; virtual ~VExceptionEmptyParameter() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
virtual QString ErrorMessage() const Q_DECL_OVERRIDE; virtual QString ErrorMessage() const override;
virtual QString DetailedInformation() const Q_DECL_OVERRIDE; virtual QString DetailedInformation() const override;
QString Name() const; QString Name() const;
QString TagText() const; QString TagText() const;
QString TagName() const; QString TagName() const;

View File

@ -48,8 +48,8 @@ public:
VExceptionObjectError(const VExceptionObjectError &e); VExceptionObjectError(const VExceptionObjectError &e);
VExceptionObjectError &operator=(const VExceptionObjectError &e); VExceptionObjectError &operator=(const VExceptionObjectError &e);
virtual ~VExceptionObjectError() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT; virtual ~VExceptionObjectError() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
virtual QString ErrorMessage() const Q_DECL_OVERRIDE; virtual QString ErrorMessage() const override;
virtual QString DetailedInformation() const Q_DECL_OVERRIDE; virtual QString DetailedInformation() const override;
QString TagText() const; QString TagText() const;
QString TagName() const; QString TagName() const;
qint32 LineNumber() const; qint32 LineNumber() const;

View File

@ -48,8 +48,8 @@ public:
VExceptionWrongId(const VExceptionWrongId &e); VExceptionWrongId(const VExceptionWrongId &e);
VExceptionWrongId &operator=(const VExceptionWrongId &e); VExceptionWrongId &operator=(const VExceptionWrongId &e);
virtual ~VExceptionWrongId() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT; virtual ~VExceptionWrongId() V_NOEXCEPT_EXPR (true) Q_DECL_EQ_DEFAULT;
virtual QString ErrorMessage() const Q_DECL_OVERRIDE; virtual QString ErrorMessage() const override;
virtual QString DetailedInformation() const Q_DECL_OVERRIDE; virtual QString DetailedInformation() const override;
QString TagText() const; QString TagText() const;
QString TagName() const; QString TagName() const;
qint32 LineNumber() const; qint32 LineNumber() const;

View File

@ -139,7 +139,7 @@ public:
protected: protected:
// cppcheck-suppress unusedFunction // cppcheck-suppress unusedFunction
virtual void handleMessage(QtMsgType type, const QString &description, virtual void handleMessage(QtMsgType type, const QString &description,
const QUrl &identifier, const QSourceLocation &sourceLocation) Q_DECL_OVERRIDE; const QUrl &identifier, const QSourceLocation &sourceLocation) override;
private: private:
QtMsgType m_messageType; QtMsgType m_messageType;
QString m_description; QString m_description;

View File

@ -43,17 +43,17 @@ public:
static Q_DECL_CONSTEXPR const int LabelTemplateMaxVer = CONVERTER_VERSION_CHECK(1, 0, 0); static Q_DECL_CONSTEXPR const int LabelTemplateMaxVer = CONVERTER_VERSION_CHECK(1, 0, 0);
protected: protected:
virtual int MinVer() const Q_DECL_OVERRIDE; virtual int MinVer() const override;
virtual int MaxVer() const Q_DECL_OVERRIDE; virtual int MaxVer() const override;
virtual QString MinVerStr() const Q_DECL_OVERRIDE; virtual QString MinVerStr() const override;
virtual QString MaxVerStr() const Q_DECL_OVERRIDE; virtual QString MaxVerStr() const override;
virtual QString XSDSchema(int ver) const Q_DECL_OVERRIDE; virtual QString XSDSchema(int ver) const override;
virtual void ApplyPatches() Q_DECL_OVERRIDE; virtual void ApplyPatches() override;
virtual void DowngradeToCurrentMaxVersion() Q_DECL_OVERRIDE; virtual void DowngradeToCurrentMaxVersion() override;
virtual bool IsReadOnly() const Q_DECL_OVERRIDE {return false;} virtual bool IsReadOnly() const override {return false;}
private: private:
Q_DISABLE_COPY(VLabelTemplateConverter) Q_DISABLE_COPY(VLabelTemplateConverter)

View File

@ -56,17 +56,17 @@ public:
static Q_DECL_CONSTEXPR const int PatternMaxVer = CONVERTER_VERSION_CHECK(0, 7, 8); static Q_DECL_CONSTEXPR const int PatternMaxVer = CONVERTER_VERSION_CHECK(0, 7, 8);
protected: protected:
virtual int MinVer() const Q_DECL_OVERRIDE; virtual int MinVer() const override;
virtual int MaxVer() const Q_DECL_OVERRIDE; virtual int MaxVer() const override;
virtual QString MinVerStr() const Q_DECL_OVERRIDE; virtual QString MinVerStr() const override;
virtual QString MaxVerStr() const Q_DECL_OVERRIDE; virtual QString MaxVerStr() const override;
virtual QString XSDSchema(int ver) const Q_DECL_OVERRIDE; virtual QString XSDSchema(int ver) const override;
virtual void ApplyPatches() Q_DECL_OVERRIDE; virtual void ApplyPatches() override;
virtual void DowngradeToCurrentMaxVersion() Q_DECL_OVERRIDE; virtual void DowngradeToCurrentMaxVersion() override;
virtual bool IsReadOnly() const Q_DECL_OVERRIDE; virtual bool IsReadOnly() const override;
private: private:
Q_DISABLE_COPY(VPatternConverter) Q_DISABLE_COPY(VPatternConverter)

View File

@ -52,16 +52,16 @@ public:
static Q_DECL_CONSTEXPR const int MeasurementMaxVer = CONVERTER_VERSION_CHECK(0, 4, 0); static Q_DECL_CONSTEXPR const int MeasurementMaxVer = CONVERTER_VERSION_CHECK(0, 4, 0);
protected: protected:
virtual int MinVer() const Q_DECL_OVERRIDE; virtual int MinVer() const override;
virtual int MaxVer() const Q_DECL_OVERRIDE; virtual int MaxVer() const override;
virtual QString MinVerStr() const Q_DECL_OVERRIDE; virtual QString MinVerStr() const override;
virtual QString MaxVerStr() const Q_DECL_OVERRIDE; virtual QString MaxVerStr() const override;
virtual QString XSDSchema(int ver) const Q_DECL_OVERRIDE; virtual QString XSDSchema(int ver) const override;
virtual void ApplyPatches() Q_DECL_OVERRIDE; virtual void ApplyPatches() override;
virtual void DowngradeToCurrentMaxVersion() Q_DECL_OVERRIDE; virtual void DowngradeToCurrentMaxVersion() override;
virtual bool IsReadOnly() const Q_DECL_OVERRIDE; virtual bool IsReadOnly() const override;
private: private:
Q_DISABLE_COPY(VVITConverter) Q_DISABLE_COPY(VVITConverter)

View File

@ -58,16 +58,16 @@ public:
#endif #endif
protected: protected:
virtual int MinVer() const Q_DECL_OVERRIDE; virtual int MinVer() const override;
virtual int MaxVer() const Q_DECL_OVERRIDE; virtual int MaxVer() const override;
virtual QString MinVerStr() const Q_DECL_OVERRIDE; virtual QString MinVerStr() const override;
virtual QString MaxVerStr() const Q_DECL_OVERRIDE; virtual QString MaxVerStr() const override;
virtual QString XSDSchema(int ver) const Q_DECL_OVERRIDE; virtual QString XSDSchema(int ver) const override;
virtual void ApplyPatches() Q_DECL_OVERRIDE; virtual void ApplyPatches() override;
virtual void DowngradeToCurrentMaxVersion() Q_DECL_OVERRIDE; virtual void DowngradeToCurrentMaxVersion() override;
virtual bool IsReadOnly() const Q_DECL_OVERRIDE; virtual bool IsReadOnly() const override;
private: private:
Q_DISABLE_COPY(VVSTConverter) Q_DISABLE_COPY(VVSTConverter)

View File

@ -39,9 +39,9 @@ class QMUPARSERSHARED_EXPORT QmuFormulaBase : public QmuParser
{ {
public: public:
QmuFormulaBase(); QmuFormulaBase();
virtual ~QmuFormulaBase() Q_DECL_OVERRIDE; virtual ~QmuFormulaBase() override;
virtual void InitCharSets() Q_DECL_OVERRIDE; virtual void InitCharSets() override;
static void RemoveAll(QMap<int, QString> &map, const QString &val); static void RemoveAll(QMap<int, QString> &map, const QString &val);

View File

@ -51,11 +51,11 @@ namespace qmu
{ {
public: public:
QmuParser(); QmuParser();
virtual void InitCharSets() Q_DECL_OVERRIDE; virtual void InitCharSets() override;
virtual void InitFun() Q_DECL_OVERRIDE; virtual void InitFun() override;
virtual void InitConst() Q_DECL_OVERRIDE; virtual void InitConst() override;
virtual void InitOprt() Q_DECL_OVERRIDE; virtual void InitOprt() override;
virtual void OnDetectVar(const QString &pExpr, int &nStart, int &nEnd) Q_DECL_OVERRIDE; virtual void OnDetectVar(const QString &pExpr, int &nStart, int &nEnd) override;
qreal Diff(qreal *a_Var, qreal a_fPos, qreal a_fEpsilon = 0) const; qreal Diff(qreal *a_Var, qreal a_fPos, qreal a_fEpsilon = 0) const;
protected: protected:
static int IsVal(const QString &a_szExpr, int *a_iPos, qreal *a_fVal, const QLocale &locale, static int IsVal(const QString &a_szExpr, int *a_iPos, qreal *a_fVal, const QLocale &locale,

View File

@ -166,17 +166,17 @@ protected:
:std::numpunct<TChar>(), m_nGroup(nGroup), m_cDecPoint(cDecSep), m_cThousandsSep(cThousandsSep) :std::numpunct<TChar>(), m_nGroup(nGroup), m_cDecPoint(cDecSep), m_cThousandsSep(cThousandsSep)
{} {}
protected: protected:
virtual char_type do_decimal_point() const Q_DECL_OVERRIDE virtual char_type do_decimal_point() const override
{ {
return m_cDecPoint; return m_cDecPoint;
} }
virtual char_type do_thousands_sep() const Q_DECL_OVERRIDE virtual char_type do_thousands_sep() const override
{ {
return m_cThousandsSep; return m_cThousandsSep;
} }
virtual std::string do_grouping() const Q_DECL_OVERRIDE virtual std::string do_grouping() const override
{ {
// fix for issue 4: https://code.google.com/p/muparser/issues/detail?id=4 // fix for issue 4: https://code.google.com/p/muparser/issues/detail?id=4
// courtesy of Jens Bartsch // courtesy of Jens Bartsch

View File

@ -146,7 +146,7 @@ public:
QmuParserError ( const QString &szMsg, int iPos, const QString &sTok = QString() ); QmuParserError ( const QString &szMsg, int iPos, const QString &sTok = QString() );
QmuParserError ( const QmuParserError &a_Obj ); QmuParserError ( const QmuParserError &a_Obj );
QmuParserError& operator= ( const QmuParserError &a_Obj ); QmuParserError& operator= ( const QmuParserError &a_Obj );
virtual ~QmuParserError() QMUP_NOEXCEPT_EXPR (true) Q_DECL_OVERRIDE {} virtual ~QmuParserError() QMUP_NOEXCEPT_EXPR (true) override {}
void SetFormula ( const QString &a_strFormula ); void SetFormula ( const QString &a_strFormula );
const QString& GetExpr() const; const QString& GetExpr() const;
@ -154,8 +154,8 @@ public:
int GetPos() const; int GetPos() const;
const QString& GetToken() const; const QString& GetToken() const;
EErrorCodes GetCode() const; EErrorCodes GetCode() const;
Q_NORETURN virtual void raise() const Q_DECL_OVERRIDE; Q_NORETURN virtual void raise() const override;
Q_REQUIRED_RESULT virtual QmuParserError *clone() const Q_DECL_OVERRIDE; Q_REQUIRED_RESULT virtual QmuParserError *clone() const override;
private: private:
QString m_sMsg; ///< The message string QString m_sMsg; ///< The message string
QString m_sExpr; ///< Formula string QString m_sExpr; ///< Formula string

View File

@ -103,18 +103,18 @@ public:
//reimplement virtual DRW_Interface functions //reimplement virtual DRW_Interface functions
//writer part, send all in class dx_data to writer //writer part, send all in class dx_data to writer
virtual void writeHeader(DRW_Header& data); virtual void writeHeader(DRW_Header& data) override;
virtual void writeBlocks(); virtual void writeBlocks() override;
//only send the name, needed by the reader to prepare handles of blocks & blockRecords //only send the name, needed by the reader to prepare handles of blocks & blockRecords
virtual void writeBlockRecords(); virtual void writeBlockRecords() override;
//write entities of model space and first paper_space //write entities of model space and first paper_space
virtual void writeEntities(); virtual void writeEntities() override;
virtual void writeLTypes(); virtual void writeLTypes() override;
virtual void writeLayers(); virtual void writeLayers() override;
virtual void writeTextstyles(); virtual void writeTextstyles() override;
virtual void writeVports(); virtual void writeVports() override;
virtual void writeDimstyles(); virtual void writeDimstyles() override;
virtual void writeAppId(); virtual void writeAppId() override;
void AddEntity(DRW_Entity* e); void AddEntity(DRW_Entity* e);
UTF8STRING AddFont(const QFont &f); UTF8STRING AddFont(const QFont &f);

View File

@ -238,7 +238,7 @@ public:
eType = DRW::POINT; eType = DRW::POINT;
} }
virtual void applyExtrusion(){} virtual void applyExtrusion() override{}
protected: protected:
void parseCode(int code, dxfReader *reader); void parseCode(int code, dxfReader *reader);
@ -265,7 +265,7 @@ public:
eType = DRW::LINE; eType = DRW::LINE;
} }
virtual void applyExtrusion(){} virtual void applyExtrusion() override{}
protected: protected:
void parseCode(int code, dxfReader *reader); void parseCode(int code, dxfReader *reader);
@ -313,7 +313,7 @@ public:
eType = DRW::CIRCLE; eType = DRW::CIRCLE;
} }
virtual void applyExtrusion(); virtual void applyExtrusion() override;
protected: protected:
void parseCode(int code, dxfReader *reader); void parseCode(int code, dxfReader *reader);
@ -338,7 +338,7 @@ public:
eType = DRW::ARC; eType = DRW::ARC;
} }
virtual void applyExtrusion(); virtual void applyExtrusion() override;
//! center point in OCS //! center point in OCS
const DRW_Coord & center() const { return basePoint; } const DRW_Coord & center() const { return basePoint; }
@ -383,7 +383,7 @@ public:
} }
void toPolyline(DRW_Polyline *pol, int parts = 128); void toPolyline(DRW_Polyline *pol, int parts = 128);
virtual void applyExtrusion(); virtual void applyExtrusion() override;
protected: protected:
//! interpret code in dxf reading process or dispatch to inherited class //! interpret code in dxf reading process or dispatch to inherited class
@ -414,7 +414,7 @@ public:
eType = DRW::TRACE; eType = DRW::TRACE;
} }
virtual void applyExtrusion(); virtual void applyExtrusion() override;
protected: protected:
void parseCode(int code, dxfReader *reader); void parseCode(int code, dxfReader *reader);
@ -481,7 +481,7 @@ public:
eType = DRW::E3DFACE; eType = DRW::E3DFACE;
} }
virtual void applyExtrusion() {} virtual void applyExtrusion() override {}
//! first corner in WCS //! first corner in WCS
const DRW_Coord & firstCorner() const { return basePoint; } const DRW_Coord & firstCorner() const { return basePoint; }
@ -519,7 +519,7 @@ public:
layer = '0'; layer = '0';
} }
virtual void applyExtrusion(){} virtual void applyExtrusion() override {}
protected: protected:
void parseCode(int code, dxfReader *reader); void parseCode(int code, dxfReader *reader);
@ -607,7 +607,7 @@ public:
~DRW_LWPolyline() { ~DRW_LWPolyline() {
for(DRW_Vertex2D *item : vertlist) delete item; for(DRW_Vertex2D *item : vertlist) delete item;
} }
virtual void applyExtrusion(); virtual void applyExtrusion() override;
void addVertex (DRW_Vertex2D v) { void addVertex (DRW_Vertex2D v) {
DRW_Vertex2D *vert = new DRW_Vertex2D(); DRW_Vertex2D *vert = new DRW_Vertex2D();
vert->x = v.x; vert->x = v.x;
@ -682,7 +682,7 @@ public:
eType = DRW::TEXT; eType = DRW::TEXT;
} }
virtual void applyExtrusion(){} //RLZ TODO virtual void applyExtrusion() override {} //RLZ TODO
protected: protected:
void parseCode(int code, dxfReader *reader); void parseCode(int code, dxfReader *reader);
@ -943,7 +943,7 @@ public:
for(DRW_Coord *item : controllist) delete item; for(DRW_Coord *item : controllist) delete item;
for(DRW_Coord *item : fitlist) delete item; for(DRW_Coord *item : fitlist) delete item;
} }
virtual void applyExtrusion(){} virtual void applyExtrusion() override {}
protected: protected:
void parseCode(int code, dxfReader *reader); void parseCode(int code, dxfReader *reader);
@ -1057,7 +1057,7 @@ public:
looplist.push_back(v); looplist.push_back(v);
} }
virtual void applyExtrusion(){} virtual void applyExtrusion() override {}
protected: protected:
void parseCode(int code, dxfReader *reader); void parseCode(int code, dxfReader *reader);
@ -1238,7 +1238,7 @@ public:
} }
virtual ~DRW_Dimension() = default; virtual ~DRW_Dimension() = default;
virtual void applyExtrusion(){} virtual void applyExtrusion() override {}
protected: protected:
void parseCode(int code, dxfReader *reader); void parseCode(int code, dxfReader *reader);
@ -1544,7 +1544,7 @@ public:
for(DRW_Coord *item : vertexlist) delete item; for(DRW_Coord *item : vertexlist) delete item;
} }
virtual void applyExtrusion(){} virtual void applyExtrusion() override {}
protected: protected:
void parseCode(int code, dxfReader *reader); void parseCode(int code, dxfReader *reader);
@ -1606,7 +1606,7 @@ public:
eType = DRW::VIEWPORT; eType = DRW::VIEWPORT;
} }
virtual void applyExtrusion(){} virtual void applyExtrusion() override {}
protected: protected:
void parseCode(int code, dxfReader *reader); void parseCode(int code, dxfReader *reader);

View File

@ -19,7 +19,7 @@ DRW_dbg *DRW_dbg::instance= NULL;
/*********private clases*************/ /*********private clases*************/
class print_none { class print_none {
public: public:
virtual void printS(std::string s){(void)s;} virtual void printS(const std::string &s){(void)s;}
virtual void printI(long long int i){(void)i;} virtual void printI(long long int i){(void)i;}
virtual void printUI(long long unsigned int i){(void)i;} virtual void printUI(long long unsigned int i){(void)i;}
virtual void printD(double d){(void)d;} virtual void printD(double d){(void)d;}
@ -33,14 +33,14 @@ public:
class print_debug : public print_none { class print_debug : public print_none {
public: public:
virtual void printS(std::string s); virtual void printS(const std::string &s) override;
virtual void printI(long long int i); virtual void printI(long long int i) override;
virtual void printUI(long long unsigned int i); virtual void printUI(long long unsigned int i) override;
virtual void printD(double d); virtual void printD(double d) override;
virtual void printH(long long int i); virtual void printH(long long int i) override;
virtual void printB(int i); virtual void printB(int i) override;
virtual void printHL(int c, int s, int h); virtual void printHL(int c, int s, int h) override;
virtual void printPT(double x, double y, double z); virtual void printPT(double x, double y, double z) override;
print_debug(); print_debug();
virtual ~print_debug() = default; virtual ~print_debug() = default;
private: private:
@ -82,7 +82,7 @@ DRW_dbg::LEVEL DRW_dbg::getLevel() const{
return level; return level;
} }
void DRW_dbg::print(std::string s){ void DRW_dbg::print(const std::string &s){
prClass->printS(s); prClass->printS(s);
} }
@ -129,7 +129,7 @@ print_debug::print_debug()
: flags(std::cerr.flags()) : flags(std::cerr.flags())
{} {}
void print_debug::printS(std::string s){ void print_debug::printS(const std::string &s){
std::cerr << s; std::cerr << s;
} }

View File

@ -38,7 +38,7 @@ public:
void setLevel(LEVEL lvl); void setLevel(LEVEL lvl);
LEVEL getLevel() const; LEVEL getLevel() const;
static DRW_dbg *getInstance(); static DRW_dbg *getInstance();
void print(std::string s); void print(const std::string &s);
void print(int i); void print(int i);
void print(unsigned int i); void print(unsigned int i);
void print(long long int i); void print(long long int i);

View File

@ -43,7 +43,7 @@ public:
std::string getString() const {return strData;} std::string getString() const {return strData;}
int getHandleString();//Convert hex string to int int getHandleString();//Convert hex string to int
std::string toUtf8String(std::string t) {return decoder.toUtf8(t);} std::string toUtf8String(const std::string &t) {return decoder.toUtf8(t);}
std::string getUtf8String() {return decoder.toUtf8(strData);} std::string getUtf8String() {return decoder.toUtf8(strData);}
double getDouble() const {return doubleData;} double getDouble() const {return doubleData;}
int getInt32() const {return intData;} int getInt32() const {return intData;}
@ -83,14 +83,14 @@ public:
{skip = false; } {skip = false; }
virtual ~dxfReaderBinary() = default; virtual ~dxfReaderBinary() = default;
virtual bool readCode(int *code); virtual bool readCode(int *code) override;
virtual bool readString(std::string *text); virtual bool readString(std::string *text) override;
virtual bool readString(); virtual bool readString() override;
virtual bool readInt16(); virtual bool readInt16() override;
virtual bool readInt32(); virtual bool readInt32() override;
virtual bool readInt64(); virtual bool readInt64() override;
virtual bool readDouble(); virtual bool readDouble() override;
virtual bool readBool(); virtual bool readBool() override;
}; };
class dxfReaderAscii : public dxfReader { class dxfReaderAscii : public dxfReader {
@ -100,14 +100,14 @@ public:
{skip = true; } {skip = true; }
virtual ~dxfReaderAscii() = default; virtual ~dxfReaderAscii() = default;
virtual bool readCode(int *code); virtual bool readCode(int *code) override;
virtual bool readString(std::string *text); virtual bool readString(std::string *text) override;
virtual bool readString(); virtual bool readString() override;
virtual bool readInt16(); virtual bool readInt16() override;
virtual bool readDouble(); virtual bool readDouble() override;
virtual bool readInt32(); virtual bool readInt32() override;
virtual bool readInt64(); virtual bool readInt64() override;
virtual bool readBool(); virtual bool readBool() override;
}; };
#endif // DXFREADER_H #endif // DXFREADER_H

View File

@ -26,7 +26,7 @@ public:
virtual bool writeString(int code, std::string text) = 0; virtual bool writeString(int code, std::string text) = 0;
bool writeUtf8String(int code, const std::string &text); bool writeUtf8String(int code, const std::string &text);
bool writeUtf8Caps(int code, const std::string &text); bool writeUtf8Caps(int code, const std::string &text);
std::string fromUtf8String(std::string t) {return encoder.fromUtf8(t);} std::string fromUtf8String(const std::string &t) {return encoder.fromUtf8(t);}
virtual bool writeInt16(int code, int data) = 0; virtual bool writeInt16(int code, int data) = 0;
virtual bool writeInt32(int code, int data) = 0; virtual bool writeInt32(int code, int data) = 0;
virtual bool writeInt64(int code, unsigned long long int data) = 0; virtual bool writeInt64(int code, unsigned long long int data) = 0;
@ -48,24 +48,24 @@ public:
: dxfWriter(stream) : dxfWriter(stream)
{} {}
virtual ~dxfWriterBinary() = default; virtual ~dxfWriterBinary() = default;
virtual bool writeString(int code, std::string text); virtual bool writeString(int code, std::string text) override;
virtual bool writeInt16(int code, int data); virtual bool writeInt16(int code, int data) override;
virtual bool writeInt32(int code, int data); virtual bool writeInt32(int code, int data) override;
virtual bool writeInt64(int code, unsigned long long int data); virtual bool writeInt64(int code, unsigned long long int data) override;
virtual bool writeDouble(int code, double data); virtual bool writeDouble(int code, double data) override;
virtual bool writeBool(int code, bool data); virtual bool writeBool(int code, bool data) override;
}; };
class dxfWriterAscii : public dxfWriter { class dxfWriterAscii : public dxfWriter {
public: public:
explicit dxfWriterAscii(std::ofstream *stream); explicit dxfWriterAscii(std::ofstream *stream);
virtual ~dxfWriterAscii() = default; virtual ~dxfWriterAscii() = default;
virtual bool writeString(int code, std::string text); virtual bool writeString(int code, std::string text) override;
virtual bool writeInt16(int code, int data); virtual bool writeInt16(int code, int data) override;
virtual bool writeInt32(int code, int data); virtual bool writeInt32(int code, int data) override;
virtual bool writeInt64(int code, unsigned long long int data); virtual bool writeInt64(int code, unsigned long long int data) override;
virtual bool writeDouble(int code, double data); virtual bool writeDouble(int code, double data) override;
virtual bool writeBool(int code, bool data); virtual bool writeBool(int code, bool data) override;
}; };
#endif // DXFWRITER_H #endif // DXFWRITER_H

View File

@ -57,19 +57,19 @@ public:
VDxfEngine(); VDxfEngine();
virtual ~VDxfEngine(); virtual ~VDxfEngine();
virtual bool begin(QPaintDevice *pdev) Q_DECL_OVERRIDE; virtual bool begin(QPaintDevice *pdev) override;
virtual bool end() Q_DECL_OVERRIDE; virtual bool end() override;
virtual void updateState(const QPaintEngineState &state) Q_DECL_OVERRIDE; virtual void updateState(const QPaintEngineState &state) override;
virtual void drawPath(const QPainterPath &path) Q_DECL_OVERRIDE; virtual void drawPath(const QPainterPath &path) override;
virtual void drawLines(const QLineF * lines, int lineCount) Q_DECL_OVERRIDE; virtual void drawLines(const QLineF * lines, int lineCount) override;
virtual void drawLines(const QLine * lines, int lineCount) Q_DECL_OVERRIDE; virtual void drawLines(const QLine * lines, int lineCount) override;
virtual void drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode) Q_DECL_OVERRIDE; virtual void drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode) override;
virtual void drawPolygon(const QPoint *points, int pointCount, PolygonDrawMode mode) Q_DECL_OVERRIDE; virtual void drawPolygon(const QPoint *points, int pointCount, PolygonDrawMode mode) override;
virtual void drawEllipse(const QRectF & rect) Q_DECL_OVERRIDE; virtual void drawEllipse(const QRectF & rect) override;
virtual void drawEllipse(const QRect & rect) Q_DECL_OVERRIDE; virtual void drawEllipse(const QRect & rect) override;
virtual void drawTextItem(const QPointF & p, const QTextItem & textItem) Q_DECL_OVERRIDE; virtual void drawTextItem(const QPointF & p, const QTextItem & textItem) override;
virtual Type type() const Q_DECL_OVERRIDE; virtual Type type() const override;
virtual void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) Q_DECL_OVERRIDE; virtual void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) override;
QSize getSize() const; QSize getSize() const;
void setSize(const QSize &value); void setSize(const QSize &value);

View File

@ -45,8 +45,8 @@ class VDxfPaintDevice : public QPaintDevice
{ {
public: public:
VDxfPaintDevice(); VDxfPaintDevice();
virtual ~VDxfPaintDevice() Q_DECL_OVERRIDE; virtual ~VDxfPaintDevice() override;
virtual QPaintEngine *paintEngine() const Q_DECL_OVERRIDE; virtual QPaintEngine *paintEngine() const override;
QString getFileName() const; QString getFileName() const;
void setFileName(const QString &value); void setFileName(const QString &value);
@ -69,7 +69,7 @@ public:
bool ExportToAAMA(const QVector<VLayoutPiece> &details) const; bool ExportToAAMA(const QVector<VLayoutPiece> &details) const;
protected: protected:
virtual int metric(PaintDeviceMetric metric) const Q_DECL_OVERRIDE; virtual int metric(PaintDeviceMetric metric) const override;
private: private:
Q_DISABLE_COPY(VDxfPaintDevice) Q_DISABLE_COPY(VDxfPaintDevice)
VDxfEngine *engine; VDxfEngine *engine;

View File

@ -51,8 +51,8 @@ public:
VMeasurements(Unit unit, int baseSize, int baseHeight, VContainer *data); VMeasurements(Unit unit, int baseSize, int baseHeight, VContainer *data);
virtual ~VMeasurements() Q_DECL_EQ_DEFAULT; virtual ~VMeasurements() Q_DECL_EQ_DEFAULT;
virtual void setXMLContent(const QString &fileName) Q_DECL_OVERRIDE; virtual void setXMLContent(const QString &fileName) override;
virtual bool SaveDocument(const QString &fileName, QString &error) Q_DECL_OVERRIDE; virtual bool SaveDocument(const QString &fileName, QString &error) override;
void AddEmpty(const QString &name, const QString &formula = QString()); void AddEmpty(const QString &name, const QString &formula = QString());
void AddEmptyAfter(const QString &after, const QString &name, const QString &formula = QString()); void AddEmptyAfter(const QString &after, const QString &name, const QString &formula = QString());

View File

@ -66,11 +66,11 @@ public:
QString GetFormulaF1 () const; QString GetFormulaF1 () const;
void SetFormulaF1 (const QString &formula, qreal value); void SetFormulaF1 (const QString &formula, qreal value);
virtual qreal GetStartAngle () const Q_DECL_OVERRIDE; virtual qreal GetStartAngle () const override;
QString GetFormulaF2 () const; QString GetFormulaF2 () const;
void SetFormulaF2 (const QString &formula, qreal value); void SetFormulaF2 (const QString &formula, qreal value);
virtual qreal GetEndAngle () const Q_DECL_OVERRIDE; virtual qreal GetEndAngle () const override;
virtual VPointF GetCenter () const; virtual VPointF GetCenter () const;
void SetCenter (const VPointF &point); void SetCenter (const VPointF &point);
@ -78,8 +78,8 @@ public:
QString GetFormulaLength () const; QString GetFormulaLength () const;
void SetFormulaLength (const QString &formula, qreal value); void SetFormulaLength (const QString &formula, qreal value);
virtual void setId(const quint32 &id) Q_DECL_OVERRIDE; virtual void setId(const quint32 &id) override;
virtual QString NameForHistory(const QString &toolName) const Q_DECL_OVERRIDE; virtual QString NameForHistory(const QString &toolName) const override;
bool IsFlipped() const; bool IsFlipped() const;
qreal AngleArc() const; qreal AngleArc() const;

View File

@ -56,13 +56,13 @@ public:
QPointF CutSpline ( qreal length, QPointF &spl1p2, QPointF &spl1p3, QPointF &spl2p2, QPointF &spl2p3) const; QPointF CutSpline ( qreal length, QPointF &spl1p2, QPointF &spl1p3, QPointF &spl2p2, QPointF &spl2p3) const;
virtual QString NameForHistory(const QString &toolName) const Q_DECL_OVERRIDE; virtual QString NameForHistory(const QString &toolName) const override;
qreal GetParmT(qreal length) const; qreal GetParmT(qreal length) const;
qreal LengthT(qreal t) const; qreal LengthT(qreal t) const;
protected: protected:
virtual void CreateName() Q_DECL_OVERRIDE; virtual void CreateName() override;
static qreal CalcSqDistance(qreal x1, qreal y1, qreal x2, qreal y2); static qreal CalcSqDistance(qreal x1, qreal y1, qreal x2, qreal y2);
static void PointBezier_r(qreal x1, qreal y1, qreal x2, qreal y2, qreal x3, qreal y3, qreal x4, static void PointBezier_r(qreal x1, qreal y1, qreal x2, qreal y2, qreal x3, qreal y3, qreal x4,

View File

@ -59,21 +59,21 @@ public:
virtual VSpline GetSpline(qint32 index) const =0; virtual VSpline GetSpline(qint32 index) const =0;
virtual QVector<VSplinePoint> GetSplinePath() const =0; virtual QVector<VSplinePoint> GetSplinePath() const =0;
virtual QPainterPath GetPath() const Q_DECL_OVERRIDE; virtual QPainterPath GetPath() const override;
virtual QVector<QPointF> GetPoints() const Q_DECL_OVERRIDE; virtual QVector<QPointF> GetPoints() const override;
virtual qreal GetLength() const Q_DECL_OVERRIDE; virtual qreal GetLength() const override;
virtual QVector<DirectionArrow> DirectionArrows() const Q_DECL_OVERRIDE; virtual QVector<DirectionArrow> DirectionArrows() const override;
int Segment(const QPointF &p) const; int Segment(const QPointF &p) const;
QPointF CutSplinePath(qreal length, qint32 &p1, qint32 &p2, QPointF &spl1p2, QPointF &spl1p3, QPointF &spl2p2, QPointF CutSplinePath(qreal length, qint32 &p1, qint32 &p2, QPointF &spl1p2, QPointF &spl1p3, QPointF &spl2p2,
QPointF &spl2p3) const; QPointF &spl2p3) const;
virtual QString NameForHistory(const QString &toolName) const Q_DECL_OVERRIDE; virtual QString NameForHistory(const QString &toolName) const override;
protected: protected:
virtual void CreateName() Q_DECL_OVERRIDE; virtual void CreateName() override;
virtual VPointF FirstPoint() const =0; virtual VPointF FirstPoint() const =0;
virtual VPointF LastPoint() const =0; virtual VPointF LastPoint() const =0;

View File

@ -53,7 +53,7 @@ public:
explicit VAbstractCurve(const GOType &type, const quint32 &idObject = NULL_ID, explicit VAbstractCurve(const GOType &type, const quint32 &idObject = NULL_ID,
const Draw &mode = Draw::Calculation); const Draw &mode = Draw::Calculation);
explicit VAbstractCurve(const VAbstractCurve &curve); explicit VAbstractCurve(const VAbstractCurve &curve);
virtual ~VAbstractCurve() Q_DECL_OVERRIDE; virtual ~VAbstractCurve() override;
VAbstractCurve& operator= (const VAbstractCurve &curve); VAbstractCurve& operator= (const VAbstractCurve &curve);
#ifdef Q_COMPILER_RVALUE_REFS #ifdef Q_COMPILER_RVALUE_REFS

View File

@ -62,7 +62,7 @@ public:
VArc Rotate(const QPointF &originPoint, qreal degrees, const QString &prefix = QString()) const; VArc Rotate(const QPointF &originPoint, qreal degrees, const QString &prefix = QString()) const;
VArc Flip(const QLineF &axis, const QString &prefix = QString()) const; VArc Flip(const QLineF &axis, const QString &prefix = QString()) const;
VArc Move(qreal length, qreal angle, const QString &prefix = QString()) const; VArc Move(qreal length, qreal angle, const QString &prefix = QString()) const;
virtual ~VArc() Q_DECL_OVERRIDE; virtual ~VArc() override;
VArc& operator= (const VArc &arc); VArc& operator= (const VArc &arc);
#ifdef Q_COMPILER_RVALUE_REFS #ifdef Q_COMPILER_RVALUE_REFS
@ -76,18 +76,18 @@ public:
void SetFormulaRadius (const QString &formula, qreal value); void SetFormulaRadius (const QString &formula, qreal value);
qreal GetRadius () const; qreal GetRadius () const;
virtual qreal GetLength () const Q_DECL_OVERRIDE; virtual qreal GetLength () const override;
QPointF GetP1() const; QPointF GetP1() const;
QPointF GetP2 () const; QPointF GetP2 () const;
virtual QVector<QPointF> GetPoints () const Q_DECL_OVERRIDE; virtual QVector<QPointF> GetPoints () const override;
QPointF CutArc (const qreal &length, VArc &arc1, VArc &arc2) const; QPointF CutArc (const qreal &length, VArc &arc1, VArc &arc2) const;
QPointF CutArc (const qreal &length) const; QPointF CutArc (const qreal &length) const;
protected: protected:
virtual void CreateName() Q_DECL_OVERRIDE; virtual void CreateName() override;
virtual void FindF2(qreal length) Q_DECL_OVERRIDE; virtual void FindF2(qreal length) override;
private: private:
QSharedDataPointer<VArcData> d; QSharedDataPointer<VArcData> d;

View File

@ -63,29 +63,29 @@ public:
inline void Swap(VCubicBezier &curve) Q_DECL_NOTHROW inline void Swap(VCubicBezier &curve) Q_DECL_NOTHROW
{ VAbstractCubicBezier::Swap(curve); std::swap(d, curve.d); } { VAbstractCubicBezier::Swap(curve); std::swap(d, curve.d); }
virtual VPointF GetP1() const Q_DECL_OVERRIDE; virtual VPointF GetP1() const override;
void SetP1(const VPointF &p); void SetP1(const VPointF &p);
virtual VPointF GetP2() const Q_DECL_OVERRIDE; virtual VPointF GetP2() const override;
void SetP2(const VPointF &p); void SetP2(const VPointF &p);
virtual VPointF GetP3() const Q_DECL_OVERRIDE; virtual VPointF GetP3() const override;
void SetP3(const VPointF &p); void SetP3(const VPointF &p);
virtual VPointF GetP4() const Q_DECL_OVERRIDE; virtual VPointF GetP4() const override;
void SetP4(const VPointF &p); void SetP4(const VPointF &p);
virtual qreal GetStartAngle() const Q_DECL_OVERRIDE; virtual qreal GetStartAngle() const override;
virtual qreal GetEndAngle() const Q_DECL_OVERRIDE; virtual qreal GetEndAngle() const override;
virtual qreal GetLength() const Q_DECL_OVERRIDE; virtual qreal GetLength() const override;
virtual QVector<QPointF> GetPoints() const Q_DECL_OVERRIDE; virtual QVector<QPointF> GetPoints() const override;
virtual qreal GetC1Length() const Q_DECL_OVERRIDE; virtual qreal GetC1Length() const override;
virtual qreal GetC2Length() const Q_DECL_OVERRIDE; virtual qreal GetC2Length() const override;
protected: protected:
virtual QPointF GetControlPoint1() const Q_DECL_OVERRIDE; virtual QPointF GetControlPoint1() const override;
virtual QPointF GetControlPoint2() const Q_DECL_OVERRIDE; virtual QPointF GetControlPoint2() const override;
private: private:
QSharedDataPointer<VCubicBezierData> d; QSharedDataPointer<VCubicBezierData> d;

View File

@ -70,25 +70,25 @@ public:
void append(const VPointF &point); void append(const VPointF &point);
virtual qint32 CountSubSpl() const Q_DECL_OVERRIDE; virtual qint32 CountSubSpl() const override;
virtual qint32 CountPoints() const Q_DECL_OVERRIDE; virtual qint32 CountPoints() const override;
virtual void Clear() Q_DECL_OVERRIDE; virtual void Clear() override;
virtual VSpline GetSpline(qint32 index) const Q_DECL_OVERRIDE; virtual VSpline GetSpline(qint32 index) const override;
virtual qreal GetStartAngle () const Q_DECL_OVERRIDE; virtual qreal GetStartAngle () const override;
virtual qreal GetEndAngle () const Q_DECL_OVERRIDE; virtual qreal GetEndAngle () const override;
virtual qreal GetC1Length() const Q_DECL_OVERRIDE; virtual qreal GetC1Length() const override;
virtual qreal GetC2Length() const Q_DECL_OVERRIDE; virtual qreal GetC2Length() const override;
virtual QVector<VSplinePoint> GetSplinePath() const Q_DECL_OVERRIDE; virtual QVector<VSplinePoint> GetSplinePath() const override;
QVector<VPointF> GetCubicPath() const; QVector<VPointF> GetCubicPath() const;
static qint32 CountSubSpl(qint32 size); static qint32 CountSubSpl(qint32 size);
static qint32 SubSplOffset(qint32 subSplIndex); static qint32 SubSplOffset(qint32 subSplIndex);
static qint32 SubSplPointsCount(qint32 countSubSpl); static qint32 SubSplPointsCount(qint32 countSubSpl);
protected: protected:
virtual VPointF FirstPoint() const Q_DECL_OVERRIDE; virtual VPointF FirstPoint() const override;
virtual VPointF LastPoint() const Q_DECL_OVERRIDE; virtual VPointF LastPoint() const override;
private: private:
QSharedDataPointer<VCubicBezierPathData> d; QSharedDataPointer<VCubicBezierPathData> d;
}; };

View File

@ -65,7 +65,7 @@ public:
VEllipticalArc Flip(const QLineF &axis, const QString &prefix = QString()) const; VEllipticalArc Flip(const QLineF &axis, const QString &prefix = QString()) const;
VEllipticalArc Move(qreal length, qreal angle, const QString &prefix = QString()) const; VEllipticalArc Move(qreal length, qreal angle, const QString &prefix = QString()) const;
virtual ~VEllipticalArc() Q_DECL_OVERRIDE; virtual ~VEllipticalArc() override;
VEllipticalArc& operator= (const VEllipticalArc &arc); VEllipticalArc& operator= (const VEllipticalArc &arc);
#ifdef Q_COMPILER_RVALUE_REFS #ifdef Q_COMPILER_RVALUE_REFS
@ -87,7 +87,7 @@ public:
void SetFormulaRadius2 (const QString &formula, qreal value); void SetFormulaRadius2 (const QString &formula, qreal value);
qreal GetRadius2 () const; qreal GetRadius2 () const;
virtual qreal GetLength () const Q_DECL_OVERRIDE; virtual qreal GetLength () const override;
QPointF GetP1() const; QPointF GetP1() const;
QPointF GetP2() const; QPointF GetP2() const;
@ -95,18 +95,18 @@ public:
QTransform GetTransform() const; QTransform GetTransform() const;
void SetTransform(const QTransform &matrix, bool combine = false); void SetTransform(const QTransform &matrix, bool combine = false);
virtual VPointF GetCenter () const Q_DECL_OVERRIDE; virtual VPointF GetCenter () const override;
virtual QVector<QPointF> GetPoints () const Q_DECL_OVERRIDE; virtual QVector<QPointF> GetPoints () const override;
virtual qreal GetStartAngle () const Q_DECL_OVERRIDE; virtual qreal GetStartAngle () const override;
virtual qreal GetEndAngle () const Q_DECL_OVERRIDE; virtual qreal GetEndAngle () const override;
QPointF CutArc (const qreal &length, VEllipticalArc &arc1, VEllipticalArc &arc2) const; QPointF CutArc (const qreal &length, VEllipticalArc &arc1, VEllipticalArc &arc2) const;
QPointF CutArc (const qreal &length) const; QPointF CutArc (const qreal &length) const;
static qreal OptimizeAngle(qreal angle); static qreal OptimizeAngle(qreal angle);
protected: protected:
virtual void CreateName() Q_DECL_OVERRIDE; virtual void CreateName() override;
virtual void FindF2(qreal length) Q_DECL_OVERRIDE; virtual void FindF2(qreal length) override;
private: private:
QSharedDataPointer<VEllipticalArcData> d; QSharedDataPointer<VEllipticalArcData> d;

View File

@ -43,7 +43,7 @@ class VPlaceLabelItem : public VPointF
public: public:
VPlaceLabelItem(); VPlaceLabelItem();
VPlaceLabelItem(const VPlaceLabelItem &item); VPlaceLabelItem(const VPlaceLabelItem &item);
virtual ~VPlaceLabelItem() Q_DECL_OVERRIDE; virtual ~VPlaceLabelItem() override;
VPlaceLabelItem &operator=(const VPlaceLabelItem &item); VPlaceLabelItem &operator=(const VPlaceLabelItem &item);
#ifdef Q_COMPILER_RVALUE_REFS #ifdef Q_COMPILER_RVALUE_REFS

View File

@ -58,7 +58,7 @@ public:
const Draw &mode = Draw::Calculation); const Draw &mode = Draw::Calculation);
VPointF (const QPointF &point, const QString &name, qreal mx, qreal my, quint32 idObject = 0, VPointF (const QPointF &point, const QString &name, qreal mx, qreal my, quint32 idObject = 0,
const Draw &mode = Draw::Calculation); const Draw &mode = Draw::Calculation);
virtual ~VPointF() Q_DECL_OVERRIDE; virtual ~VPointF() override;
VPointF &operator=(const VPointF &point); VPointF &operator=(const VPointF &point);
#ifdef Q_COMPILER_RVALUE_REFS #ifdef Q_COMPILER_RVALUE_REFS

View File

@ -73,17 +73,17 @@ public:
inline void Swap(VSpline &spline) Q_DECL_NOTHROW inline void Swap(VSpline &spline) Q_DECL_NOTHROW
{ VAbstractCubicBezier::Swap(spline); std::swap(d, spline.d); } { VAbstractCubicBezier::Swap(spline); std::swap(d, spline.d); }
virtual VPointF GetP1 () const Q_DECL_OVERRIDE; virtual VPointF GetP1 () const override;
void SetP1 (const VPointF &p); void SetP1 (const VPointF &p);
virtual VPointF GetP2 () const Q_DECL_OVERRIDE; virtual VPointF GetP2 () const override;
virtual VPointF GetP3 () const Q_DECL_OVERRIDE; virtual VPointF GetP3 () const override;
virtual VPointF GetP4 () const Q_DECL_OVERRIDE; virtual VPointF GetP4 () const override;
void SetP4 (const VPointF &p); void SetP4 (const VPointF &p);
virtual qreal GetStartAngle () const Q_DECL_OVERRIDE; virtual qreal GetStartAngle () const override;
virtual qreal GetEndAngle() const Q_DECL_OVERRIDE; virtual qreal GetEndAngle() const override;
QString GetStartAngleFormula () const; QString GetStartAngleFormula () const;
QString GetEndAngleFormula() const; QString GetEndAngleFormula() const;
@ -91,8 +91,8 @@ public:
void SetStartAngle(qreal angle, const QString &formula); void SetStartAngle(qreal angle, const QString &formula);
void SetEndAngle(qreal angle, const QString &formula); void SetEndAngle(qreal angle, const QString &formula);
virtual qreal GetC1Length() const Q_DECL_OVERRIDE; virtual qreal GetC1Length() const override;
virtual qreal GetC2Length() const Q_DECL_OVERRIDE; virtual qreal GetC2Length() const override;
QString GetC1LengthFormula() const; QString GetC1LengthFormula() const;
QString GetC2LengthFormula() const; QString GetC2LengthFormula() const;
@ -100,7 +100,7 @@ public:
void SetC1Length(qreal length, const QString &formula); void SetC1Length(qreal length, const QString &formula);
void SetC2Length(qreal length, const QString &formula); void SetC2Length(qreal length, const QString &formula);
virtual qreal GetLength () const Q_DECL_OVERRIDE; virtual qreal GetLength () const override;
qreal GetKasm1() const; qreal GetKasm1() const;
qreal GetKasm2() const; qreal GetKasm2() const;
qreal GetKcurve() const; qreal GetKcurve() const;
@ -108,15 +108,15 @@ public:
using VAbstractCubicBezier::CutSpline; using VAbstractCubicBezier::CutSpline;
QPointF CutSpline ( qreal length, VSpline &spl1, VSpline &spl2) const; QPointF CutSpline ( qreal length, VSpline &spl1, VSpline &spl2) const;
virtual QVector<QPointF> GetPoints () const Q_DECL_OVERRIDE; virtual QVector<QPointF> GetPoints () const override;
// cppcheck-suppress unusedFunction // cppcheck-suppress unusedFunction
static QVector<QPointF> SplinePoints(const QPointF &p1, const QPointF &p4, qreal angle1, qreal angle2, qreal kAsm1, static QVector<QPointF> SplinePoints(const QPointF &p1, const QPointF &p4, qreal angle1, qreal angle2, qreal kAsm1,
qreal kAsm2, qreal kCurve, qreal approximationScale); qreal kAsm2, qreal kCurve, qreal approximationScale);
qreal ParamT(const QPointF &pBt) const; qreal ParamT(const QPointF &pBt) const;
protected: protected:
virtual QPointF GetControlPoint1() const Q_DECL_OVERRIDE; virtual QPointF GetControlPoint1() const override;
virtual QPointF GetControlPoint2() const Q_DECL_OVERRIDE; virtual QPointF GetControlPoint2() const override;
private: private:
QSharedDataPointer<VSplineData> d; QSharedDataPointer<VSplineData> d;
QVector<qreal> CalcT(qreal curveCoord1, qreal curveCoord2, qreal curveCoord3, qreal curveCoord4, QVector<qreal> CalcT(qreal curveCoord1, qreal curveCoord2, qreal curveCoord3, qreal curveCoord4,

View File

@ -62,7 +62,7 @@ public:
VSplinePath Rotate(const QPointF &originPoint, qreal degrees, const QString &prefix = QString()) const; VSplinePath Rotate(const QPointF &originPoint, qreal degrees, const QString &prefix = QString()) const;
VSplinePath Flip(const QLineF &axis, const QString &prefix = QString()) const; VSplinePath Flip(const QLineF &axis, const QString &prefix = QString()) const;
VSplinePath Move(qreal length, qreal angle, const QString &prefix = QString()) const; VSplinePath Move(qreal length, qreal angle, const QString &prefix = QString()) const;
virtual ~VSplinePath() Q_DECL_OVERRIDE; virtual ~VSplinePath() override;
VSplinePoint &operator[](int indx); VSplinePoint &operator[](int indx);
VSplinePath &operator=(const VSplinePath &path); VSplinePath &operator=(const VSplinePath &path);
@ -75,27 +75,27 @@ public:
void append(const VSplinePoint &point); void append(const VSplinePoint &point);
virtual qint32 CountSubSpl() const Q_DECL_OVERRIDE; virtual qint32 CountSubSpl() const override;
virtual qint32 CountPoints() const Q_DECL_OVERRIDE; virtual qint32 CountPoints() const override;
virtual void Clear() Q_DECL_OVERRIDE; virtual void Clear() override;
virtual VSpline GetSpline(qint32 index) const Q_DECL_OVERRIDE; virtual VSpline GetSpline(qint32 index) const override;
virtual QVector<VSplinePoint> GetSplinePath() const Q_DECL_OVERRIDE; virtual QVector<VSplinePoint> GetSplinePath() const override;
QVector<VFSplinePoint> GetFSplinePath() const; QVector<VFSplinePoint> GetFSplinePath() const;
virtual qreal GetStartAngle () const Q_DECL_OVERRIDE; virtual qreal GetStartAngle () const override;
virtual qreal GetEndAngle () const Q_DECL_OVERRIDE; virtual qreal GetEndAngle () const override;
virtual qreal GetC1Length() const Q_DECL_OVERRIDE; virtual qreal GetC1Length() const override;
virtual qreal GetC2Length() const Q_DECL_OVERRIDE; virtual qreal GetC2Length() const override;
void UpdatePoint(qint32 indexSpline, const SplinePointPosition &pos, const VSplinePoint &point); void UpdatePoint(qint32 indexSpline, const SplinePointPosition &pos, const VSplinePoint &point);
VSplinePoint GetSplinePoint(qint32 indexSpline, SplinePointPosition pos) const; VSplinePoint GetSplinePoint(qint32 indexSpline, SplinePointPosition pos) const;
const VSplinePoint &at(int indx) const; const VSplinePoint &at(int indx) const;
protected: protected:
virtual VPointF FirstPoint() const Q_DECL_OVERRIDE; virtual VPointF FirstPoint() const override;
virtual VPointF LastPoint() const Q_DECL_OVERRIDE; virtual VPointF LastPoint() const override;
private: private:
QSharedDataPointer<VSplinePathData> d; QSharedDataPointer<VSplinePathData> d;
}; };

View File

@ -58,7 +58,7 @@ class VLayoutGenerator :public QObject
Q_OBJECT Q_OBJECT
public: public:
explicit VLayoutGenerator(QObject *parent = nullptr); explicit VLayoutGenerator(QObject *parent = nullptr);
virtual ~VLayoutGenerator() Q_DECL_OVERRIDE; virtual ~VLayoutGenerator() override;
void SetDetails(const QVector<VLayoutPiece> &details); void SetDetails(const QVector<VLayoutPiece> &details);
void SetLayoutWidth(qreal width); void SetLayoutWidth(qreal width);

View File

@ -61,7 +61,7 @@ public:
VLayoutPiece(); VLayoutPiece();
VLayoutPiece(const VLayoutPiece &detail); VLayoutPiece(const VLayoutPiece &detail);
virtual ~VLayoutPiece() Q_DECL_OVERRIDE; virtual ~VLayoutPiece() override;
VLayoutPiece &operator=(const VLayoutPiece &detail); VLayoutPiece &operator=(const VLayoutPiece &detail);
#ifdef Q_COMPILER_RVALUE_REFS #ifdef Q_COMPILER_RVALUE_REFS

View File

@ -45,7 +45,7 @@ class VPosition : public QRunnable
public: public:
VPosition(const VContour &gContour, int j, const VLayoutPiece &detail, int i, std::atomic_bool *stop, bool rotate, VPosition(const VContour &gContour, int j, const VLayoutPiece &detail, int i, std::atomic_bool *stop, bool rotate,
int rotationIncrease, bool saveLength); int rotationIncrease, bool saveLength);
virtual ~VPosition() Q_DECL_OVERRIDE{} virtual ~VPosition() override{}
quint32 getPaperIndex() const; quint32 getPaperIndex() const;
void setPaperIndex(const quint32 &value); void setPaperIndex(const quint32 &value);
@ -98,7 +98,7 @@ private:
EdgeError = 2 EdgeError = 2
}; };
virtual void run() Q_DECL_OVERRIDE; virtual void run() override;
void SaveCandidate(VBestSquare &bestResult, const VLayoutPiece &detail, int globalI, int detJ, BestFrom type); void SaveCandidate(VBestSquare &bestResult, const VLayoutPiece &detail, int globalI, int detJ, BestFrom type);

View File

@ -59,8 +59,8 @@ public:
static QString MakeHelpSeparatorList(); static QString MakeHelpSeparatorList();
protected: protected:
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE; virtual void changeEvent(QEvent* event) override;
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE; virtual void showEvent(QShowEvent *event) override;
private: private:
Q_DISABLE_COPY(DialogExportToCSV) Q_DISABLE_COPY(DialogExportToCSV)

View File

@ -61,14 +61,14 @@ public:
QChar separator = ',', QTextCodec *codec = nullptr); QChar separator = ',', QTextCodec *codec = nullptr);
virtual ~QxtCsvModel() Q_DECL_EQ_DEFAULT; virtual ~QxtCsvModel() Q_DECL_EQ_DEFAULT;
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const Q_DECL_OVERRIDE; virtual int rowCount(const QModelIndex& parent = QModelIndex()) const override;
virtual int columnCount(const QModelIndex& parent = QModelIndex()) const Q_DECL_OVERRIDE; virtual int columnCount(const QModelIndex& parent = QModelIndex()) const override;
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
virtual bool setData(const QModelIndex& index, const QVariant& data, int role = Qt::EditRole) Q_DECL_OVERRIDE; virtual bool setData(const QModelIndex& index, const QVariant& data, int role = Qt::EditRole) override;
virtual QVariant headerData(int section, Qt::Orientation orientation, virtual QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; int role = Qt::DisplayRole) const override;
virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value,
int role = Qt::DisplayRole) Q_DECL_OVERRIDE; int role = Qt::DisplayRole) override;
void setHeaderData(const QStringList& data); void setHeaderData(const QStringList& data);
QString text(int row, int column) const; QString text(int row, int column) const;
@ -79,16 +79,16 @@ public:
bool insertRow(int row, const QModelIndex& parent = QModelIndex()); bool insertRow(int row, const QModelIndex& parent = QModelIndex());
virtual bool insertRows(int row, int count, const QModelIndex& parent = QModelIndex()) Q_DECL_OVERRIDE; virtual bool insertRows(int row, int count, const QModelIndex& parent = QModelIndex()) override;
bool removeRow(int row, const QModelIndex& parent = QModelIndex()); bool removeRow(int row, const QModelIndex& parent = QModelIndex());
virtual bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) Q_DECL_OVERRIDE; virtual bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) override;
bool insertColumn(int col, const QModelIndex& parent = QModelIndex()); bool insertColumn(int col, const QModelIndex& parent = QModelIndex());
virtual bool insertColumns(int col, int count, const QModelIndex& parent = QModelIndex()) Q_DECL_OVERRIDE; virtual bool insertColumns(int col, int count, const QModelIndex& parent = QModelIndex()) override;
bool removeColumn(int col, const QModelIndex& parent = QModelIndex()); bool removeColumn(int col, const QModelIndex& parent = QModelIndex());
virtual bool removeColumns(int col, int count, const QModelIndex& parent = QModelIndex()) Q_DECL_OVERRIDE; virtual bool removeColumns(int col, int count, const QModelIndex& parent = QModelIndex()) override;
void setSource(QIODevice *file, bool withHeader = false, QChar separator = ',', QTextCodec* codec = nullptr); void setSource(QIODevice *file, bool withHeader = false, QChar separator = ',', QTextCodec* codec = nullptr);
void setSource(const QString &filename, bool withHeader = false, QChar separator = ',', void setSource(const QString &filename, bool withHeader = false, QChar separator = ',',
@ -113,7 +113,7 @@ public:
QuoteMode quoteMode() const; QuoteMode quoteMode() const;
void setQuoteMode(QuoteMode mode); void setQuoteMode(QuoteMode mode);
virtual Qt::ItemFlags flags(const QModelIndex& index) const Q_DECL_OVERRIDE; virtual Qt::ItemFlags flags(const QModelIndex& index) const override;
private: private:
Q_DISABLE_COPY(QxtCsvModel) Q_DISABLE_COPY(QxtCsvModel)

View File

@ -54,23 +54,23 @@ public:
virtual ~TestVApplication() Q_DECL_EQ_DEFAULT; virtual ~TestVApplication() Q_DECL_EQ_DEFAULT;
virtual const VTranslateVars *TrVars() Q_DECL_OVERRIDE virtual const VTranslateVars *TrVars() override
{ {
return m_trVars; return m_trVars;
} }
virtual void OpenSettings() Q_DECL_OVERRIDE virtual void OpenSettings() override
{ {
settings = new VSettings(QSettings::IniFormat, QSettings::UserScope, QCoreApplication::organizationName(), settings = new VSettings(QSettings::IniFormat, QSettings::UserScope, QCoreApplication::organizationName(),
QCoreApplication::applicationName(), this); QCoreApplication::applicationName(), this);
} }
virtual bool IsAppInGUIMode() const Q_DECL_OVERRIDE virtual bool IsAppInGUIMode() const override
{ {
return false; return false;
} }
virtual void InitTrVars() Q_DECL_OVERRIDE virtual void InitTrVars() override
{} {}
void SetTrVars(VTranslateVars *trVars) void SetTrVars(VTranslateVars *trVars)

View File

@ -62,7 +62,7 @@ class VAbstractApplication : public QApplication
Q_OBJECT Q_OBJECT
public: public:
VAbstractApplication(int &argc, char ** argv); VAbstractApplication(int &argc, char ** argv);
virtual ~VAbstractApplication() Q_DECL_OVERRIDE; virtual ~VAbstractApplication() override;
virtual const VTranslateVars *TrVars()=0; virtual const VTranslateVars *TrVars()=0;

View File

@ -48,18 +48,18 @@ class VObjEngine : public QPaintEngine
{ {
public: public:
VObjEngine(); VObjEngine();
virtual ~VObjEngine() Q_DECL_OVERRIDE; virtual ~VObjEngine() override;
virtual bool begin(QPaintDevice *pdev) Q_DECL_OVERRIDE; virtual bool begin(QPaintDevice *pdev) override;
virtual bool end() Q_DECL_OVERRIDE; virtual bool end() override;
virtual void updateState(const QPaintEngineState &state) Q_DECL_OVERRIDE; virtual void updateState(const QPaintEngineState &state) override;
virtual void drawPath(const QPainterPath &path) Q_DECL_OVERRIDE; virtual void drawPath(const QPainterPath &path) override;
virtual Type type() const Q_DECL_OVERRIDE; virtual Type type() const override;
virtual void drawPoints(const QPointF *points, int pointCount) Q_DECL_OVERRIDE; virtual void drawPoints(const QPointF *points, int pointCount) override;
virtual void drawPoints(const QPoint *points, int pointCount) Q_DECL_OVERRIDE; virtual void drawPoints(const QPoint *points, int pointCount) override;
virtual void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) Q_DECL_OVERRIDE; virtual void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr) override;
virtual void drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode) Q_DECL_OVERRIDE; virtual void drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode) override;
virtual void drawPolygon(const QPoint *points, int pointCount, PolygonDrawMode mode) Q_DECL_OVERRIDE; virtual void drawPolygon(const QPoint *points, int pointCount, PolygonDrawMode mode) override;
QSize getSize() const; QSize getSize() const;
void setSize(const QSize &value); void setSize(const QSize &value);

View File

@ -43,8 +43,8 @@ class VObjPaintDevice : public QPaintDevice
{ {
public: public:
VObjPaintDevice(); VObjPaintDevice();
virtual ~VObjPaintDevice() Q_DECL_OVERRIDE; virtual ~VObjPaintDevice() override;
virtual QPaintEngine *paintEngine() const Q_DECL_OVERRIDE; virtual QPaintEngine *paintEngine() const override;
QString getFileName() const; QString getFileName() const;
void setFileName(const QString &value); void setFileName(const QString &value);
@ -59,7 +59,7 @@ public:
void setResolution(int dpi); void setResolution(int dpi);
protected: protected:
virtual int metric(PaintDeviceMetric metric) const Q_DECL_OVERRIDE; virtual int metric(PaintDeviceMetric metric) const override;
private: private:
Q_DISABLE_COPY(VObjPaintDevice) Q_DISABLE_COPY(VObjPaintDevice)
QSharedPointer<VObjEngine> engine; QSharedPointer<VObjEngine> engine;

View File

@ -48,7 +48,7 @@ public:
Unit patternUnit); Unit patternUnit);
VArcRadius(const VArcRadius &var); VArcRadius(const VArcRadius &var);
VArcRadius &operator=(const VArcRadius &var); VArcRadius &operator=(const VArcRadius &var);
virtual ~VArcRadius() Q_DECL_OVERRIDE; virtual ~VArcRadius() override;
}; };
#endif // VARCRADIUS_H #endif // VARCRADIUS_H

View File

@ -53,7 +53,7 @@ public:
:QSharedData(var), arcId(var.arcId) :QSharedData(var), arcId(var.arcId)
{} {}
virtual ~VArcRadiusData() Q_DECL_OVERRIDE; virtual ~VArcRadiusData() override;
quint32 arcId; quint32 arcId;

View File

@ -50,7 +50,7 @@ public:
CurveCLength cType, Unit patternUnit, qint32 segment); CurveCLength cType, Unit patternUnit, qint32 segment);
VCurveCLength(const VCurveCLength &var); VCurveCLength(const VCurveCLength &var);
VCurveCLength &operator=(const VCurveCLength &var); VCurveCLength &operator=(const VCurveCLength &var);
virtual ~VCurveCLength() Q_DECL_OVERRIDE; virtual ~VCurveCLength() override;
}; };
#endif // VCURVECLENGTH_H #endif // VCURVECLENGTH_H

View File

@ -49,7 +49,7 @@ public:
Unit patternUnit, qint32 segment); Unit patternUnit, qint32 segment);
VCurveLength(const VCurveLength &var); VCurveLength(const VCurveLength &var);
VCurveLength &operator=(const VCurveLength &var); VCurveLength &operator=(const VCurveLength &var);
virtual ~VCurveLength() Q_DECL_OVERRIDE; virtual ~VCurveLength() override;
}; };
#endif // VCURVELENGTH_H #endif // VCURVELENGTH_H

View File

@ -45,7 +45,7 @@ public:
VCurveVariable(const quint32 &id, const quint32 &parentId); VCurveVariable(const quint32 &id, const quint32 &parentId);
VCurveVariable(const VCurveVariable &var); VCurveVariable(const VCurveVariable &var);
virtual ~VCurveVariable() Q_DECL_OVERRIDE; virtual ~VCurveVariable() override;
VCurveVariable &operator=(const VCurveVariable &var); VCurveVariable &operator=(const VCurveVariable &var);
#ifdef Q_COMPILER_RVALUE_REFS #ifdef Q_COMPILER_RVALUE_REFS
@ -55,7 +55,7 @@ public:
inline void Swap(VCurveVariable &var) Q_DECL_NOTHROW inline void Swap(VCurveVariable &var) Q_DECL_NOTHROW
{ VInternalVariable::Swap(var); std::swap(d, var.d); } { VInternalVariable::Swap(var); std::swap(d, var.d); }
virtual bool Filter(quint32 id) Q_DECL_OVERRIDE; virtual bool Filter(quint32 id) override;
quint32 GetId() const; quint32 GetId() const;
void SetId(const quint32 &id); void SetId(const quint32 &id);

View File

@ -51,7 +51,7 @@ public:
const QString &description = QString()); const QString &description = QString());
VIncrement(const VIncrement &incr); VIncrement(const VIncrement &incr);
virtual ~VIncrement() Q_DECL_OVERRIDE; virtual ~VIncrement() override;
VIncrement &operator=(const VIncrement &incr); VIncrement &operator=(const VIncrement &incr);
#ifdef Q_COMPILER_RVALUE_REFS #ifdef Q_COMPILER_RVALUE_REFS

View File

@ -46,7 +46,7 @@ public:
VLineAngle(const VPointF *p1, const quint32 &p1Id, const VPointF *p2, const quint32 &p2Id); VLineAngle(const VPointF *p1, const quint32 &p1Id, const VPointF *p2, const quint32 &p2Id);
VLineAngle(const VLineAngle &var); VLineAngle(const VLineAngle &var);
virtual ~VLineAngle() Q_DECL_OVERRIDE; virtual ~VLineAngle() override;
VLineAngle &operator=(const VLineAngle &var); VLineAngle &operator=(const VLineAngle &var);
#ifdef Q_COMPILER_RVALUE_REFS #ifdef Q_COMPILER_RVALUE_REFS
@ -56,7 +56,7 @@ public:
inline void Swap(VLineAngle &var) Q_DECL_NOTHROW inline void Swap(VLineAngle &var) Q_DECL_NOTHROW
{ VInternalVariable::Swap(var); std::swap(d, var.d); } { VInternalVariable::Swap(var); std::swap(d, var.d); }
virtual bool Filter(quint32 id) Q_DECL_OVERRIDE; virtual bool Filter(quint32 id) override;
void SetValue(const VPointF *p1, const VPointF *p2); void SetValue(const VPointF *p1, const VPointF *p2);
quint32 GetP1Id() const; quint32 GetP1Id() const;
quint32 GetP2Id() const; quint32 GetP2Id() const;

View File

@ -48,7 +48,7 @@ public:
VLengthLine(const VPointF *p1, const quint32 &p1Id, const VPointF *p2, const quint32 &p2Id, Unit patternUnit); VLengthLine(const VPointF *p1, const quint32 &p1Id, const VPointF *p2, const quint32 &p2Id, Unit patternUnit);
VLengthLine(const VLengthLine &var); VLengthLine(const VLengthLine &var);
virtual ~VLengthLine() Q_DECL_OVERRIDE; virtual ~VLengthLine() override;
VLengthLine &operator=(const VLengthLine &var); VLengthLine &operator=(const VLengthLine &var);
#ifdef Q_COMPILER_RVALUE_REFS #ifdef Q_COMPILER_RVALUE_REFS
@ -58,7 +58,7 @@ public:
inline void Swap(VLengthLine &var) Q_DECL_NOTHROW inline void Swap(VLengthLine &var) Q_DECL_NOTHROW
{ VInternalVariable::Swap(var); std::swap(d, var.d); } { VInternalVariable::Swap(var); std::swap(d, var.d); }
virtual bool Filter(quint32 id) Q_DECL_OVERRIDE; virtual bool Filter(quint32 id) override;
void SetValue(const VPointF *p1, const VPointF *p2); void SetValue(const VPointF *p1, const VPointF *p2);
quint32 GetP1Id() const; quint32 GetP1Id() const;
quint32 GetP2Id() const; quint32 GetP2Id() const;

View File

@ -58,7 +58,7 @@ public:
const QString &tagName = QString()); const QString &tagName = QString());
VMeasurement(const VMeasurement &m); VMeasurement(const VMeasurement &m);
virtual ~VMeasurement() Q_DECL_OVERRIDE; virtual ~VMeasurement() override;
VMeasurement &operator=(const VMeasurement &m); VMeasurement &operator=(const VMeasurement &m);
#ifdef Q_COMPILER_RVALUE_REFS #ifdef Q_COMPILER_RVALUE_REFS
@ -80,10 +80,10 @@ public:
int Index() const; int Index() const;
bool IsFormulaOk() const; bool IsFormulaOk() const;
virtual bool IsNotUsed() const Q_DECL_OVERRIDE; virtual bool IsNotUsed() const override;
virtual qreal GetValue() const Q_DECL_OVERRIDE; virtual qreal GetValue() const override;
virtual qreal* GetValue() Q_DECL_OVERRIDE; virtual qreal* GetValue() override;
VContainer *GetData(); VContainer *GetData();

View File

@ -48,7 +48,7 @@ public:
VVariable(const QString &name, const QString &description = QString()); VVariable(const QString &name, const QString &description = QString());
VVariable(const VVariable &var); VVariable(const VVariable &var);
virtual ~VVariable() Q_DECL_OVERRIDE; virtual ~VVariable() override;
VVariable &operator=(const VVariable &var); VVariable &operator=(const VVariable &var);
#ifdef Q_COMPILER_RVALUE_REFS #ifdef Q_COMPILER_RVALUE_REFS

View File

@ -63,7 +63,7 @@ public:
QString FormulaToUser(const QString &formula, bool osSeparator) const; QString FormulaToUser(const QString &formula, bool osSeparator) const;
static QString TryFormulaToUser(const QString &formula, bool osSeparator); static QString TryFormulaToUser(const QString &formula, bool osSeparator);
virtual void Retranslate() Q_DECL_OVERRIDE; virtual void Retranslate() override;
QMap<QString, QString> GetTranslatedFunctions() const; QMap<QString, QString> GetTranslatedFunctions() const;
QMap<QString, qmu::QmuTranslation> GetFunctions() const; QMap<QString, qmu::QmuTranslation> GetFunctions() const;

View File

@ -50,7 +50,7 @@ class VPROPERTYEXPLORERSHARED_EXPORT CheckableMessageBox : public QDialog
public: public:
explicit CheckableMessageBox(QWidget *parent); explicit CheckableMessageBox(QWidget *parent);
virtual ~CheckableMessageBox() Q_DECL_OVERRIDE; virtual ~CheckableMessageBox() override;
static QDialogButtonBox::StandardButton static QDialogButtonBox::StandardButton
question(QWidget *parent, question(QWidget *parent,

View File

@ -76,13 +76,13 @@ class VPROPERTYEXPLORERSHARED_EXPORT QVector3DProperty : public VProperty
public: public:
explicit QVector3DProperty(const QString& name); explicit QVector3DProperty(const QString& name);
virtual ~QVector3DProperty() Q_DECL_OVERRIDE {} virtual ~QVector3DProperty() override {}
//! Get the data how it should be displayed //! Get the data how it should be displayed
virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const override;
//! Returns item flags //! Returns item flags
virtual Qt::ItemFlags flags(int column = DPC_Name) const Q_DECL_OVERRIDE; virtual Qt::ItemFlags flags(int column = DPC_Name) const override;
//! Returns the Vector3d //! Returns the Vector3d
virtual Vector3D getVector() const; virtual Vector3D getVector() const;
@ -94,20 +94,20 @@ public:
virtual void setVector(double x, double y, double z); virtual void setVector(double x, double y, double z);
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const Q_DECL_OVERRIDE; virtual QString type() const override;
//! Clones this property //! Clones this property
//! \param include_children Indicates whether to also clone the children //! \param include_children Indicates whether to also clone the children
//! \param container If a property is being passed here, no new VProperty is being created but instead it is tried //! \param container If a property is being passed here, no new VProperty is being created but instead it is tried
//! to fill all the data into container. This can also be used when subclassing this function. //! to fill all the data into container. This can also be used when subclassing this function.
//! \return Returns the newly created property (or container, if it was not NULL) //! \return Returns the newly created property (or container, if it was not NULL)
virtual VProperty* clone(bool include_children = true, VProperty* container = NULL) const Q_DECL_OVERRIDE; virtual VProperty* clone(bool include_children = true, VProperty* container = NULL) const override;
//! Sets the value of the property //! Sets the value of the property
virtual void setValue(const QVariant& value) Q_DECL_OVERRIDE; virtual void setValue(const QVariant& value) override;
//! Returns the value of the property as a QVariant //! Returns the value of the property as a QVariant
virtual QVariant getValue() const Q_DECL_OVERRIDE; virtual QVariant getValue() const override;
private: private:
Q_DISABLE_COPY(QVector3DProperty) Q_DISABLE_COPY(QVector3DProperty)

View File

@ -45,29 +45,29 @@ public:
explicit VBoolProperty(const QString& name); explicit VBoolProperty(const QString& name);
//! Destructor //! Destructor
virtual ~VBoolProperty() Q_DECL_OVERRIDE {} virtual ~VBoolProperty() override {}
//! Get the data how it should be displayed //! Get the data how it should be displayed
virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const override;
//! This is used by the model to set the data //! This is used by the model to set the data
//! \param data The data to set //! \param data The data to set
//! \param role The role. Default is Qt::EditRole //! \param role The role. Default is Qt::EditRole
//! \return Returns true, if the data was changed, false if not. //! \return Returns true, if the data was changed, false if not.
virtual bool setData (const QVariant& data, int role = Qt::EditRole) Q_DECL_OVERRIDE; virtual bool setData (const QVariant& data, int role = Qt::EditRole) override;
//! Returns item flags //! Returns item flags
virtual Qt::ItemFlags flags(int column = DPC_Name) const Q_DECL_OVERRIDE; virtual Qt::ItemFlags flags(int column = DPC_Name) const override;
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const Q_DECL_OVERRIDE; virtual QString type() const override;
//! Clones this property //! Clones this property
//! \param include_children Indicates whether to also clone the children //! \param include_children Indicates whether to also clone the children
//! \param container If a property is being passed here, no new VProperty is being created but instead it is tried //! \param container If a property is being passed here, no new VProperty is being created but instead it is tried
//! to fill all the data into container. This can also be used when subclassing this function. //! to fill all the data into container. This can also be used when subclassing this function.
//! \return Returns the newly created property (or container, if it was not NULL) //! \return Returns the newly created property (or container, if it was not NULL)
virtual VProperty* clone(bool include_children = true, VProperty* container = NULL) const Q_DECL_OVERRIDE; virtual VProperty* clone(bool include_children = true, VProperty* container = NULL) const override;
protected: protected:
//! The (translatable) text displayed when the property is set to true (default: "True") //! The (translatable) text displayed when the property is set to true (default: "True")

View File

@ -44,7 +44,7 @@ public:
explicit VColorProperty(const QString &name); explicit VColorProperty(const QString &name);
//! Get the data how it should be displayed //! Get the data how it should be displayed
virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const override;
//! Returns an editor widget, or NULL if it doesn't supply one //! Returns an editor widget, or NULL if it doesn't supply one
//! \param parent The widget to which the editor will be added as a child //! \param parent The widget to which the editor will be added as a child
@ -52,23 +52,23 @@ public:
//! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and //! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and
//! slots. //! slots.
virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options, virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options,
const QAbstractItemDelegate* delegate) Q_DECL_OVERRIDE; const QAbstractItemDelegate* delegate) override;
//! Sets the property's data to the editor (returns false, if the standard delegate should do that) //! Sets the property's data to the editor (returns false, if the standard delegate should do that)
virtual bool setEditorData(QWidget* editor) Q_DECL_OVERRIDE; virtual bool setEditorData(QWidget* editor) override;
//! Gets the data from the widget //! Gets the data from the widget
virtual QVariant getEditorData(const QWidget* editor) const Q_DECL_OVERRIDE; virtual QVariant getEditorData(const QWidget* editor) const override;
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const Q_DECL_OVERRIDE; virtual QString type() const override;
//! Clones this property //! Clones this property
//! \param include_children Indicates whether to also clone the children //! \param include_children Indicates whether to also clone the children
//! \param container If a property is being passed here, no new VProperty is being created but instead it is tried //! \param container If a property is being passed here, no new VProperty is being created but instead it is tried
//! to fill all the data into container. This can also be used when subclassing this function. //! to fill all the data into container. This can also be used when subclassing this function.
//! \return Returns the newly created property (or container, if it was not NULL) //! \return Returns the newly created property (or container, if it was not NULL)
virtual VProperty* clone(bool include_children = true, VProperty* container = NULL) const Q_DECL_OVERRIDE; virtual VProperty* clone(bool include_children = true, VProperty* container = NULL) const override;
private: private:
Q_DISABLE_COPY(VColorProperty) Q_DISABLE_COPY(VColorProperty)

View File

@ -48,7 +48,7 @@ public:
explicit VColorPropertyEditor(QWidget *parent); explicit VColorPropertyEditor(QWidget *parent);
//! Destructor //! Destructor
virtual ~VColorPropertyEditor() Q_DECL_OVERRIDE; virtual ~VColorPropertyEditor() override;
//! Returns the color currently set //! Returns the color currently set
@ -66,7 +66,7 @@ public:
static QString GetColorString(const QColor& color); static QString GetColorString(const QColor& color);
//! Needed for proper event handling //! Needed for proper event handling
virtual bool eventFilter(QObject *obj, QEvent *ev) Q_DECL_OVERRIDE; virtual bool eventFilter(QObject *obj, QEvent *ev) override;
signals: signals:
//! This is emitted, when the user changes the color //! This is emitted, when the user changes the color

View File

@ -49,10 +49,10 @@ public:
explicit VEmptyProperty(const QString& name); explicit VEmptyProperty(const QString& name);
//! Destructor //! Destructor
virtual ~VEmptyProperty() Q_DECL_OVERRIDE; virtual ~VEmptyProperty() override;
//! Get the data how it should be displayed //! Get the data how it should be displayed
virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const override;
//! Returns an editor widget, or NULL if it doesn't supply one //! Returns an editor widget, or NULL if it doesn't supply one
//! \param parent The widget to which the editor will be added as a child //! \param parent The widget to which the editor will be added as a child
@ -60,16 +60,16 @@ public:
//! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and //! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and
//! slots. //! slots.
virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options, virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options,
const QAbstractItemDelegate* delegate) Q_DECL_OVERRIDE; const QAbstractItemDelegate* delegate) override;
//! Gets the data from the widget //! Gets the data from the widget
virtual QVariant getEditorData(const QWidget* editor) const Q_DECL_OVERRIDE; virtual QVariant getEditorData(const QWidget* editor) const override;
//! Returns item flags //! Returns item flags
virtual Qt::ItemFlags flags(int column = DPC_Name) const Q_DECL_OVERRIDE; virtual Qt::ItemFlags flags(int column = DPC_Name) const override;
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const Q_DECL_OVERRIDE; virtual QString type() const override;
//! Clones this property //! Clones this property
//! \param include_children Indicates whether to also clone the children //! \param include_children Indicates whether to also clone the children
@ -77,7 +77,7 @@ public:
//! to fill all the data into container. This can also be used when subclassing this function. //! to fill all the data into container. This can also be used when subclassing this function.
//! \return Returns the newly created property (or container, if it was not NULL) //! \return Returns the newly created property (or container, if it was not NULL)
Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true, Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true,
VProperty* container = nullptr) const Q_DECL_OVERRIDE; VProperty* container = nullptr) const override;
protected: protected:
//! Protected constructor //! Protected constructor

View File

@ -45,10 +45,10 @@ public:
explicit VEnumProperty(const QString& name); explicit VEnumProperty(const QString& name);
//! Destructor //! Destructor
virtual ~VEnumProperty() Q_DECL_OVERRIDE {} virtual ~VEnumProperty() override {}
//! Get the data how it should be displayed //! Get the data how it should be displayed
virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const override;
//! Returns an editor widget, or NULL if it doesn't supply one //! Returns an editor widget, or NULL if it doesn't supply one
//! \param parent The widget to which the editor will be added as a child //! \param parent The widget to which the editor will be added as a child
@ -56,10 +56,10 @@ public:
//! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and //! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and
//! slots. //! slots.
virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options, virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options,
const QAbstractItemDelegate* delegate) Q_DECL_OVERRIDE; const QAbstractItemDelegate* delegate) override;
//! Gets the data from the widget //! Gets the data from the widget
virtual QVariant getEditorData(const QWidget* editor) const Q_DECL_OVERRIDE; virtual QVariant getEditorData(const QWidget* editor) const override;
//! Sets the enumeration literals //! Sets the enumeration literals
virtual void setLiterals(const QStringList &literals); virtual void setLiterals(const QStringList &literals);
@ -68,10 +68,10 @@ public:
virtual QStringList getLiterals() const; virtual QStringList getLiterals() const;
//! Sets the value of the property //! Sets the value of the property
virtual void setValue(const QVariant& value) Q_DECL_OVERRIDE; virtual void setValue(const QVariant& value) override;
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const Q_DECL_OVERRIDE; virtual QString type() const override;
//! Clones this property //! Clones this property
//! \param include_children Indicates whether to also clone the children //! \param include_children Indicates whether to also clone the children
@ -79,18 +79,18 @@ public:
//! to fill all the data into container. This can also be used when subclassing this function. //! to fill all the data into container. This can also be used when subclassing this function.
//! \return Returns the newly created property (or container, if it was not NULL) //! \return Returns the newly created property (or container, if it was not NULL)
Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true, Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true,
VProperty* container = nullptr) const Q_DECL_OVERRIDE; VProperty* container = nullptr) const override;
//! Sets the settings. Available settings: //! Sets the settings. Available settings:
//! //!
//! key: "literals" - value: "item1;;item2;;item3" //! key: "literals" - value: "item1;;item2;;item3"
virtual void setSetting(const QString& key, const QVariant& value) Q_DECL_OVERRIDE; virtual void setSetting(const QString& key, const QVariant& value) override;
//! Get the settings. This function has to be implemented in a subclass in order to have an effect //! Get the settings. This function has to be implemented in a subclass in order to have an effect
virtual QVariant getSetting(const QString& key) const Q_DECL_OVERRIDE; virtual QVariant getSetting(const QString& key) const override;
//! Returns the list of keys of the property's settings //! Returns the list of keys of the property's settings
virtual QStringList getSettingKeys() const Q_DECL_OVERRIDE; virtual QStringList getSettingKeys() const override;
public slots: public slots:
void currentIndexChanged(int index); void currentIndexChanged(int index);

View File

@ -45,7 +45,7 @@ public:
explicit VFileProperty(const QString &name); explicit VFileProperty(const QString &name);
//! The destructor //! The destructor
virtual ~VFileProperty() Q_DECL_OVERRIDE; virtual ~VFileProperty() override;
//! Sets the file filters. The file filters have to be like the ones passed a QFileOpenDialog. //! Sets the file filters. The file filters have to be like the ones passed a QFileOpenDialog.
virtual void setFileFilters(const QString& filefilters); virtual void setFileFilters(const QString& filefilters);
@ -60,7 +60,7 @@ public:
virtual QString getFile() const; virtual QString getFile() const;
//! Get the data how it should be displayed //! Get the data how it should be displayed
virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const override;
//! Returns an editor widget, or NULL if it doesn't supply one //! Returns an editor widget, or NULL if it doesn't supply one
//! \param parent The widget to which the editor will be added as a child //! \param parent The widget to which the editor will be added as a child
@ -68,27 +68,27 @@ public:
//! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and //! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and
//! slots. //! slots.
virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options, virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options,
const QAbstractItemDelegate* delegate) Q_DECL_OVERRIDE; const QAbstractItemDelegate* delegate) override;
//! Sets the property's data to the editor (returns false, if the standard delegate should do that) //! Sets the property's data to the editor (returns false, if the standard delegate should do that)
virtual bool setEditorData(QWidget* editor) Q_DECL_OVERRIDE; virtual bool setEditorData(QWidget* editor) override;
//! Gets the data from the widget //! Gets the data from the widget
virtual QVariant getEditorData(const QWidget* editor) const Q_DECL_OVERRIDE; virtual QVariant getEditorData(const QWidget* editor) const override;
//! Sets the settings. Available settings: //! Sets the settings. Available settings:
//! //!
//! key: "FileFilters" - value: File filters in the same format the QFileDialog expects it //! key: "FileFilters" - value: File filters in the same format the QFileDialog expects it
virtual void setSetting(const QString& key, const QVariant& value) Q_DECL_OVERRIDE; virtual void setSetting(const QString& key, const QVariant& value) override;
//! Get the settings. This function has to be implemented in a subclass in order to have an effect //! Get the settings. This function has to be implemented in a subclass in order to have an effect
virtual QVariant getSetting(const QString& key) const Q_DECL_OVERRIDE; virtual QVariant getSetting(const QString& key) const override;
//! Returns the list of keys of the property's settings //! Returns the list of keys of the property's settings
virtual QStringList getSettingKeys() const Q_DECL_OVERRIDE; virtual QStringList getSettingKeys() const override;
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const Q_DECL_OVERRIDE; virtual QString type() const override;
//! Clones this property //! Clones this property
//! \param include_children Indicates whether to also clone the children //! \param include_children Indicates whether to also clone the children
@ -96,7 +96,7 @@ public:
//! to fill all the data into container. This can also be used when subclassing this function. //! to fill all the data into container. This can also be used when subclassing this function.
//! \return Returns the newly created property (or container, if it was not NULL) //! \return Returns the newly created property (or container, if it was not NULL)
Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true, Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true,
VProperty* container = nullptr) const Q_DECL_OVERRIDE; VProperty* container = nullptr) const override;
//! Returns whether this is a file (false) or a directory (true) //! Returns whether this is a file (false) or a directory (true)
virtual bool isDirectory() const; virtual bool isDirectory() const;

View File

@ -44,14 +44,14 @@ class VPROPERTYEXPLORERSHARED_EXPORT VFileEditWidget : public QWidget
public: public:
explicit VFileEditWidget(QWidget* parent, bool is_directory = false); explicit VFileEditWidget(QWidget* parent, bool is_directory = false);
virtual ~VFileEditWidget() Q_DECL_OVERRIDE; virtual ~VFileEditWidget() override;
//! This function returns the file currently set to this editor //! This function returns the file currently set to this editor
QString getFile() const; QString getFile() const;
//! Needed for proper event handling //! Needed for proper event handling
virtual bool eventFilter(QObject* obj, QEvent* ev) Q_DECL_OVERRIDE; virtual bool eventFilter(QObject* obj, QEvent* ev) override;
//! Returns the directory/file setting //! Returns the directory/file setting
//! \return True, if a directory dialog is being shown, false if a file dialog //! \return True, if a directory dialog is being shown, false if a file dialog
@ -88,10 +88,10 @@ private slots:
void onToolButtonClicked(); void onToolButtonClicked();
protected: protected:
virtual void dragEnterEvent(QDragEnterEvent* event) Q_DECL_OVERRIDE; virtual void dragEnterEvent(QDragEnterEvent* event) override;
virtual void dragMoveEvent(QDragMoveEvent* event) Q_DECL_OVERRIDE; virtual void dragMoveEvent(QDragMoveEvent* event) override;
virtual void dragLeaveEvent(QDragLeaveEvent* event) Q_DECL_OVERRIDE; virtual void dragLeaveEvent(QDragLeaveEvent* event) override;
virtual void dropEvent(QDropEvent* event) Q_DECL_OVERRIDE; virtual void dropEvent(QDropEvent* event) override;
//! This function checks the mime data, if it is compatible with the filters //! This function checks the mime data, if it is compatible with the filters
virtual bool checkMimeData(const QMimeData* data, QString& file) const; virtual bool checkMimeData(const QMimeData* data, QString& file) const;

View File

@ -61,22 +61,22 @@ public:
//! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and //! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and
//! slots. //! slots.
virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options, virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options,
const QAbstractItemDelegate* delegate) Q_DECL_OVERRIDE; const QAbstractItemDelegate* delegate) override;
//! Gets the data from the widget //! Gets the data from the widget
virtual QVariant getEditorData(const QWidget* editor) const Q_DECL_OVERRIDE; virtual QVariant getEditorData(const QWidget* editor) const override;
//! Sets the settings. //! Sets the settings.
virtual void setSetting(const QString& key, const QVariant& value) Q_DECL_OVERRIDE; virtual void setSetting(const QString& key, const QVariant& value) override;
//! Get the settings. This function has to be implemented in a subclass in order to have an effect //! Get the settings. This function has to be implemented in a subclass in order to have an effect
virtual QVariant getSetting(const QString& key) const Q_DECL_OVERRIDE; virtual QVariant getSetting(const QString& key) const override;
//! Returns the list of keys of the property's settings //! Returns the list of keys of the property's settings
virtual QStringList getSettingKeys() const Q_DECL_OVERRIDE; virtual QStringList getSettingKeys() const override;
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const Q_DECL_OVERRIDE; virtual QString type() const override;
//! Clones this property //! Clones this property
//! \param include_children Indicates whether to also clone the children //! \param include_children Indicates whether to also clone the children
@ -84,9 +84,9 @@ public:
//! to fill all the data into container. This can also be used when subclassing this function. //! to fill all the data into container. This can also be used when subclassing this function.
//! \return Returns the newly created property (or container, if it was not NULL) //! \return Returns the newly created property (or container, if it was not NULL)
Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true, Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true,
VProperty* container = nullptr) const Q_DECL_OVERRIDE; VProperty* container = nullptr) const override;
virtual void UpdateParent(const QVariant &value) Q_DECL_OVERRIDE; virtual void UpdateParent(const QVariant &value) override;
int getTypeForParent() const; int getTypeForParent() const;
void setTypeForParent(int value); void setTypeForParent(int value);

View File

@ -54,10 +54,10 @@ public:
explicit VLineColorProperty(const QString& name); explicit VLineColorProperty(const QString& name);
//! Destructor //! Destructor
virtual ~VLineColorProperty() Q_DECL_OVERRIDE {} virtual ~VLineColorProperty() override {}
//! Get the data how it should be displayed //! Get the data how it should be displayed
virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const override;
//! Returns an editor widget, or NULL if it doesn't supply one //! Returns an editor widget, or NULL if it doesn't supply one
//! \param parent The widget to which the editor will be added as a child //! \param parent The widget to which the editor will be added as a child
@ -65,10 +65,10 @@ public:
//! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and //! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and
//! slots. //! slots.
virtual QWidget *createEditor(QWidget* parent, const QStyleOptionViewItem& options, virtual QWidget *createEditor(QWidget* parent, const QStyleOptionViewItem& options,
const QAbstractItemDelegate* delegate) Q_DECL_OVERRIDE; const QAbstractItemDelegate* delegate) override;
//! Gets the data from the widget //! Gets the data from the widget
virtual QVariant getEditorData(const QWidget* editor) const Q_DECL_OVERRIDE; virtual QVariant getEditorData(const QWidget* editor) const override;
//! Sets the colors //! Sets the colors
virtual void setColors(const QMap<QString, QString> &colors); virtual void setColors(const QMap<QString, QString> &colors);
@ -77,10 +77,10 @@ public:
virtual QMap<QString, QString> getColors() const; virtual QMap<QString, QString> getColors() const;
//! Sets the value of the property //! Sets the value of the property
virtual void setValue(const QVariant& value) Q_DECL_OVERRIDE; virtual void setValue(const QVariant& value) override;
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const Q_DECL_OVERRIDE; virtual QString type() const override;
//! Clones this property //! Clones this property
//! \param include_children Indicates whether to also clone the children //! \param include_children Indicates whether to also clone the children
@ -88,7 +88,7 @@ public:
//! to fill all the data into container. This can also be used when subclassing this function. //! to fill all the data into container. This can also be used when subclassing this function.
//! \return Returns the newly created property (or container, if it was not NULL) //! \return Returns the newly created property (or container, if it was not NULL)
Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true, Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true,
VProperty* container = nullptr) const Q_DECL_OVERRIDE; VProperty* container = nullptr) const override;
static int IndexOfColor(const QMap<QString, QString> &colors, const QString &color); static int IndexOfColor(const QMap<QString, QString> &colors, const QString &color);

View File

@ -55,10 +55,10 @@ public:
explicit VLineTypeProperty(const QString& name); explicit VLineTypeProperty(const QString& name);
//! Destructor //! Destructor
virtual ~VLineTypeProperty() Q_DECL_OVERRIDE {} virtual ~VLineTypeProperty() override {}
//! Get the data how it should be displayed //! Get the data how it should be displayed
virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const override;
//! Returns an editor widget, or NULL if it doesn't supply one //! Returns an editor widget, or NULL if it doesn't supply one
//! \param parent The widget to which the editor will be added as a child //! \param parent The widget to which the editor will be added as a child
@ -66,10 +66,10 @@ public:
//! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and //! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and
//! slots. //! slots.
virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options, virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options,
const QAbstractItemDelegate* delegate) Q_DECL_OVERRIDE; const QAbstractItemDelegate* delegate) override;
//! Gets the data from the widget //! Gets the data from the widget
virtual QVariant getEditorData(const QWidget* editor) const Q_DECL_OVERRIDE; virtual QVariant getEditorData(const QWidget* editor) const override;
//! Sets the line styles //! Sets the line styles
virtual void setStyles(const QMap<QString, QIcon> &styles); virtual void setStyles(const QMap<QString, QIcon> &styles);
@ -78,10 +78,10 @@ public:
virtual QMap<QString, QIcon> getStyles() const; virtual QMap<QString, QIcon> getStyles() const;
//! Sets the value of the property //! Sets the value of the property
virtual void setValue(const QVariant& value) Q_DECL_OVERRIDE; virtual void setValue(const QVariant& value) override;
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const Q_DECL_OVERRIDE; virtual QString type() const override;
//! Clones this property //! Clones this property
//! \param include_children Indicates whether to also clone the children //! \param include_children Indicates whether to also clone the children
@ -89,7 +89,7 @@ public:
//! to fill all the data into container. This can also be used when subclassing this function. //! to fill all the data into container. This can also be used when subclassing this function.
//! \return Returns the newly created property (or container, if it was not NULL) //! \return Returns the newly created property (or container, if it was not NULL)
Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true, Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true,
VProperty* container = nullptr) const Q_DECL_OVERRIDE; VProperty* container = nullptr) const override;
static int IndexOfStyle(const QMap<QString, QIcon> &styles, const QString &style); static int IndexOfStyle(const QMap<QString, QIcon> &styles, const QString &style);

View File

@ -54,25 +54,25 @@ public:
//! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and //! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and
//! slots. //! slots.
virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options, virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options,
const QAbstractItemDelegate* delegate) Q_DECL_OVERRIDE; const QAbstractItemDelegate* delegate) override;
//! Gets the data from the widget //! Gets the data from the widget
virtual QVariant getEditorData(const QWidget* editor) const Q_DECL_OVERRIDE; virtual QVariant getEditorData(const QWidget* editor) const override;
//! Sets the settings. Available settings: //! Sets the settings. Available settings:
//! //!
//! key: "Min" - value: Minimum number as integer //! key: "Min" - value: Minimum number as integer
//! key: "Max" - value: Maximum number as integer //! key: "Max" - value: Maximum number as integer
virtual void setSetting(const QString& key, const QVariant& value) Q_DECL_OVERRIDE; virtual void setSetting(const QString& key, const QVariant& value) override;
//! Get the settings. This function has to be implemented in a subclass in order to have an effect //! Get the settings. This function has to be implemented in a subclass in order to have an effect
virtual QVariant getSetting(const QString& key) const Q_DECL_OVERRIDE; virtual QVariant getSetting(const QString& key) const override;
//! Returns the list of keys of the property's settings //! Returns the list of keys of the property's settings
virtual QStringList getSettingKeys() const Q_DECL_OVERRIDE; virtual QStringList getSettingKeys() const override;
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const Q_DECL_OVERRIDE; virtual QString type() const override;
//! Clones this property //! Clones this property
//! \param include_children Indicates whether to also clone the children //! \param include_children Indicates whether to also clone the children
@ -80,7 +80,7 @@ public:
//! to fill all the data into container. This can also be used when subclassing this function. //! to fill all the data into container. This can also be used when subclassing this function.
//! \return Returns the newly created property (or container, if it was not NULL) //! \return Returns the newly created property (or container, if it was not NULL)
Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true, Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true,
VProperty* container = nullptr) const Q_DECL_OVERRIDE; VProperty* container = nullptr) const override;
public slots: public slots:
void valueChanged(int i); void valueChanged(int i);
protected: protected:
@ -109,32 +109,32 @@ public:
//! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and //! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and
//! slots. //! slots.
virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options, virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options,
const QAbstractItemDelegate* delegate); const QAbstractItemDelegate* delegate) override;
//! Gets the data from the widget //! Gets the data from the widget
virtual QVariant getEditorData(const QWidget* editor) const; virtual QVariant getEditorData(const QWidget* editor) const override;
//! Sets the settings. Available settings: //! Sets the settings. Available settings:
//! //!
//! key: "Min" - value: Minimum number as integer //! key: "Min" - value: Minimum number as integer
//! key: "Max" - value: Maximum number as integer //! key: "Max" - value: Maximum number as integer
virtual void setSetting(const QString& key, const QVariant& value); virtual void setSetting(const QString& key, const QVariant& value) override;
//! Get the settings. This function has to be implemented in a subclass in order to have an effect //! Get the settings. This function has to be implemented in a subclass in order to have an effect
virtual QVariant getSetting(const QString& key) const; virtual QVariant getSetting(const QString& key) const override;
//! Returns the list of keys of the property's settings //! Returns the list of keys of the property's settings
virtual QStringList getSettingKeys() const; virtual QStringList getSettingKeys() const override;
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const; virtual QString type() const override;
//! Clones this property //! Clones this property
//! \param include_children Indicates whether to also clone the children //! \param include_children Indicates whether to also clone the children
//! \param container If a property is being passed here, no new VProperty is being created but instead it is tried //! \param container If a property is being passed here, no new VProperty is being created but instead it is tried
//! to fill all the data into container. This can also be used when subclassing this function. //! to fill all the data into container. This can also be used when subclassing this function.
//! \return Returns the newly created property (or container, if it was not NULL) //! \return Returns the newly created property (or container, if it was not NULL)
virtual VProperty* clone(bool include_children = true, VProperty* container = NULL) const; virtual VProperty* clone(bool include_children = true, VProperty* container = NULL) const override;
protected: protected:
//! Number of decimals after the decimal point //! Number of decimals after the decimal point

View File

@ -48,10 +48,10 @@ public:
explicit VObjectProperty(const QString& name); explicit VObjectProperty(const QString& name);
//! Destructor //! Destructor
virtual ~VObjectProperty() Q_DECL_OVERRIDE {} virtual ~VObjectProperty() override {}
//! Get the data how it should be displayed //! Get the data how it should be displayed
virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const override;
//! Returns an editor widget, or NULL if it doesn't supply one //! Returns an editor widget, or NULL if it doesn't supply one
//! \param parent The widget to which the editor will be added as a child //! \param parent The widget to which the editor will be added as a child
@ -59,13 +59,13 @@ public:
//! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and //! \delegate A pointer to the QAbstractItemDelegate requesting the editor. This can be used to connect signals and
//! slots. //! slots.
virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options, virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& options,
const QAbstractItemDelegate* delegate) Q_DECL_OVERRIDE; const QAbstractItemDelegate* delegate) override;
//! Sets the property's data to the editor (returns false, if the standard delegate should do that) //! Sets the property's data to the editor (returns false, if the standard delegate should do that)
virtual bool setEditorData(QWidget* editor) Q_DECL_OVERRIDE; virtual bool setEditorData(QWidget* editor) override;
//! Gets the data from the widget //! Gets the data from the widget
virtual QVariant getEditorData(const QWidget* editor) const Q_DECL_OVERRIDE; virtual QVariant getEditorData(const QWidget* editor) const override;
//! Sets the objects list //! Sets the objects list
void setObjectsList(const QMap<QString, quint32> &objects); void setObjectsList(const QMap<QString, quint32> &objects);
@ -74,10 +74,10 @@ public:
virtual QMap<QString, quint32> getObjects() const; virtual QMap<QString, quint32> getObjects() const;
//! Sets the value of the property //! Sets the value of the property
virtual void setValue(const QVariant& value) Q_DECL_OVERRIDE; virtual void setValue(const QVariant& value) override;
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const Q_DECL_OVERRIDE; virtual QString type() const override;
//! Clones this property //! Clones this property
//! \param include_children Indicates whether to also clone the children //! \param include_children Indicates whether to also clone the children
@ -85,7 +85,7 @@ public:
//! to fill all the data into container. This can also be used when subclassing this function. //! to fill all the data into container. This can also be used when subclassing this function.
//! \return Returns the newly created property (or container, if it was not NULL) //! \return Returns the newly created property (or container, if it was not NULL)
Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true, Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true,
VProperty* container = nullptr) const Q_DECL_OVERRIDE; VProperty* container = nullptr) const override;
public slots: public slots:
void currentIndexChanged(int index); void currentIndexChanged(int index);

View File

@ -42,13 +42,13 @@ class VPROPERTYEXPLORERSHARED_EXPORT VPointFProperty : public VProperty
public: public:
explicit VPointFProperty(const QString& name); explicit VPointFProperty(const QString& name);
virtual ~VPointFProperty() Q_DECL_OVERRIDE {} virtual ~VPointFProperty() override {}
//! Get the data how it should be displayed //! Get the data how it should be displayed
virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const override;
//! Returns item flags //! Returns item flags
Qt::ItemFlags flags(int column = DPC_Name) const Q_DECL_OVERRIDE; Qt::ItemFlags flags(int column = DPC_Name) const override;
//! Returns the QPointF //! Returns the QPointF
virtual QPointF getPointF() const; virtual QPointF getPointF() const;
@ -60,7 +60,7 @@ public:
virtual void setPointF(qreal x, qreal y); virtual void setPointF(qreal x, qreal y);
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const Q_DECL_OVERRIDE; virtual QString type() const override;
//! Clones this property //! Clones this property
//! \param include_children Indicates whether to also clone the children //! \param include_children Indicates whether to also clone the children
@ -68,13 +68,13 @@ public:
//! to fill all the data into container. This can also be used when subclassing this function. //! to fill all the data into container. This can also be used when subclassing this function.
//! \return Returns the newly created property (or container, if it was not NULL) //! \return Returns the newly created property (or container, if it was not NULL)
Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true, Q_REQUIRED_RESULT virtual VProperty* clone(bool include_children = true,
VProperty* container = nullptr) const Q_DECL_OVERRIDE; VProperty* container = nullptr) const override;
//! Sets the value of the property //! Sets the value of the property
virtual void setValue(const QVariant& value) Q_DECL_OVERRIDE; virtual void setValue(const QVariant& value) override;
//! Returns the value of the property as a QVariant //! Returns the value of the property as a QVariant
virtual QVariant getValue() const Q_DECL_OVERRIDE; virtual QVariant getValue() const override;
private: private:
Q_DISABLE_COPY(VPointFProperty) Q_DISABLE_COPY(VPointFProperty)

Some files were not shown because too many files have changed in this diff Show More