Use Q_DECL_OVERRIDE.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-07-03 16:36:54 +03:00
parent f6a551ed4b
commit d4e13bfe34
211 changed files with 1029 additions and 1019 deletions

View File

@ -56,9 +56,9 @@ class VApplication : public VAbstractApplication
Q_OBJECT Q_OBJECT
public: public:
VApplication(int &argc, char ** argv); VApplication(int &argc, char ** argv);
virtual ~VApplication(); virtual ~VApplication() Q_DECL_OVERRIDE;
static void NewValentina(const QString &fileName = QString()); static void NewValentina(const QString &fileName = QString());
virtual bool notify(QObject * receiver, QEvent * event); virtual bool notify(QObject * receiver, QEvent * event) Q_DECL_OVERRIDE;
void InitOptions(); void InitOptions();

View File

@ -40,7 +40,7 @@ public:
VFormulaProperty(const QString &name); 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; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
//! Returns item flags //! Returns item flags
Qt::ItemFlags flags(int column = DPC_Name) const; Qt::ItemFlags flags(int column = DPC_Name) const;
@ -51,38 +51,38 @@ 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) Q_DECL_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); virtual bool setEditorData(QWidget* editor) Q_DECL_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 Q_DECL_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 Q_DECL_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 Q_DECL_OVERRIDE;
//! Sets the value of the property //! Sets the value of the property
virtual void setValue(const QVariant& value); virtual void setValue(const QVariant& value) Q_DECL_OVERRIDE;
//! Returns the value of the property as a QVariant //! Returns the value of the property as a QVariant
virtual QVariant getValue() const; virtual QVariant getValue() const Q_DECL_OVERRIDE;
//! Returns the formula //! Returns the formula
virtual VFormula GetFormula() const; VFormula GetFormula() const;
//! Sets the formula //! Sets the formula
virtual void SetFormula(const VFormula &formula); void SetFormula(const VFormula &formula);
public slots: public slots:
virtual void ValueChildChanged(const QVariant &value, int typeForParent); virtual void ValueChildChanged(const QVariant &value, int typeForParent) Q_DECL_OVERRIDE;
}; };

View File

@ -46,7 +46,7 @@ public:
VFormulaPropertyEditor(QWidget *parent); VFormulaPropertyEditor(QWidget *parent);
//! Destructor //! Destructor
virtual ~VFormulaPropertyEditor(); virtual ~VFormulaPropertyEditor() Q_DECL_OVERRIDE;
//! Returns the formula currently set //! Returns the formula currently set
VFormula GetFormula() const; VFormula GetFormula() const;

View File

@ -46,7 +46,7 @@ public slots:
signals: signals:
void UpdateProperties(); void UpdateProperties();
protected: protected:
virtual void closeEvent(QCloseEvent *event); virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(ConfigDialog) Q_DISABLE_COPY(ConfigDialog)
QListWidget *contentsWidget; QListWidget *contentsWidget;

View File

@ -49,13 +49,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(); virtual ~DialogHistory() Q_DECL_OVERRIDE;
public slots: public slots:
virtual void DialogAccepted(); virtual void DialogAccepted() Q_DECL_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(){} virtual void DialogApply() Q_DECL_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();
@ -67,7 +67,7 @@ signals:
*/ */
void ShowHistoryTool(quint32 id, bool enable); void ShowHistoryTool(quint32 id, bool enable);
protected: protected:
virtual void closeEvent ( QCloseEvent * event ); virtual void closeEvent ( QCloseEvent * event ) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogHistory) Q_DISABLE_COPY(DialogHistory)

View File

@ -73,7 +73,7 @@ signals:
*/ */
void haveLiteChange(); void haveLiteChange();
protected: protected:
virtual void closeEvent ( QCloseEvent * event ); virtual void closeEvent ( QCloseEvent * event ) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogIncrements) Q_DISABLE_COPY(DialogIncrements)

View File

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

View File

@ -52,7 +52,7 @@ class MainWindow : public MainWindowsNoGUI
Q_OBJECT Q_OBJECT
public: public:
explicit MainWindow(QWidget *parent = nullptr); explicit MainWindow(QWidget *parent = nullptr);
virtual ~MainWindow(); virtual ~MainWindow() Q_DECL_OVERRIDE;
void LoadPattern(const QString &curFile); void LoadPattern(const QString &curFile);
void ReopenFilesAfterCrash(QStringList &args); void ReopenFilesAfterCrash(QStringList &args);
public slots: public slots:
@ -149,13 +149,13 @@ signals:
void RefreshHistory(); void RefreshHistory();
void EnableItemMove(bool move); void EnableItemMove(bool move);
protected: protected:
virtual void keyPressEvent(QKeyEvent *event); virtual void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE;
virtual void showEvent(QShowEvent *event); virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
virtual void closeEvent(QCloseEvent *event); virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
virtual void customEvent(QEvent * event); virtual void customEvent(QEvent * event) Q_DECL_OVERRIDE;
virtual void CleanLayout(); virtual void CleanLayout() Q_DECL_OVERRIDE;
virtual void PrepareSceneList(); virtual void PrepareSceneList() Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(MainWindow) Q_DISABLE_COPY(MainWindow)
/** @brief ui keeps information about user interface */ /** @brief ui keeps information about user interface */

View File

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

View File

@ -36,7 +36,7 @@ class VAbstractMeasurements : public VDomDocument
{ {
public: public:
VAbstractMeasurements(VContainer *data); VAbstractMeasurements(VContainer *data);
virtual ~VAbstractMeasurements(); virtual ~VAbstractMeasurements() Q_DECL_OVERRIDE;
virtual void Measurements(); virtual void Measurements();
Unit MUnit() const; Unit MUnit() const;
static const QString TagUnit; static const QString TagUnit;

View File

@ -45,9 +45,9 @@ class VIndividualMeasurements:public VAbstractMeasurements
{ {
public: public:
VIndividualMeasurements(VContainer *data); VIndividualMeasurements(VContainer *data);
virtual ~VIndividualMeasurements(); virtual ~VIndividualMeasurements() Q_DECL_OVERRIDE;
void setUnit(const Unit &unit); void setUnit(const Unit &unit);
virtual void Measurements(); virtual void Measurements() Q_DECL_OVERRIDE;
QString FamilyName() const; QString FamilyName() const;
void setFamilyName(const QString &text); void setFamilyName(const QString &text);
QString GivenName() const; QString GivenName() const;
@ -70,7 +70,7 @@ public:
static QString GenderToStr(const SexType &sex); static QString GenderToStr(const SexType &sex);
static SexType StrToGender(const QString &sex); static SexType StrToGender(const QString &sex);
protected: protected:
virtual void ReadMeasurement(const QDomElement &domElement, const QString &tag); virtual void ReadMeasurement(const QDomElement &domElement, const QString &tag) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(VIndividualMeasurements) Q_DISABLE_COPY(VIndividualMeasurements)
}; };

View File

@ -46,32 +46,32 @@ 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(const QString &tablePath); virtual void CreateEmptyFile(const QString &tablePath) Q_DECL_OVERRIDE;
void Parse(const Document &parse); void Parse(const Document &parse);
void setCurrentData(); void setCurrentData();
virtual void UpdateToolData(const quint32 &id, VContainer *data); virtual void UpdateToolData(const quint32 &id, VContainer *data) Q_DECL_OVERRIDE;
virtual void IncrementReferens(quint32 id) const; virtual void IncrementReferens(quint32 id) const Q_DECL_OVERRIDE;
virtual void DecrementReferens(quint32 id) const; virtual void DecrementReferens(quint32 id) const Q_DECL_OVERRIDE;
quint32 SPointActiveDraw(); quint32 SPointActiveDraw();
virtual bool SaveDocument(const QString &fileName, QString &error) const; virtual bool SaveDocument(const QString &fileName, QString &error) const Q_DECL_OVERRIDE;
QRectF ActiveDrawBoundingRect() const; QRectF ActiveDrawBoundingRect() const;
QString GetAuthor() const; QString GetAuthor() const;
void SetAuthor(const QString &text); void SetAuthor(const QString &text);
virtual QString GenerateLabel(const LabelType &type, const QString &reservedName = QString())const; virtual QString GenerateLabel(const LabelType &type, const QString &reservedName = QString())const Q_DECL_OVERRIDE;
public slots: public slots:
void LiteParseTree(const Document &parse); void LiteParseTree(const Document &parse);
protected: protected:
virtual void customEvent(QEvent * event); virtual void customEvent(QEvent * event) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(VPattern) Q_DISABLE_COPY(VPattern)

View File

@ -43,7 +43,7 @@ class VStandardMeasurements:public VAbstractMeasurements
{ {
public: public:
VStandardMeasurements(VContainer *data); VStandardMeasurements(VContainer *data);
virtual ~VStandardMeasurements(); virtual ~VStandardMeasurements() Q_DECL_OVERRIDE;
QString OrigDescription (); QString OrigDescription ();
QString TrDescription (); QString TrDescription ();
QString Id(); QString Id();
@ -63,7 +63,7 @@ public:
static const QString AttrHeight_increase; static const QString AttrHeight_increase;
static const QString AttrBase; static const QString AttrBase;
protected: protected:
virtual void ReadMeasurement(const QDomElement &domElement, const QString &tag); virtual void ReadMeasurement(const QDomElement &domElement, const QString &tag) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(VStandardMeasurements) Q_DISABLE_COPY(VStandardMeasurements)
qreal TakeParametr(const QString &tag, const QString &attr, qreal defValue) const; qreal TakeParametr(const QString &tag, const QString &attr, qreal defValue) const;

View File

@ -46,11 +46,11 @@ public:
VException(const QString &what); VException(const QString &what);
VException(const VException &e); VException(const VException &e);
VException &operator=(const VException &e); VException &operator=(const VException &e);
virtual ~VException() V_NOEXCEPT_EXPR (true){} virtual ~VException() V_NOEXCEPT_EXPR (true) Q_DECL_OVERRIDE {}
Q_NORETURN virtual void raise() const; Q_NORETURN virtual void raise() const Q_DECL_OVERRIDE;
// cppcheck-suppress unusedFunction // cppcheck-suppress unusedFunction
virtual VException *clone() const; virtual VException *clone() const Q_DECL_OVERRIDE;
virtual QString ErrorMessage() const; virtual QString ErrorMessage() const;
virtual QString DetailedInformation() const; virtual QString DetailedInformation() const;
QString What() const; QString What() const;

View File

@ -41,8 +41,8 @@ public:
VExceptionBadId(const QString &what, const QString &key); VExceptionBadId(const QString &what, const QString &key);
VExceptionBadId(const VExceptionBadId &e); VExceptionBadId(const VExceptionBadId &e);
VExceptionBadId &operator=(const VExceptionBadId &e); VExceptionBadId &operator=(const VExceptionBadId &e);
virtual ~VExceptionBadId() V_NOEXCEPT_EXPR (true){} virtual ~VExceptionBadId() V_NOEXCEPT_EXPR (true) Q_DECL_OVERRIDE {}
virtual QString ErrorMessage() const; virtual QString ErrorMessage() const Q_DECL_OVERRIDE;
quint32 BadId() const; quint32 BadId() const;
QString BadKey() const; QString BadKey() const;
protected: protected:

View File

@ -39,8 +39,8 @@ class VExceptionConversionError : public VException
public: public:
VExceptionConversionError(const QString &what, const QString &str); VExceptionConversionError(const QString &what, const QString &str);
VExceptionConversionError(const VExceptionConversionError &e); VExceptionConversionError(const VExceptionConversionError &e);
virtual ~VExceptionConversionError() V_NOEXCEPT_EXPR (true); virtual ~VExceptionConversionError() V_NOEXCEPT_EXPR (true) Q_DECL_OVERRIDE;
virtual QString ErrorMessage() const; virtual QString ErrorMessage() const Q_DECL_OVERRIDE;
QString String() const; QString String() const;
protected: protected:
/** @brief str string, where happend error */ /** @brief str string, where happend error */

View File

@ -41,9 +41,9 @@ class VExceptionEmptyParameter : public VException
public: public:
VExceptionEmptyParameter(const QString &what, const QString &name, const QDomElement &domElement); VExceptionEmptyParameter(const QString &what, const QString &name, const QDomElement &domElement);
VExceptionEmptyParameter(const VExceptionEmptyParameter &e); VExceptionEmptyParameter(const VExceptionEmptyParameter &e);
virtual ~VExceptionEmptyParameter() V_NOEXCEPT_EXPR (true); virtual ~VExceptionEmptyParameter() V_NOEXCEPT_EXPR (true) Q_DECL_OVERRIDE;
virtual QString ErrorMessage() const; virtual QString ErrorMessage() const Q_DECL_OVERRIDE;
virtual QString DetailedInformation() const; virtual QString DetailedInformation() const Q_DECL_OVERRIDE;
QString Name() const; QString Name() const;
QString TagText() const; QString TagText() const;
QString TagName() const; QString TagName() const;

View File

@ -41,9 +41,9 @@ class VExceptionObjectError : public VException
public: public:
VExceptionObjectError(const QString &what, const QDomElement &domElement); VExceptionObjectError(const QString &what, const QDomElement &domElement);
VExceptionObjectError(const VExceptionObjectError &e); VExceptionObjectError(const VExceptionObjectError &e);
virtual ~VExceptionObjectError() V_NOEXCEPT_EXPR (true) {} virtual ~VExceptionObjectError() V_NOEXCEPT_EXPR (true) Q_DECL_OVERRIDE {}
virtual QString ErrorMessage() const; virtual QString ErrorMessage() const Q_DECL_OVERRIDE;
virtual QString DetailedInformation() const; virtual QString DetailedInformation() const Q_DECL_OVERRIDE;
QString TagText() const; QString TagText() const;
QString TagName() const; QString TagName() const;
qint32 LineNumber() const; qint32 LineNumber() const;

View File

@ -36,7 +36,7 @@ class VExceptionUndo : public VException
public: public:
VExceptionUndo(const QString &what); VExceptionUndo(const QString &what);
VExceptionUndo(const VExceptionUndo &e); VExceptionUndo(const VExceptionUndo &e);
virtual ~VExceptionUndo() V_NOEXCEPT_EXPR (true); virtual ~VExceptionUndo() V_NOEXCEPT_EXPR (true) Q_DECL_OVERRIDE;
}; };
#endif // VEXCEPTIONUNDO_H #endif // VEXCEPTIONUNDO_H

View File

@ -41,9 +41,9 @@ class VExceptionWrongId : public VException
public: public:
VExceptionWrongId(const QString &what, const QDomElement &domElement); VExceptionWrongId(const QString &what, const QDomElement &domElement);
VExceptionWrongId(const VExceptionWrongId &e); VExceptionWrongId(const VExceptionWrongId &e);
virtual ~VExceptionWrongId() V_NOEXCEPT_EXPR (true){} virtual ~VExceptionWrongId() V_NOEXCEPT_EXPR (true) Q_DECL_OVERRIDE {}
virtual QString ErrorMessage() const; virtual QString ErrorMessage() const Q_DECL_OVERRIDE;
virtual QString DetailedInformation() const; virtual QString DetailedInformation() const Q_DECL_OVERRIDE;
QString TagText() const; QString TagText() const;
QString TagName() const; QString TagName() const;
qint32 LineNumber() const; qint32 LineNumber() const;

View File

@ -36,10 +36,10 @@ class VAbstractConverter :public VDomDocument
Q_DECLARE_TR_FUNCTIONS(VAbstractConverter) Q_DECLARE_TR_FUNCTIONS(VAbstractConverter)
public: public:
VAbstractConverter(const QString &fileName); VAbstractConverter(const QString &fileName);
virtual ~VAbstractConverter(); virtual ~VAbstractConverter() Q_DECL_OVERRIDE;
void Convert(); void Convert();
virtual bool SaveDocument(const QString &fileName, QString &error) const; virtual bool SaveDocument(const QString &fileName, QString &error) const Q_DECL_OVERRIDE;
protected: protected:
int ver; int ver;

View File

@ -46,7 +46,7 @@ class VAbstractPattern : public QObject, public VDomDocument
Q_OBJECT Q_OBJECT
public: public:
VAbstractPattern(QObject *parent = nullptr); VAbstractPattern(QObject *parent = nullptr);
virtual ~VAbstractPattern(); virtual ~VAbstractPattern() Q_DECL_OVERRIDE;
virtual void CreateEmptyFile(const QString &tablePath)=0; virtual void CreateEmptyFile(const QString &tablePath)=0;

View File

@ -51,7 +51,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); const QUrl &identifier, const QSourceLocation &sourceLocation) Q_DECL_OVERRIDE;
private: private:
QtMsgType m_messageType; QtMsgType m_messageType;
QString m_description; QString m_description;

View File

@ -36,20 +36,20 @@ class VPatternConverter : public VAbstractConverter
Q_DECLARE_TR_FUNCTIONS(VPatternConverter) Q_DECLARE_TR_FUNCTIONS(VPatternConverter)
public: public:
VPatternConverter(const QString &fileName); VPatternConverter(const QString &fileName);
virtual ~VPatternConverter(); virtual ~VPatternConverter() Q_DECL_OVERRIDE;
static const QString PatternMaxVerStr; static const QString PatternMaxVerStr;
static const QString CurrentSchema; static const QString CurrentSchema;
protected: protected:
virtual int MinVer() const; virtual int MinVer() const Q_DECL_OVERRIDE;
virtual int MaxVer() const; virtual int MaxVer() const Q_DECL_OVERRIDE;
virtual QString MinVerStr() const; virtual QString MinVerStr() const Q_DECL_OVERRIDE;
virtual QString MaxVerStr() const; virtual QString MaxVerStr() const Q_DECL_OVERRIDE;
QString XSDSchema(int ver) const; QString XSDSchema(int ver) const;
virtual void ApplyPatches(); virtual void ApplyPatches() Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(VPatternConverter) Q_DISABLE_COPY(VPatternConverter)

View File

@ -46,11 +46,11 @@ namespace qmu
{ {
public: public:
QmuParser(); QmuParser();
virtual void InitCharSets(); virtual void InitCharSets() Q_DECL_OVERRIDE;
virtual void InitFun(); virtual void InitFun() Q_DECL_OVERRIDE;
virtual void InitConst(); virtual void InitConst() Q_DECL_OVERRIDE;
virtual void InitOprt(); virtual void InitOprt() Q_DECL_OVERRIDE;
virtual void OnDetectVar(const QString &pExpr, int &nStart, int &nEnd); virtual void OnDetectVar(const QString &pExpr, int &nStart, int &nEnd) Q_DECL_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 std::locale &s_locale); static int IsVal(const QString &a_szExpr, int *a_iPos, qreal *a_fVal, const std::locale &s_locale);

View File

@ -146,17 +146,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 virtual char_type do_decimal_point() const Q_DECL_OVERRIDE
{ {
return m_cDecPoint; return m_cDecPoint;
} }
virtual char_type do_thousands_sep() const virtual char_type do_thousands_sep() const Q_DECL_OVERRIDE
{ {
return m_cThousandsSep; return m_cThousandsSep;
} }
virtual std::string do_grouping() const virtual std::string do_grouping() const Q_DECL_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

@ -140,7 +140,7 @@ public:
QmuParserError ( const QString &a_szMsg, int a_iPos, const QString &sTok = QString() ); QmuParserError ( const QString &a_szMsg, int a_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){} virtual ~QmuParserError() QMUP_NOEXCEPT_EXPR (true) Q_DECL_OVERRIDE {}
void SetFormula ( const QString &a_strFormula ); void SetFormula ( const QString &a_strFormula );
const QString& GetExpr() const; const QString& GetExpr() const;
@ -148,8 +148,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_NORETURN virtual void raise() const Q_DECL_OVERRIDE;
virtual QmuParserError *clone() const; virtual QmuParserError *clone() const Q_DECL_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

@ -52,15 +52,15 @@ public:
VArc (qreal length, VPointF center, qreal radius, qreal f1); VArc (qreal length, VPointF center, qreal radius, qreal f1);
VArc(const VArc &arc); VArc(const VArc &arc);
VArc& operator= (const VArc &arc); VArc& operator= (const VArc &arc);
virtual ~VArc(); virtual ~VArc() Q_DECL_OVERRIDE;
QString GetFormulaF1 () const; QString GetFormulaF1 () const;
void SetFormulaF1 (const QString &formula, qreal value); void SetFormulaF1 (const QString &formula, qreal value);
virtual qreal GetStartAngle () const; virtual qreal GetStartAngle () const Q_DECL_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; virtual qreal GetEndAngle () const Q_DECL_OVERRIDE;
QString GetFormulaRadius () const; QString GetFormulaRadius () const;
void SetFormulaRadius (const QString &formula, qreal value); void SetFormulaRadius (const QString &formula, qreal value);
@ -79,7 +79,7 @@ public:
QVector<QPointF> GetPoints () const; QVector<QPointF> GetPoints () const;
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;
virtual void setId(const quint32 &id); virtual void setId(const quint32 &id) Q_DECL_OVERRIDE;
private: private:
QSharedDataPointer<VArcData> d; QSharedDataPointer<VArcData> d;

View File

@ -48,7 +48,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(); virtual ~VPointF() Q_DECL_OVERRIDE;
VPointF &operator=(const VPointF &point); VPointF &operator=(const VPointF &point);
qreal mx() const; qreal mx() const;
qreal my() const; qreal my() const;

View File

@ -51,15 +51,15 @@ public:
quint32 idObject = 0, Draw mode = Draw::Calculation); quint32 idObject = 0, Draw mode = Draw::Calculation);
VSpline (VPointF p1, QPointF p2, QPointF p3, VPointF p4, qreal kCurve, quint32 idObject = 0, VSpline (VPointF p1, QPointF p2, QPointF p3, VPointF p4, qreal kCurve, quint32 idObject = 0,
Draw mode = Draw::Calculation); Draw mode = Draw::Calculation);
virtual ~VSpline(); virtual ~VSpline() Q_DECL_OVERRIDE;
VSpline &operator=(const VSpline &spl); VSpline &operator=(const VSpline &spl);
VPointF GetP1 () const; VPointF GetP1 () const;
QPointF GetP2 () const; QPointF GetP2 () const;
QPointF GetP3 () const; QPointF GetP3 () const;
VPointF GetP4 () const; VPointF GetP4 () const;
virtual qreal GetStartAngle () const; virtual qreal GetStartAngle () const Q_DECL_OVERRIDE;
virtual qreal GetEndAngle() const; virtual qreal GetEndAngle() const Q_DECL_OVERRIDE;
qreal GetLength () const; qreal GetLength () const;
qreal GetKasm1() const; qreal GetKasm1() const;

View File

@ -57,7 +57,7 @@ public:
* @param splPath spline path. * @param splPath spline path.
*/ */
VSplinePath(const VSplinePath& splPath); VSplinePath(const VSplinePath& splPath);
virtual ~VSplinePath(); virtual ~VSplinePath() Q_DECL_OVERRIDE;
/** /**
* @brief append add point in the end of list points. * @brief append add point in the end of list points.
* @param point new point. * @param point new point.
@ -176,8 +176,8 @@ public:
int Segment(const QPointF &p) const; int Segment(const QPointF &p) const;
virtual qreal GetStartAngle () const; virtual qreal GetStartAngle () const Q_DECL_OVERRIDE;
virtual qreal GetEndAngle () const; virtual qreal GetEndAngle () const Q_DECL_OVERRIDE;
private: private:
QSharedDataPointer<VSplinePathData> d; QSharedDataPointer<VSplinePathData> d;
}; };

View File

@ -47,7 +47,7 @@ public:
VContour(int height, int width); VContour(int height, int width);
VContour(const VContour &contour); VContour(const VContour &contour);
VContour &operator=(const VContour &contour); VContour &operator=(const VContour &contour);
virtual ~VContour(); ~VContour();
void SetContour(const QVector<QPointF> &contour); void SetContour(const QVector<QPointF> &contour);
QVector<QPointF> GetContour() const; QVector<QPointF> GetContour() const;

View File

@ -43,7 +43,7 @@ public:
VLayoutDetail(); VLayoutDetail();
VLayoutDetail(const VLayoutDetail &detail); VLayoutDetail(const VLayoutDetail &detail);
VLayoutDetail &operator=(const VLayoutDetail &detail); VLayoutDetail &operator=(const VLayoutDetail &detail);
virtual ~VLayoutDetail(); virtual ~VLayoutDetail() Q_DECL_OVERRIDE;
QVector<QPointF> GetContourPoints() const; QVector<QPointF> GetContourPoints() const;
void SetCountourPoints(const QVector<QPointF> &points); void SetCountourPoints(const QVector<QPointF> &points);

View File

@ -44,7 +44,7 @@ class VLayoutGenerator :public QObject
Q_OBJECT Q_OBJECT
public: public:
VLayoutGenerator(QObject *parent = 0); VLayoutGenerator(QObject *parent = 0);
virtual ~VLayoutGenerator(); virtual ~VLayoutGenerator() Q_DECL_OVERRIDE;
void SetDetails(const QVector<VLayoutDetail> &details); void SetDetails(const QVector<VLayoutDetail> &details);
void SetLayoutWidth(qreal width); void SetLayoutWidth(qreal width);

View File

@ -45,7 +45,7 @@ public:
VLayoutPaper(int height, int width); VLayoutPaper(int height, int width);
VLayoutPaper(const VLayoutPaper &paper); VLayoutPaper(const VLayoutPaper &paper);
VLayoutPaper &operator=(const VLayoutPaper &paper); VLayoutPaper &operator=(const VLayoutPaper &paper);
virtual ~VLayoutPaper(); ~VLayoutPaper();
int GetHeight() const; int GetHeight() const;
void SetHeight(int height); void SetHeight(int height);

View File

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

View File

@ -38,7 +38,7 @@ class UndoEvent : public QEvent
{ {
public: public:
UndoEvent(); UndoEvent();
virtual ~UndoEvent(); virtual ~UndoEvent() Q_DECL_OVERRIDE;
}; };
#endif // UNDOEVENT_H #endif // UNDOEVENT_H

View File

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

View File

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

View File

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

View File

@ -40,7 +40,7 @@ public:
VArcAngle(const quint32 &id, const quint32 &parentId, const VAbstractCurve *curve, CurveAngle angle); VArcAngle(const quint32 &id, const quint32 &parentId, const VAbstractCurve *curve, CurveAngle angle);
VArcAngle(const VArcAngle &var); VArcAngle(const VArcAngle &var);
VArcAngle &operator=(const VArcAngle &var); VArcAngle &operator=(const VArcAngle &var);
virtual ~VArcAngle(); virtual ~VArcAngle() Q_DECL_OVERRIDE;
}; };
#endif // VARCANGLE_H #endif // VARCANGLE_H

View File

@ -40,7 +40,7 @@ public:
VArcLength(const quint32 &id, const quint32 &parentId, const VAbstractCurve *arc, Unit patternUnit); VArcLength(const quint32 &id, const quint32 &parentId, const VAbstractCurve *arc, Unit patternUnit);
VArcLength(const VArcLength &var); VArcLength(const VArcLength &var);
VArcLength &operator=(const VArcLength &var); VArcLength &operator=(const VArcLength &var);
virtual ~VArcLength(); virtual ~VArcLength() Q_DECL_OVERRIDE;
}; };
#endif // VARCLENGTH_H #endif // VARCLENGTH_H

View File

@ -41,7 +41,7 @@ public:
VArcRadius(const quint32 &id, const quint32 &parentId, const VArc *arc, Unit patternUnit); VArcRadius(const quint32 &id, const quint32 &parentId, const VArc *arc, Unit patternUnit);
VArcRadius(const VArcRadius &var); VArcRadius(const VArcRadius &var);
VArcRadius &operator=(const VArcRadius &var); VArcRadius &operator=(const VArcRadius &var);
virtual ~VArcRadius(); virtual ~VArcRadius() Q_DECL_OVERRIDE;
}; };
#endif // VARCRADIUS_H #endif // VARCRADIUS_H

View File

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

View File

@ -42,7 +42,7 @@ public:
VCurveAngle(const quint32 &id, const quint32 &parentId, const VAbstractCurve *curve, CurveAngle angle); VCurveAngle(const quint32 &id, const quint32 &parentId, const VAbstractCurve *curve, CurveAngle angle);
VCurveAngle(const VCurveAngle &var); VCurveAngle(const VCurveAngle &var);
VCurveAngle &operator=(const VCurveAngle &var); VCurveAngle &operator=(const VCurveAngle &var);
virtual ~VCurveAngle(); virtual ~VCurveAngle() Q_DECL_OVERRIDE;
}; };
#endif // VCURVEANGLE_H #endif // VCURVEANGLE_H

View File

@ -41,7 +41,7 @@ public:
VCurveLength(const quint32 &id, const quint32 &parentId, const VAbstractCurve *curve, Unit patternUnit); VCurveLength(const quint32 &id, const quint32 &parentId, const VAbstractCurve *curve, Unit patternUnit);
VCurveLength(const VCurveLength &var); VCurveLength(const VCurveLength &var);
VCurveLength &operator=(const VCurveLength &var); VCurveLength &operator=(const VCurveLength &var);
virtual ~VCurveLength(); virtual ~VCurveLength() Q_DECL_OVERRIDE;
}; };
#endif // VCURVELENGTH_H #endif // VCURVELENGTH_H

View File

@ -41,9 +41,9 @@ public:
VCurveVariable(const quint32 &id, const quint32 &parentId); VCurveVariable(const quint32 &id, const quint32 &parentId);
VCurveVariable(const VCurveVariable &var); VCurveVariable(const VCurveVariable &var);
VCurveVariable &operator=(const VCurveVariable &var); VCurveVariable &operator=(const VCurveVariable &var);
virtual ~VCurveVariable(); virtual ~VCurveVariable() Q_DECL_OVERRIDE;
virtual bool Filter(quint32 id); virtual bool Filter(quint32 id) Q_DECL_OVERRIDE;
quint32 GetId() const; quint32 GetId() const;
void SetId(const quint32 &id); void SetId(const quint32 &id);

View File

@ -44,7 +44,7 @@ public:
QString description = QString()); QString description = QString());
VIncrement(const VIncrement &incr); VIncrement(const VIncrement &incr);
VIncrement &operator=(const VIncrement &incr); VIncrement &operator=(const VIncrement &incr);
virtual ~VIncrement(); virtual ~VIncrement() Q_DECL_OVERRIDE;
quint32 getId() const; quint32 getId() const;
void setId(const quint32 &value); void setId(const quint32 &value);

View File

@ -30,6 +30,7 @@
#define VINTERNALVARIABLE_P_H #define VINTERNALVARIABLE_P_H
#include <QSharedData> #include <QSharedData>
#include "../vmisc/def.h"
#ifdef Q_CC_GNU #ifdef Q_CC_GNU
#pragma GCC diagnostic push #pragma GCC diagnostic push

View File

@ -41,9 +41,9 @@ 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);
VLineAngle &operator=(const VLineAngle &var); VLineAngle &operator=(const VLineAngle &var);
virtual ~VLineAngle(); virtual ~VLineAngle() Q_DECL_OVERRIDE;
virtual bool Filter(quint32 id); virtual bool Filter(quint32 id) Q_DECL_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

@ -42,9 +42,9 @@ 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);
VLengthLine &operator=(const VLengthLine &var); VLengthLine &operator=(const VLengthLine &var);
virtual ~VLengthLine(); virtual ~VLengthLine() Q_DECL_OVERRIDE;
virtual bool Filter(quint32 id); virtual bool Filter(quint32 id) Q_DECL_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

@ -50,7 +50,7 @@ public:
const QString &description = QString(), const QString &TagName = QString()); const QString &description = QString(), const QString &TagName = QString());
VMeasurement(const VMeasurement &m); VMeasurement(const VMeasurement &m);
VMeasurement &operator=(const VMeasurement &m); VMeasurement &operator=(const VMeasurement &m);
virtual ~VMeasurement(); virtual ~VMeasurement() Q_DECL_OVERRIDE;
QString GetGuiText() const; QString GetGuiText() const;
QString TagName() const; QString TagName() const;

View File

@ -40,7 +40,7 @@ public:
VSplineAngle(const quint32 &id, const quint32 &parentId, const VAbstractCurve *curve, CurveAngle angle); VSplineAngle(const quint32 &id, const quint32 &parentId, const VAbstractCurve *curve, CurveAngle angle);
VSplineAngle(const VSplineAngle &var); VSplineAngle(const VSplineAngle &var);
VSplineAngle &operator=(const VSplineAngle &var); VSplineAngle &operator=(const VSplineAngle &var);
virtual ~VSplineAngle(); virtual ~VSplineAngle() Q_DECL_OVERRIDE;
}; };
#endif // VSPLINEANGLE_H #endif // VSPLINEANGLE_H

View File

@ -41,7 +41,7 @@ public:
VSplineLength(const quint32 &id, const quint32 &parentId, const VAbstractCurve *path, Unit patternUnit); VSplineLength(const quint32 &id, const quint32 &parentId, const VAbstractCurve *path, Unit patternUnit);
VSplineLength(const VSplineLength &var); VSplineLength(const VSplineLength &var);
VSplineLength &operator=(const VSplineLength &var); VSplineLength &operator=(const VSplineLength &var);
virtual ~VSplineLength(); virtual ~VSplineLength() Q_DECL_OVERRIDE;
}; };
#endif // VSPLINELENGTH_H #endif // VSPLINELENGTH_H

View File

@ -43,7 +43,7 @@ public:
VVariable(const QString &name, const qreal &base, const QString &description = QString()); VVariable(const QString &name, const qreal &base, const QString &description = QString());
VVariable(const VVariable &var); VVariable(const VVariable &var);
VVariable &operator=(const VVariable &var); VVariable &operator=(const VVariable &var);
virtual ~VVariable(); virtual ~VVariable() Q_DECL_OVERRIDE;
qreal GetBase() const; qreal GetBase() const;
void SetBase(const qreal &value); void SetBase(const qreal &value);
@ -59,7 +59,7 @@ public:
void SetValue(const qreal &size, const qreal &height, Unit patternUnit); void SetValue(const qreal &size, const qreal &height, Unit patternUnit);
virtual bool IsNotUsed() const; virtual bool IsNotUsed() const Q_DECL_OVERRIDE;
private: private:
QSharedDataPointer<VVariableData> d; QSharedDataPointer<VVariableData> d;
}; };

View File

@ -48,7 +48,7 @@ public:
VDetail(const QString &name, const QVector<VNodeDetail> &nodes); VDetail(const QString &name, const QVector<VNodeDetail> &nodes);
VDetail(const VDetail &detail); VDetail(const VDetail &detail);
VDetail &operator=(const VDetail &detail); VDetail &operator=(const VDetail &detail);
virtual ~VDetail(); virtual ~VDetail() Q_DECL_OVERRIDE;
void append(const VNodeDetail &node); void append(const VNodeDetail &node);
void Clear(); void Clear();

View File

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

View File

@ -55,10 +55,10 @@ class VPROPERTYEXPLORERSHARED_EXPORT QVector3DProperty : public VProperty
public: public:
QVector3DProperty(const QString& name); QVector3DProperty(const QString& name);
virtual ~QVector3DProperty() {} virtual ~QVector3DProperty() Q_DECL_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; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
//! Returns item flags //! Returns item flags
Qt::ItemFlags flags(int column = DPC_Name) const; Qt::ItemFlags flags(int column = DPC_Name) const;
@ -73,20 +73,20 @@ public:
virtual void setVector(float x, float y, float z); virtual void setVector(float x, float y, float z);
//! 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 Q_DECL_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 Q_DECL_OVERRIDE;
//! Sets the value of the property //! Sets the value of the property
virtual void setValue(const QVariant& value); virtual void setValue(const QVariant& value) Q_DECL_OVERRIDE;
//! Returns the value of the property as a QVariant //! Returns the value of the property as a QVariant
virtual QVariant getValue() const; virtual QVariant getValue() const Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(QVector3DProperty) Q_DISABLE_COPY(QVector3DProperty)

View File

@ -35,29 +35,29 @@ public:
VBoolProperty(const QString& name); VBoolProperty(const QString& name);
//! Destructor //! Destructor
~VBoolProperty() {} virtual ~VBoolProperty() Q_DECL_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; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_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); virtual bool setData (const QVariant& data, int role = Qt::EditRole) Q_DECL_OVERRIDE;
//! Returns item flags //! Returns item flags
virtual Qt::ItemFlags flags(int column = DPC_Name) const; virtual Qt::ItemFlags flags(int column = DPC_Name) const Q_DECL_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 Q_DECL_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 Q_DECL_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

@ -35,7 +35,7 @@ public:
VColorProperty(const QString &name); 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; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_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
@ -43,23 +43,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); const QAbstractItemDelegate* delegate) Q_DECL_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); virtual bool setEditorData(QWidget* editor) Q_DECL_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 Q_DECL_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 Q_DECL_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 Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(VColorProperty) Q_DISABLE_COPY(VColorProperty)

View File

@ -41,7 +41,7 @@ public:
VColorPropertyEditor(QWidget *parent); VColorPropertyEditor(QWidget *parent);
//! Destructor //! Destructor
virtual ~VColorPropertyEditor(); virtual ~VColorPropertyEditor() Q_DECL_OVERRIDE;
//! Returns the color currently set //! Returns the color currently set

View File

@ -34,10 +34,10 @@ public:
explicit VEmptyProperty(const QString& name); explicit VEmptyProperty(const QString& name);
//! Destructor //! Destructor
virtual ~VEmptyProperty(); virtual ~VEmptyProperty() Q_DECL_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; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_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
@ -45,23 +45,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); const QAbstractItemDelegate* delegate) Q_DECL_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 Q_DECL_OVERRIDE;
//! Returns item flags //! Returns item flags
virtual Qt::ItemFlags flags(int column = DPC_Name) const; virtual Qt::ItemFlags flags(int column = DPC_Name) const Q_DECL_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 Q_DECL_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 Q_DECL_OVERRIDE;
protected: protected:
//! Protected constructor //! Protected constructor

View File

@ -36,10 +36,10 @@ public:
VEnumProperty(const QString& name); VEnumProperty(const QString& name);
//! Destructor //! Destructor
~VEnumProperty() {} virtual ~VEnumProperty() Q_DECL_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; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_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
@ -47,10 +47,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); const QAbstractItemDelegate* delegate) Q_DECL_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 Q_DECL_OVERRIDE;
//! Sets the enumeration literals //! Sets the enumeration literals
virtual void setLiterals(const QStringList &literals); virtual void setLiterals(const QStringList &literals);
@ -59,28 +59,28 @@ 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); virtual void setValue(const QVariant& value) Q_DECL_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 Q_DECL_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 = nullptr) const; virtual VProperty* clone(bool include_children = true, VProperty* container = nullptr) const Q_DECL_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); virtual void setSetting(const QString& key, const QVariant& value) Q_DECL_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 Q_DECL_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 Q_DECL_OVERRIDE;
public slots: public slots:
void currentIndexChanged(int index); void currentIndexChanged(int index);

View File

@ -37,7 +37,7 @@ public:
VFileProperty(const QString &name); VFileProperty(const QString &name);
//! The destructor //! The destructor
~VFileProperty(); virtual ~VFileProperty() Q_DECL_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);
@ -52,7 +52,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; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_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,34 +60,34 @@ 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) Q_DECL_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); virtual bool setEditorData(QWidget* editor) Q_DECL_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 Q_DECL_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); virtual void setSetting(const QString& key, const QVariant& value) Q_DECL_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 Q_DECL_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 Q_DECL_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 Q_DECL_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 = nullptr) const; virtual VProperty* clone(bool include_children = true, VProperty* container = nullptr) const Q_DECL_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

@ -38,7 +38,7 @@ class VPROPERTYEXPLORERSHARED_EXPORT VFileEditWidget : public QWidget
public: public:
VFileEditWidget(QWidget* parent, bool is_directory = false); VFileEditWidget(QWidget* parent, bool is_directory = false);
virtual ~VFileEditWidget(); virtual ~VFileEditWidget() Q_DECL_OVERRIDE;
//! This function returns the file currently set to this editor //! This function returns the file currently set to this editor

View File

@ -45,10 +45,10 @@ public:
VLineColorProperty(const QString& name); VLineColorProperty(const QString& name);
//! Destructor //! Destructor
~VLineColorProperty() {} virtual ~VLineColorProperty() Q_DECL_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; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_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); const QAbstractItemDelegate* delegate) Q_DECL_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 Q_DECL_OVERRIDE;
//! Sets the colors //! Sets the colors
virtual void setColors(const QMap<QString, QString> &colors); virtual void setColors(const QMap<QString, QString> &colors);
@ -68,17 +68,17 @@ 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); virtual void setValue(const QVariant& value) Q_DECL_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 Q_DECL_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 = nullptr) const; virtual VProperty* clone(bool include_children = true, VProperty* container = nullptr) const Q_DECL_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

@ -46,10 +46,10 @@ public:
VLineTypeProperty(const QString& name); VLineTypeProperty(const QString& name);
//! Destructor //! Destructor
~VLineTypeProperty() {} virtual ~VLineTypeProperty() Q_DECL_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; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_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
@ -57,10 +57,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); const QAbstractItemDelegate* delegate) Q_DECL_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 Q_DECL_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);
@ -69,17 +69,17 @@ 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); virtual void setValue(const QVariant& value) Q_DECL_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 Q_DECL_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 = nullptr) const; virtual VProperty* clone(bool include_children = true, VProperty* container = nullptr) const Q_DECL_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

@ -43,32 +43,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) Q_DECL_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 Q_DECL_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) Q_DECL_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 Q_DECL_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 Q_DECL_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 Q_DECL_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 Q_DECL_OVERRIDE;
public slots: public slots:
void valueChanged(int i); void valueChanged(int i);
protected: protected:

View File

@ -38,10 +38,10 @@ public:
VObjectProperty(const QString& name); VObjectProperty(const QString& name);
//! Destructor //! Destructor
~VObjectProperty() {} virtual ~VObjectProperty() Q_DECL_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; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_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
@ -49,13 +49,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); const QAbstractItemDelegate* delegate) Q_DECL_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); virtual bool setEditorData(QWidget* editor) Q_DECL_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 Q_DECL_OVERRIDE;
//! Sets the objects list //! Sets the objects list
void setObjectsList(const QMap<QString, quint32> &objects); void setObjectsList(const QMap<QString, quint32> &objects);
@ -64,17 +64,17 @@ 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); virtual void setValue(const QVariant& value) Q_DECL_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 Q_DECL_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 = nullptr) const; virtual VProperty* clone(bool include_children = true, VProperty* container = nullptr) const Q_DECL_OVERRIDE;
public slots: public slots:
void currentIndexChanged(int index); void currentIndexChanged(int index);

View File

@ -34,13 +34,13 @@ class VPROPERTYEXPLORERSHARED_EXPORT VPointFProperty : public VProperty
public: public:
VPointFProperty(const QString& name); VPointFProperty(const QString& name);
virtual ~VPointFProperty() {} virtual ~VPointFProperty() Q_DECL_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; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
//! Returns item flags //! Returns item flags
Qt::ItemFlags flags(int column = DPC_Name) const; Qt::ItemFlags flags(int column = DPC_Name) const Q_DECL_OVERRIDE;
//! Returns the QPointF //! Returns the QPointF
virtual QPointF getPointF() const; virtual QPointF getPointF() const;
@ -52,20 +52,20 @@ 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; virtual QString type() const Q_DECL_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 Q_DECL_OVERRIDE;
//! Sets the value of the property //! Sets the value of the property
virtual void setValue(const QVariant& value); virtual void setValue(const QVariant& value) Q_DECL_OVERRIDE;
//! Returns the value of the property as a QVariant //! Returns the value of the property as a QVariant
virtual QVariant getValue() const; virtual QVariant getValue() const Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(VPointFProperty) Q_DISABLE_COPY(VPointFProperty)

View File

@ -35,10 +35,10 @@ public:
VShortcutProperty(const QString &name); VShortcutProperty(const QString &name);
//! The destructor //! The destructor
~VShortcutProperty(); virtual ~VShortcutProperty() Q_DECL_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; virtual QVariant data (int column = DPC_Name, int role = Qt::DisplayRole) const Q_DECL_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
@ -46,26 +46,26 @@ 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) Q_DECL_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); virtual bool setEditorData(QWidget* editor) Q_DECL_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 Q_DECL_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 Q_DECL_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 Q_DECL_OVERRIDE;
//! Sets the value of the property //! Sets the value of the property
virtual void setValue(const QVariant& value); virtual void setValue(const QVariant& value) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(VShortcutProperty) Q_DISABLE_COPY(VShortcutProperty)

View File

@ -38,7 +38,7 @@ class VPROPERTYEXPLORERSHARED_EXPORT VShortcutEditWidget : public QWidget
public: public:
VShortcutEditWidget(QWidget* parent); VShortcutEditWidget(QWidget* parent);
virtual ~VShortcutEditWidget(); virtual ~VShortcutEditWidget() Q_DECL_OVERRIDE;
//! Needed for proper event handling //! Needed for proper event handling
bool eventFilter(QObject* obj, QEvent* evenvt); bool eventFilter(QObject* obj, QEvent* evenvt);

View File

@ -43,33 +43,33 @@ 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) Q_DECL_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 Q_DECL_OVERRIDE;
void setReadOnly(bool readOnly); void setReadOnly(bool readOnly);
//! Sets the settings. //! Sets the settings.
virtual void setSetting(const QString& key, const QVariant& value); virtual void setSetting(const QString& key, const QVariant& value) Q_DECL_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 Q_DECL_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 Q_DECL_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 Q_DECL_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 = nullptr) const; virtual VProperty* clone(bool include_children = true, VProperty* container = nullptr) const Q_DECL_OVERRIDE;
virtual void UpdateParent(const QVariant &value); virtual void UpdateParent(const QVariant &value) Q_DECL_OVERRIDE;
int getTypeForParent() const; int getTypeForParent() const;
void setTypeForParent(int value); void setTypeForParent(int value);

View File

@ -42,7 +42,7 @@ public:
VWidgetProperty(const QString &name, QWidget* widget = nullptr); VWidgetProperty(const QString &name, QWidget* widget = nullptr);
//! The destructor //! The destructor
~VWidgetProperty(); virtual ~VWidgetProperty() Q_DECL_OVERRIDE;
//! Returns the widget held by this property //! Returns the widget held by this property
QWidget* getWidget() const; QWidget* getWidget() const;
@ -51,14 +51,14 @@ public:
void setWidget(QWidget* widget); void setWidget(QWidget* widget);
//! 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 Q_DECL_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 = nullptr) const; virtual VProperty* clone(bool include_children = true, VProperty* container = nullptr) const Q_DECL_OVERRIDE;
}; };
} }

View File

@ -38,8 +38,7 @@ class VPROPERTYEXPLORERSHARED_EXPORT VAbstractPropertyFactory
{ {
public: public:
//! Empty virtual destructor //! Empty virtual destructor
virtual ~VAbstractPropertyFactory() virtual ~VAbstractPropertyFactory() {}
{}
//! Creates a new property of a certain type and assigns a name and description (otionally) //! Creates a new property of a certain type and assigns a name and description (otionally)
//! \param type The type of the property as string //! \param type The type of the property as string

View File

@ -46,7 +46,7 @@ public:
VFilePropertyPrivate() VFilePropertyPrivate()
: VPropertyPrivate(), FileFilters(), Directory(false) {} : VPropertyPrivate(), FileFilters(), Directory(false) {}
virtual ~VFilePropertyPrivate(); virtual ~VFilePropertyPrivate() Q_DECL_OVERRIDE;
}; };
VFilePropertyPrivate::~VFilePropertyPrivate() VFilePropertyPrivate::~VFilePropertyPrivate()

View File

@ -41,7 +41,7 @@ class VPROPERTYEXPLORERSHARED_EXPORT UserChangeEvent : public QEvent
{ {
public: public:
UserChangeEvent() : QEvent(static_cast<QEvent::Type>(MyCustomEventType)) {} UserChangeEvent() : QEvent(static_cast<QEvent::Type>(MyCustomEventType)) {}
virtual ~UserChangeEvent(); virtual ~UserChangeEvent() Q_DECL_OVERRIDE;
}; };
class VPropertyPrivate; class VPropertyPrivate;
@ -60,7 +60,7 @@ public:
explicit VProperty(const QString& name, QVariant::Type type = QVariant::String); explicit VProperty(const QString& name, QVariant::Type type = QVariant::String);
//! Destructor //! Destructor
virtual ~VProperty(); virtual ~VProperty() Q_DECL_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;

View File

@ -33,25 +33,28 @@ class VPROPERTYEXPLORERSHARED_EXPORT VPropertyDelegate : public QStyledItemDeleg
Q_OBJECT Q_OBJECT
public: public:
explicit VPropertyDelegate(QObject *parent = 0); explicit VPropertyDelegate(QObject *parent = 0);
virtual ~VPropertyDelegate(); virtual ~VPropertyDelegate() Q_DECL_OVERRIDE;
//! Creates the editor widget //! Creates the editor widget
virtual QWidget* createEditor (QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; virtual QWidget* createEditor (QWidget* parent, const QStyleOptionViewItem& option,
const QModelIndex& index) const Q_DECL_OVERRIDE;
//! Sets the index data to the editor //! Sets the index data to the editor
virtual void setEditorData (QWidget * editor, const QModelIndex & index) const; virtual void setEditorData (QWidget * editor, const QModelIndex & index) const Q_DECL_OVERRIDE;
//! Updates the index data //! Updates the index data
virtual void setModelData (QWidget * editor, QAbstractItemModel * model, const QModelIndex & index) const; virtual void setModelData (QWidget * editor, QAbstractItemModel * model,
const QModelIndex & index) const Q_DECL_OVERRIDE;
//! Returns the size hint //! Returns the size hint
virtual QSize sizeHint (const QStyleOptionViewItem& option, const QModelIndex& index) const; virtual QSize sizeHint (const QStyleOptionViewItem& option, const QModelIndex& index) const Q_DECL_OVERRIDE;
//! Sets the row height. Set this to 0 and the standard will be taken //! Sets the row height. Set this to 0 and the standard will be taken
void setRowHeight(int height = 0, bool add_to_standard = false); void setRowHeight(int height = 0, bool add_to_standard = false);
//! Renders the delegate using the given painter and style option for the item specified by index. //! Renders the delegate using the given painter and style option for the item specified by index.
virtual void paint (QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const; virtual void paint (QPainter* painter, const QStyleOptionViewItem& option,
const QModelIndex& index ) const Q_DECL_OVERRIDE;
protected: protected:
int RowHeight; int RowHeight;

View File

@ -39,7 +39,7 @@ public:
VPropertyFactoryManager(QObject* parent = nullptr); VPropertyFactoryManager(QObject* parent = nullptr);
//! Destructor //! Destructor
virtual ~VPropertyFactoryManager(); virtual ~VPropertyFactoryManager() Q_DECL_OVERRIDE;
//! Register a factory to the factory manager //! Register a factory to the factory manager
//! Note that the manager takes ownership of the factory, so don't delete it. //! Note that the manager takes ownership of the factory, so don't delete it.

View File

@ -47,12 +47,12 @@ public:
explicit VPropertyFormView(VPropertySet* property_set, QWidget *parent = 0); explicit VPropertyFormView(VPropertySet* property_set, QWidget *parent = 0);
//! Destructor //! Destructor
virtual ~VPropertyFormView(); virtual ~VPropertyFormView() Q_DECL_OVERRIDE;
public slots: public slots:
//! Rebuilds the whole form //! Rebuilds the whole form
virtual void build(); virtual void build() Q_DECL_OVERRIDE;
//! Set the source model. Leads to the rebuild of the form //! Set the source model. Leads to the rebuild of the form
//! \param model The model to use //! \param model The model to use

View File

@ -66,8 +66,7 @@ public:
IgnoreDataChangedSignal(false) IgnoreDataChangedSignal(false)
{} {}
virtual ~VPropertyFormViewPrivate() virtual ~VPropertyFormViewPrivate() Q_DECL_OVERRIDE {}
{}
private: private:
Q_DISABLE_COPY(VPropertyFormViewPrivate) Q_DISABLE_COPY(VPropertyFormViewPrivate)

View File

@ -68,8 +68,7 @@ public:
: Properties(properties), EditorWidgets(QList<SEditorWidget>()), UpdateEditors(true) : Properties(properties), EditorWidgets(QList<SEditorWidget>()), UpdateEditors(true)
{} {}
virtual ~VPropertyFormWidgetPrivate() virtual ~VPropertyFormWidgetPrivate() {}
{}
}; };
#ifdef Q_CC_CLANG #ifdef Q_CC_CLANG

View File

@ -59,7 +59,7 @@ class VPROPERTYEXPLORERSHARED_EXPORT VPropertyModel : public QAbstractItemModel
Q_OBJECT Q_OBJECT
public: public:
explicit VPropertyModel(QObject * parent = 0); explicit VPropertyModel(QObject * parent = 0);
virtual ~VPropertyModel(); virtual ~VPropertyModel() Q_DECL_OVERRIDE;
//! Adds the property to the model and attaches it to the parentid //! Adds the property to the model and attaches it to the parentid
//! \param emitsignals If this is set to false, this function will not call beginInsertRows() and endInsertRows(), //! \param emitsignals If this is set to false, this function will not call beginInsertRows() and endInsertRows(),
@ -78,25 +78,26 @@ public:
virtual Qt::ItemFlags flags (const QModelIndex& index) const; virtual Qt::ItemFlags flags (const QModelIndex& index) const;
//! Sets the role data for the item at index to value //! Sets the role data for the item at index to value
virtual bool setData (const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); virtual bool setData (const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
//! Returns the model index at row/column //! Returns the model index at row/column
virtual QModelIndex index (int row, int column, const QModelIndex & parent = QModelIndex() ) const; virtual QModelIndex index (int row, int column, const QModelIndex & parent = QModelIndex() ) const Q_DECL_OVERRIDE;
//! Returns the parent of one model index //! Returns the parent of one model index
virtual QModelIndex parent (const QModelIndex& index) const; virtual QModelIndex parent (const QModelIndex& index) const Q_DECL_OVERRIDE;
//! Returns the data of an model index //! Returns the data of an model index
virtual QVariant data (const QModelIndex& index, int role = Qt::DisplayRole) const; virtual QVariant data (const QModelIndex& index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
//! Returns the data for the given role and section in the header with the specified orientation. //! Returns the data for the given role and section in the header with the specified orientation.
virtual QVariant headerData (int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; virtual QVariant headerData (int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
//! Returns the number of rows //! Returns the number of rows
virtual int rowCount ( const QModelIndex & parent = QModelIndex() ) const; virtual int rowCount ( const QModelIndex & parent = QModelIndex() ) const Q_DECL_OVERRIDE;
//! Returns the number of columns //! Returns the number of columns
virtual int columnCount ( const QModelIndex & parent = QModelIndex() ) const; virtual int columnCount ( const QModelIndex & parent = QModelIndex() ) const Q_DECL_OVERRIDE;
//! Gets a property by its ModelIndex //! Gets a property by its ModelIndex
//! \param index The modelIndex of the property. //! \param index The modelIndex of the property.

View File

@ -44,7 +44,7 @@ public:
VPropertyTreeView(VPropertyModel* model, QWidget *parent = 0); VPropertyTreeView(VPropertyModel* model, QWidget *parent = 0);
//! Destructor //! Destructor
virtual ~VPropertyTreeView(); virtual ~VPropertyTreeView() Q_DECL_OVERRIDE;
//! Sets the height for each row. Set this to 0 in order to let the standard delegate decide //! Sets the height for each row. Set this to 0 in order to let the standard delegate decide
void setRowHeight(int height = 0, bool add_to_standard = false); void setRowHeight(int height = 0, bool add_to_standard = false);

View File

@ -46,7 +46,7 @@ public:
//! Creates a new property of a certain type and assigns a name and description (otionally) //! Creates a new property of a certain type and assigns a name and description (otionally)
//! \param type The type of the property as string //! \param type The type of the property as string
//! \return Returns the created property or NULL if it couldn't be be created //! \return Returns the created property or NULL if it couldn't be be created
virtual VProperty* createProperty(const QString& type, const QString &name); virtual VProperty* createProperty(const QString& type, const QString &name) Q_DECL_OVERRIDE;
}; };
} }

View File

@ -51,7 +51,7 @@ public:
: VPropertyPrivate(), Widget(nullptr) {} : VPropertyPrivate(), Widget(nullptr) {}
//! Destructor //! Destructor
virtual ~VWidgetPropertyPrivate() virtual ~VWidgetPropertyPrivate() Q_DECL_OVERRIDE
{ {
if (Widget) if (Widget)
{ {

View File

@ -49,20 +49,20 @@ class DialogEditWrongFormula : public DialogTool
Q_OBJECT Q_OBJECT
public: public:
explicit DialogEditWrongFormula(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr); explicit DialogEditWrongFormula(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr);
virtual ~DialogEditWrongFormula(); virtual ~DialogEditWrongFormula() Q_DECL_OVERRIDE;
QString GetFormula() const; QString GetFormula() const;
void SetFormula(const QString &value); void SetFormula(const QString &value);
void setCheckZero(bool value); void setCheckZero(bool value);
void setPostfix(const QString &value); void setPostfix(const QString &value);
public slots: public slots:
virtual void DialogAccepted(); virtual void DialogAccepted() Q_DECL_OVERRIDE;
virtual void DialogRejected(); virtual void DialogRejected() Q_DECL_OVERRIDE;
/** /**
* @brief DeployFormulaTextEdit grow or shrink formula input * @brief DeployFormulaTextEdit grow or shrink formula input
*/ */
void DeployFormulaTextEdit(); void DeployFormulaTextEdit();
virtual void EvalFormula(); virtual void EvalFormula() Q_DECL_OVERRIDE;
void ValChenged(int row); void ValChenged(int row);
void SizeHeight(); void SizeHeight();
void PutHere(); void PutHere();
@ -78,8 +78,8 @@ public slots:
void AngleLines(); void AngleLines();
void Increments(); void Increments();
protected: protected:
virtual void CheckState(); virtual void CheckState() Q_DECL_OVERRIDE;
virtual void closeEvent(QCloseEvent *event); virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogEditWrongFormula) Q_DISABLE_COPY(DialogEditWrongFormula)
Ui::DialogEditWrongFormula *ui; Ui::DialogEditWrongFormula *ui;

View File

@ -44,13 +44,13 @@ class DialogUndo : public QDialog
public: public:
explicit DialogUndo(QWidget *parent = 0); explicit DialogUndo(QWidget *parent = 0);
UndoButton Result() const; UndoButton Result() const;
~DialogUndo(); virtual ~DialogUndo() Q_DECL_OVERRIDE;
public slots: public slots:
void Undo(); void Undo();
void Fix(); void Fix();
void Cancel(); void Cancel();
protected: protected:
virtual void closeEvent ( QCloseEvent * event ); virtual void closeEvent ( QCloseEvent * event ) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogUndo) Q_DISABLE_COPY(DialogUndo)
Ui::DialogUndo *ui; Ui::DialogUndo *ui;

View File

@ -44,7 +44,7 @@ class DialogAlongLine : public DialogTool
Q_OBJECT Q_OBJECT
public: public:
DialogAlongLine(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr); DialogAlongLine(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr);
virtual ~DialogAlongLine(); virtual ~DialogAlongLine() Q_DECL_OVERRIDE;
void SetPointName(const QString &value); void SetPointName(const QString &value);
@ -63,7 +63,7 @@ public:
quint32 GetSecondPointId() const; quint32 GetSecondPointId() const;
void SetSecondPointId(const quint32 &value); void SetSecondPointId(const quint32 &value);
public slots: public slots:
virtual void ChosenObject(quint32 id, const SceneObject &type); virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
/** /**
* @brief DeployFormulaTextEdit grow or shrink formula input * @brief DeployFormulaTextEdit grow or shrink formula input
*/ */
@ -76,12 +76,12 @@ public slots:
void FXLength(); void FXLength();
protected: protected:
virtual void ShowVisualization(); virtual void ShowVisualization() Q_DECL_OVERRIDE;
/** /**
* @brief SaveData Put dialog data in local variables * @brief SaveData Put dialog data in local variables
*/ */
virtual void SaveData(); virtual void SaveData() Q_DECL_OVERRIDE;
virtual void closeEvent(QCloseEvent *event); virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogAlongLine) Q_DISABLE_COPY(DialogAlongLine)

View File

@ -44,7 +44,7 @@ class DialogArc : public DialogTool
Q_OBJECT Q_OBJECT
public: public:
DialogArc(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr); DialogArc(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr);
virtual ~DialogArc(); virtual ~DialogArc() Q_DECL_OVERRIDE;
quint32 GetCenter() const; quint32 GetCenter() const;
void SetCenter(const quint32 &value); void SetCenter(const quint32 &value);
@ -61,7 +61,7 @@ public:
QString GetColor() const; QString GetColor() const;
void SetColor(const QString &value); void SetColor(const QString &value);
public slots: public slots:
virtual void ChosenObject(quint32 id, const SceneObject &type); virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
/** /**
* @brief DeployFormulaTextEdit grow or shrink formula input * @brief DeployFormulaTextEdit grow or shrink formula input
*/ */
@ -76,13 +76,13 @@ public slots:
void FXF1(); void FXF1();
void FXF2(); void FXF2();
protected: protected:
virtual void CheckState(); virtual void CheckState() Q_DECL_OVERRIDE;
virtual void ShowVisualization(); virtual void ShowVisualization() Q_DECL_OVERRIDE;
/** /**
* @brief SaveData Put dialog data in local variables * @brief SaveData Put dialog data in local variables
*/ */
virtual void SaveData(); virtual void SaveData() Q_DECL_OVERRIDE;
virtual void closeEvent(QCloseEvent *event); virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogArc) Q_DISABLE_COPY(DialogArc)

View File

@ -60,7 +60,7 @@ public:
void SetColor(const QString &value); void SetColor(const QString &value);
public slots: public slots:
virtual void ChosenObject(quint32 id, const SceneObject &type); virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
/** /**
* @brief DeployFormulaTextEdit grow or shrink formula input * @brief DeployFormulaTextEdit grow or shrink formula input
*/ */
@ -77,13 +77,13 @@ public slots:
void FXLength(); void FXLength();
protected: protected:
virtual void CheckState(); virtual void CheckState() Q_DECL_OVERRIDE;
virtual void ShowVisualization(); virtual void ShowVisualization() Q_DECL_OVERRIDE;
/** /**
* @brief SaveData Put dialog data in local variables * @brief SaveData Put dialog data in local variables
*/ */
virtual void SaveData(); virtual void SaveData() Q_DECL_OVERRIDE;
virtual void closeEvent(QCloseEvent *event); virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogArcWithLength) Q_DISABLE_COPY(DialogArcWithLength)

View File

@ -45,7 +45,7 @@ class DialogBisector : public DialogTool
public: public:
DialogBisector(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr); DialogBisector(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr);
virtual ~DialogBisector(); virtual ~DialogBisector() Q_DECL_OVERRIDE;
void SetPointName(const QString &value); void SetPointName(const QString &value);
@ -67,7 +67,7 @@ public:
QString GetLineColor() const; QString GetLineColor() const;
void SetLineColor(const QString &value); void SetLineColor(const QString &value);
public slots: public slots:
virtual void ChosenObject(quint32 id, const SceneObject &type); virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
/** /**
* @brief DeployFormulaTextEdit grow or shrink formula input * @brief DeployFormulaTextEdit grow or shrink formula input
*/ */
@ -76,15 +76,15 @@ public slots:
* @brief FormulaTextChanged when formula text changes for validation and calc * @brief FormulaTextChanged when formula text changes for validation and calc
*/ */
void FormulaTextChanged(); void FormulaTextChanged();
virtual void PointNameChanged(); virtual void PointNameChanged() Q_DECL_OVERRIDE;
void FXLength(); void FXLength();
protected: protected:
virtual void ShowVisualization(); virtual void ShowVisualization() Q_DECL_OVERRIDE;
/** /**
* @brief SaveData Put dialog data in local variables * @brief SaveData Put dialog data in local variables
*/ */
virtual void SaveData(); virtual void SaveData() Q_DECL_OVERRIDE;
virtual void closeEvent(QCloseEvent *event); virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogBisector) Q_DISABLE_COPY(DialogBisector)

View File

@ -42,7 +42,7 @@ class DialogCurveIntersectAxis : public DialogTool
public: public:
DialogCurveIntersectAxis(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr); DialogCurveIntersectAxis(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr);
virtual ~DialogCurveIntersectAxis(); virtual ~DialogCurveIntersectAxis() Q_DECL_OVERRIDE;
void SetPointName(const QString &value); void SetPointName(const QString &value);
@ -61,20 +61,20 @@ public:
QString GetLineColor() const; QString GetLineColor() const;
void SetLineColor(const QString &value); void SetLineColor(const QString &value);
virtual void ShowDialog(bool click); virtual void ShowDialog(bool click) Q_DECL_OVERRIDE;
public slots: public slots:
virtual void ChosenObject(quint32 id, const SceneObject &type); virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
void EvalAngle(); void EvalAngle();
void AngleTextChanged(); void AngleTextChanged();
void DeployAngleTextEdit(); void DeployAngleTextEdit();
void FXAngle(); void FXAngle();
protected: protected:
virtual void ShowVisualization(); virtual void ShowVisualization() Q_DECL_OVERRIDE;
/** /**
* @brief SaveData Put dialog data in local variables * @brief SaveData Put dialog data in local variables
*/ */
virtual void SaveData(); virtual void SaveData() Q_DECL_OVERRIDE;
virtual void closeEvent(QCloseEvent *event); virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogCurveIntersectAxis) Q_DISABLE_COPY(DialogCurveIntersectAxis)
Ui::DialogCurveIntersectAxis *ui; Ui::DialogCurveIntersectAxis *ui;

View File

@ -45,7 +45,7 @@ class DialogCutArc : public DialogTool
public: public:
DialogCutArc(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr); DialogCutArc(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr);
virtual ~DialogCutArc(); virtual ~DialogCutArc() Q_DECL_OVERRIDE;
void SetPointName(const QString &value); void SetPointName(const QString &value);
@ -60,7 +60,7 @@ public:
void SetChildrenId(const quint32 &ch1, const quint32 &ch2); void SetChildrenId(const quint32 &ch1, const quint32 &ch2);
public slots: public slots:
virtual void ChosenObject(quint32 id, const SceneObject &type); virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
/** /**
* @brief DeployFormulaTextEdit grow or shrink formula input * @brief DeployFormulaTextEdit grow or shrink formula input
*/ */
@ -71,12 +71,12 @@ public slots:
void FormulaTextChanged(); void FormulaTextChanged();
void FXLength(); void FXLength();
protected: protected:
virtual void ShowVisualization(); virtual void ShowVisualization() Q_DECL_OVERRIDE;
/** /**
* @brief SaveData Put dialog data in local variables * @brief SaveData Put dialog data in local variables
*/ */
virtual void SaveData(); virtual void SaveData() Q_DECL_OVERRIDE;
virtual void closeEvent(QCloseEvent *event); virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogCutArc) Q_DISABLE_COPY(DialogCutArc)
/** @brief ui keeps information about user interface */ /** @brief ui keeps information about user interface */

View File

@ -44,7 +44,7 @@ class DialogCutSpline : public DialogTool
Q_OBJECT Q_OBJECT
public: public:
DialogCutSpline(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr); DialogCutSpline(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr);
virtual ~DialogCutSpline(); virtual ~DialogCutSpline() Q_DECL_OVERRIDE;
void SetPointName(const QString &value); void SetPointName(const QString &value);
@ -59,19 +59,19 @@ public:
void SetChildrenId(const quint32 &ch1, const quint32 &ch2); void SetChildrenId(const quint32 &ch1, const quint32 &ch2);
public slots: public slots:
virtual void ChosenObject(quint32 id, const SceneObject &type); virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
/** /**
* @brief DeployFormulaTextEdit grow or shrink formula input * @brief DeployFormulaTextEdit grow or shrink formula input
*/ */
void DeployFormulaTextEdit(); void DeployFormulaTextEdit();
void FXLength(); void FXLength();
protected: protected:
virtual void ShowVisualization(); virtual void ShowVisualization() Q_DECL_OVERRIDE;
/** /**
* @brief SaveData Put dialog data in local variables * @brief SaveData Put dialog data in local variables
*/ */
virtual void SaveData(); virtual void SaveData() Q_DECL_OVERRIDE;
virtual void closeEvent(QCloseEvent *event); virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogCutSpline) Q_DISABLE_COPY(DialogCutSpline)

View File

@ -44,7 +44,7 @@ class DialogCutSplinePath : public DialogTool
Q_OBJECT Q_OBJECT
public: public:
DialogCutSplinePath(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr); DialogCutSplinePath(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr);
virtual ~DialogCutSplinePath(); virtual ~DialogCutSplinePath() Q_DECL_OVERRIDE;
void SetPointName(const QString &value); void SetPointName(const QString &value);
@ -59,19 +59,19 @@ public:
void SetChildrenId(const quint32 &ch1, const quint32 &ch2); void SetChildrenId(const quint32 &ch1, const quint32 &ch2);
public slots: public slots:
virtual void ChosenObject(quint32 id, const SceneObject &type); virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
/** /**
* @brief DeployFormulaTextEdit grow or shrink formula input * @brief DeployFormulaTextEdit grow or shrink formula input
*/ */
void DeployFormulaTextEdit(); void DeployFormulaTextEdit();
void FXLength(); void FXLength();
protected: protected:
virtual void ShowVisualization(); virtual void ShowVisualization() Q_DECL_OVERRIDE;
/** /**
* @brief SaveData Put dialog data in local variables * @brief SaveData Put dialog data in local variables
*/ */
virtual void SaveData(); virtual void SaveData() Q_DECL_OVERRIDE;
virtual void closeEvent(QCloseEvent *event); virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogCutSplinePath) Q_DISABLE_COPY(DialogCutSplinePath)

View File

@ -45,7 +45,7 @@ public:
VDetail getDetail() const; VDetail getDetail() const;
void setDetail(const VDetail &value); void setDetail(const VDetail &value);
public slots: public slots:
virtual void ChosenObject(quint32 id, const SceneObject &type); virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
void BiasXChanged(qreal d); void BiasXChanged(qreal d);
void BiasYChanged(qreal d); void BiasYChanged(qreal d);
void AlowenceChanged(qreal d); void AlowenceChanged(qreal d);
@ -58,8 +58,8 @@ protected:
/** /**
* @brief SaveData Put dialog data in local variables * @brief SaveData Put dialog data in local variables
*/ */
virtual void SaveData(); virtual void SaveData() Q_DECL_OVERRIDE;
virtual void CheckState(); virtual void CheckState() Q_DECL_OVERRIDE;
private: private:
/** @brief ui keeps information about user interface */ /** @brief ui keeps information about user interface */

View File

@ -44,7 +44,7 @@ class DialogEndLine : public DialogTool
Q_OBJECT Q_OBJECT
public: public:
DialogEndLine(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr); DialogEndLine(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr);
virtual ~DialogEndLine(); virtual ~DialogEndLine() Q_DECL_OVERRIDE;
void SetPointName(const QString &value); void SetPointName(const QString &value);
@ -63,9 +63,9 @@ public:
QString GetLineColor() const; QString GetLineColor() const;
void SetLineColor(const QString &value); void SetLineColor(const QString &value);
virtual void ShowDialog(bool click); virtual void ShowDialog(bool click) Q_DECL_OVERRIDE;
public slots: public slots:
virtual void ChosenObject(quint32 id, const SceneObject &type); virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
/** /**
* @brief DeployFormulaTextEdit grow or shrink formula input * @brief DeployFormulaTextEdit grow or shrink formula input
*/ */
@ -82,12 +82,12 @@ public slots:
void FXAngle(); void FXAngle();
void FXLength(); void FXLength();
protected: protected:
virtual void ShowVisualization(); virtual void ShowVisualization() Q_DECL_OVERRIDE;
/** /**
* @brief SaveData Put dialog data in local variables * @brief SaveData Put dialog data in local variables
*/ */
virtual void SaveData(); virtual void SaveData() Q_DECL_OVERRIDE;
virtual void closeEvent(QCloseEvent *event); virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogEndLine) Q_DISABLE_COPY(DialogEndLine)

View File

@ -44,7 +44,7 @@ class DialogHeight : public DialogTool
Q_OBJECT Q_OBJECT
public: public:
DialogHeight(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr); DialogHeight(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr);
virtual ~DialogHeight(); virtual ~DialogHeight() Q_DECL_OVERRIDE;
void SetPointName(const QString &value); void SetPointName(const QString &value);
@ -63,14 +63,14 @@ public:
QString GetLineColor() const; QString GetLineColor() const;
void SetLineColor(const QString &value); void SetLineColor(const QString &value);
public slots: public slots:
virtual void ChosenObject(quint32 id, const SceneObject &type); virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
virtual void PointNameChanged(); virtual void PointNameChanged() Q_DECL_OVERRIDE;
protected: protected:
virtual void ShowVisualization(); virtual void ShowVisualization() Q_DECL_OVERRIDE;
/** /**
* @brief SaveData Put dialog data in local variables * @brief SaveData Put dialog data in local variables
*/ */
virtual void SaveData(); virtual void SaveData() Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogHeight) Q_DISABLE_COPY(DialogHeight)

View File

@ -44,7 +44,7 @@ class DialogLine : public DialogTool
Q_OBJECT Q_OBJECT
public: public:
DialogLine(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr); DialogLine(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr);
virtual ~DialogLine(); virtual ~DialogLine() Q_DECL_OVERRIDE;
quint32 GetFirstPoint() const; quint32 GetFirstPoint() const;
void SetFirstPoint(const quint32 &value); void SetFirstPoint(const quint32 &value);
@ -58,14 +58,14 @@ public:
QString GetLineColor() const; QString GetLineColor() const;
void SetLineColor(const QString &value); void SetLineColor(const QString &value);
public slots: public slots:
virtual void ChosenObject(quint32 id, const SceneObject &type); virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
virtual void PointNameChanged(); virtual void PointNameChanged() Q_DECL_OVERRIDE;
protected: protected:
virtual void ShowVisualization(); virtual void ShowVisualization() Q_DECL_OVERRIDE;
/** /**
* @brief SaveData Put dialog data in local variables * @brief SaveData Put dialog data in local variables
*/ */
virtual void SaveData(); virtual void SaveData() Q_DECL_OVERRIDE;
private: private:
Q_DISABLE_COPY(DialogLine) Q_DISABLE_COPY(DialogLine)

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