From c723e97e20dfe1a0fceb38cdba82bc5d6fa3ef09 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Mon, 18 Sep 2017 12:38:02 +0200 Subject: [PATCH] Add missing override in code and doc example. --- .../demo/Polyhedron/Plugins/Display/Display_property_plugin.cpp | 2 +- Three/demo/Three/Example_plugin/Dock_widget_plugin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/Plugins/Display/Display_property_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Display/Display_property_plugin.cpp index b6295f78d01..39f68c20b78 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Display/Display_property_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Display/Display_property_plugin.cpp @@ -313,7 +313,7 @@ private Q_SLOTS: } } - void closure() + void closure()Q_DECL_OVERRIDE { dock_widget->hide(); } diff --git a/Three/demo/Three/Example_plugin/Dock_widget_plugin.cpp b/Three/demo/Three/Example_plugin/Dock_widget_plugin.cpp index 0a2ad1b2e90..09223ccb042 100644 --- a/Three/demo/Three/Example_plugin/Dock_widget_plugin.cpp +++ b/Three/demo/Three/Example_plugin/Dock_widget_plugin.cpp @@ -85,7 +85,7 @@ private Q_SLOTS: } //! [action] //! [closure] - void closure() + void closure()Q_DECL_OVERRIDE { dock_widget->hide(); }