remove warnings about hiding an init method

This commit is contained in:
Sébastien Loriot 2014-06-27 19:39:50 +02:00
parent edec4ad54c
commit 33c1161ffe
3 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,7 @@ class Polyhedron_demo_join_polyhedra_plugin:
QAction* actionJoinPolyhedra;
public:
QList<QAction*> actions() const { return QList<QAction*>() << actionJoinPolyhedra; }
using Polyhedron_demo_plugin_helper::init;
void init(QMainWindow* mainWindow, Scene_interface* scene_interface, Messages_interface* /* m */)
{
actionJoinPolyhedra= new QAction(tr("Join selected polyhedra"), mainWindow);

View File

@ -22,6 +22,7 @@ class Polyhedron_demo_polyhedron_stitching_plugin :
QAction* actionStitchBorders;
public:
QList<QAction*> actions() const { return QList<QAction*>() << actionDetectBorders << actionStitchBorders; }
using Polyhedron_demo_plugin_helper::init;
void init(QMainWindow* mainWindow, Scene_interface* scene_interface, Messages_interface* /* m */)
{
actionDetectBorders= new QAction(tr("Detect polyhedron boundaries"), mainWindow);

View File

@ -29,6 +29,7 @@ public:
}
void print_message(QString message) { messages->information(message); }
QList<QAction*> actions() const { return QList<QAction*>() << actionSelection; }
using Polyhedron_demo_plugin_helper::init;
void init(QMainWindow* mainWindow, Scene_interface* scene_interface, Messages_interface* m) {
mw = mainWindow;
scene = scene_interface;