Add override in cut_plugin

This commit is contained in:
Maxime Gimeno 2019-05-16 15:24:02 +02:00
parent c342a88440
commit 0c7ba063a6
1 changed files with 11 additions and 10 deletions

View File

@ -799,7 +799,7 @@ public:
~Polyhedron_demo_cut_plugin();
bool applicable(QAction*) const {
bool applicable(QAction*) const Q_DECL_OVERRIDE{
// returns true if one surface_mesh is in the entries
for (int i=0; i< scene->numberOfEntries(); ++i)
{
@ -809,30 +809,31 @@ public:
return false;
}
QString name() const
QString name() const Q_DECL_OVERRIDE
{
return "cut-plugin";
}
QString nameFilters() const
QString nameFilters() const Q_DECL_OVERRIDE
{
return "Segment soup file (*.polylines.txt *.cgal)";
}
bool canLoad(QFileInfo) const
bool canLoad(QFileInfo) const Q_DECL_OVERRIDE
{
return false;
}
QList<Scene_item*> load(QFileInfo fileinfo, bool& ok, bool add_to_scene=true)
QList<Scene_item*> load(QFileInfo fileinfo, bool& ok, bool add_to_scene=true) Q_DECL_OVERRIDE
{
ok = false;
return QList<Scene_item*>();
}
bool canSave(const CGAL::Three::Scene_item* item)
bool canSave(const CGAL::Three::Scene_item* item) Q_DECL_OVERRIDE
{
// This plugin supports edges items
bool b = qobject_cast<const Scene_edges_item*>(item) != 0;
@ -840,7 +841,7 @@ public:
}
bool save(QFileInfo fileinfo,QList<CGAL::Three::Scene_item*>& items)
bool save(QFileInfo fileinfo,QList<CGAL::Three::Scene_item*>& items) Q_DECL_OVERRIDE
{
Scene_item* item = items.front();
// This plugin supports edges items
@ -859,10 +860,10 @@ public:
}
void init(QMainWindow* mainWindow, CGAL::Three::Scene_interface* scene_interface,
Messages_interface* m);
QList<QAction*> actions() const;
Messages_interface* m) Q_DECL_OVERRIDE;
QList<QAction*> actions() const Q_DECL_OVERRIDE;
bool eventFilter(QObject *, QEvent *event)
bool eventFilter(QObject *, QEvent *event) Q_DECL_OVERRIDE
{
if(!plane_item)
return false;