From a426158b43c54c2e7e681c173829eba16eec3171 Mon Sep 17 00:00:00 2001 From: Alexander Volkov Date: Tue, 19 May 2020 17:49:54 +0300 Subject: Add missing override Change-Id: Id2b1c4b9e7cb24b427f7e3de4b00d1472c67cb5a Reviewed-by: Friedemann Kleint --- src/designer/src/lib/shared/qdesigner_propertycommand_p.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/designer/src/lib') diff --git a/src/designer/src/lib/shared/qdesigner_propertycommand_p.h b/src/designer/src/lib/shared/qdesigner_propertycommand_p.h index ab7662f2a..7aaa7e944 100644 --- a/src/designer/src/lib/shared/qdesigner_propertycommand_p.h +++ b/src/designer/src/lib/shared/qdesigner_propertycommand_p.h @@ -242,10 +242,10 @@ public: bool init(QObject *object, const QString &propertyName); bool init(const QObjectList &list, const QString &propertyName, QObject *referenceObject = nullptr); - virtual void redo(); + void redo() override; protected: - virtual bool mergeWith(const QUndoCommand *) { return false; } + bool mergeWith(const QUndoCommand *) override { return false; } private: void setDescription(); @@ -261,8 +261,8 @@ public: bool init(const QVector &selection, QObject *current, const QString &propertyName, const QVariant &value); - virtual void redo(); - virtual void undo(); + void redo() override; + void undo() override; private: void setDescription(); QString m_propertyName; @@ -278,8 +278,8 @@ public: bool init(const QVector &selection, QObject *current, const QString &propertyName); - virtual void redo(); - virtual void undo(); + void redo() override; + void undo() override; private: void setDescription(); QString m_propertyName; -- cgit v1.2.1