Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Fix compiler warns: inconsistent-missing-override
Freya Lupen7937300f0d40
diff --git a/libs/ui/tests/kis_input_manager_test.cpp b/libs/ui/tests/kis_input_manager_test.cppindex 04a8fe6824..cd34e2a071 100644--- a/libs/ui/tests/kis_input_manager_test.cpp+++ b/libs/ui/tests/kis_input_manager_test.cpp@@ -63,9 +63,9 @@ struct TestingAction : public KisAbstractInputActionTestingAction() : KisAbstractInputAction("TestingAction"), m_isHighResolution(false) { reset(); }~TestingAction() {}- void begin(int shortcut, QEvent *event) { m_beginIndex = shortcut; m_beginNonNull = event;}- void end(QEvent *event) { m_ended = true; m_endNonNull = event; }- void inputEvent(QEvent* event) { Q_UNUSED(event); m_gotInput = true; }+ void begin(int shortcut, QEvent *event) override { m_beginIndex = shortcut; m_beginNonNull = event;}+ void end(QEvent *event) override { m_ended = true; m_endNonNull = event; }+ void inputEvent(QEvent* event) override { Q_UNUSED(event); m_gotInput = true; }void reset() {m_beginIndex = -1;diff --git a/plugins/dockers/textproperties/FontStyleModel.h b/plugins/dockers/textproperties/FontStyleModel.hindex 3e34338599..3cfd16cdc3 100644--- a/plugins/dockers/textproperties/FontStyleModel.h+++ b/plugins/dockers/textproperties/FontStyleModel.h@@ -49,7 +49,7 @@ public:// QAbstractItemModel interfacepublic:QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;- QModelIndex parent(const QModelIndex &child) const;+ QModelIndex parent(const QModelIndex &child) const override;int rowCount(const QModelIndex &parent) const override;int columnCount(const QModelIndex &parent) const override;QVariant data(const QModelIndex &index, int role) const override;diff --git a/plugins/dockers/textproperties/OpenTypeFeatureModel.h b/plugins/dockers/textproperties/OpenTypeFeatureModel.hindex a04859c524..c3398536fd 100644--- a/plugins/dockers/textproperties/OpenTypeFeatureModel.h+++ b/plugins/dockers/textproperties/OpenTypeFeatureModel.h@@ -139,7 +139,7 @@ public:QVariant data(const QModelIndex &index, int role) const override;int rowCount(const QModelIndex &parent) const override;- QVariant headerData(int section, Qt::Orientation orientation, int role) const;+ QVariant headerData(int section, Qt::Orientation orientation, int role) const override;QHash<int, QByteArray> roleNames() const override;private:diff --git a/plugins/flake/imageshape/ImageShapeFactory.h b/plugins/flake/imageshape/ImageShapeFactory.hindex e68bd88b9e..40fe38eea6 100644--- a/plugins/flake/imageshape/ImageShapeFactory.h+++ b/plugins/flake/imageshape/ImageShapeFactory.h@@ -31,7 +31,7 @@ public:* @param documentResources -- unused.* @return ImageShape*/- KoShape *createShape(const KoProperties *params, KoDocumentResourceManager *documentResources = 0) const;+ KoShape *createShape(const KoProperties *params, KoDocumentResourceManager *documentResources = 0) const override;bool supports(const QDomElement &e, KoShapeLoadingContext &context) const override;QList<KoShapeConfigWidgetBase *> createShapeOptionPanels() override;};diff --git a/plugins/tools/tool_knife/KisToolKnife.h b/plugins/tools/tool_knife/KisToolKnife.hindex 9325abeed4..478da57b13 100644--- a/plugins/tools/tool_knife/KisToolKnife.h+++ b/plugins/tools/tool_knife/KisToolKnife.h@@ -45,7 +45,7 @@ protected Q_SLOTS:public Q_SLOTS:void activate(const QSet<KoShape*> &shapes) override;void deactivate() override;- void mousePressEvent(KoPointerEvent *event);+ void mousePressEvent(KoPointerEvent *event) override;void mouseMoveEvent(KoPointerEvent *event) override;void mouseReleaseEvent(KoPointerEvent *event) override;