IEditPropertyCommand: Make use of override
This commit is contained in:
parent
eafb7f21d0
commit
e839c0c70c
|
@ -41,8 +41,6 @@ IEditPropertyCommand::IEditPropertyCommand(
|
||||||
, mpProperty(pProperty)
|
, mpProperty(pProperty)
|
||||||
, mpModel(pModel)
|
, mpModel(pModel)
|
||||||
, mIndex(kIndex)
|
, mIndex(kIndex)
|
||||||
, mSavedOldData(false)
|
|
||||||
, mSavedNewData(false)
|
|
||||||
{
|
{
|
||||||
ASSERT(mpProperty);
|
ASSERT(mpProperty);
|
||||||
|
|
||||||
|
|
|
@ -15,9 +15,9 @@ protected:
|
||||||
IProperty* mpProperty;
|
IProperty* mpProperty;
|
||||||
CPropertyModel* mpModel;
|
CPropertyModel* mpModel;
|
||||||
QModelIndex mIndex;
|
QModelIndex mIndex;
|
||||||
bool mCommandEnded;
|
bool mCommandEnded = false;
|
||||||
bool mSavedOldData;
|
bool mSavedOldData = false;
|
||||||
bool mSavedNewData;
|
bool mSavedNewData = false;
|
||||||
|
|
||||||
/** Save the current state of the object properties to the given data buffer */
|
/** Save the current state of the object properties to the given data buffer */
|
||||||
void SaveObjectStateToArray(std::vector<char>& rVector);
|
void SaveObjectStateToArray(std::vector<char>& rVector);
|
||||||
|
@ -33,7 +33,7 @@ public:
|
||||||
const QString& kCommandName = "Edit Property"
|
const QString& kCommandName = "Edit Property"
|
||||||
);
|
);
|
||||||
|
|
||||||
virtual ~IEditPropertyCommand() {}
|
~IEditPropertyCommand() override = default;
|
||||||
|
|
||||||
virtual void SaveOldData();
|
virtual void SaveOldData();
|
||||||
virtual void SaveNewData();
|
virtual void SaveNewData();
|
||||||
|
@ -45,11 +45,11 @@ public:
|
||||||
virtual void GetObjectDataPointers(QVector<void*>& rOutPointers) const = 0;
|
virtual void GetObjectDataPointers(QVector<void*>& rOutPointers) const = 0;
|
||||||
|
|
||||||
/** IUndoCommand/QUndoCommand interface */
|
/** IUndoCommand/QUndoCommand interface */
|
||||||
int id() const;
|
int id() const override;
|
||||||
bool mergeWith(const QUndoCommand *pkOther);
|
bool mergeWith(const QUndoCommand *pkOther) override;
|
||||||
void undo();
|
void undo() override;
|
||||||
void redo();
|
void redo() override;
|
||||||
bool AffectsCleanState() const;
|
bool AffectsCleanState() const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // IEDITPROPERTYCOMMAND_H
|
#endif // IEDITPROPERTYCOMMAND_H
|
||||||
|
|
Loading…
Reference in New Issue