diff --git a/Polyhedron/demo/Polyhedron/Plugins/PCA/Pca_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PCA/Pca_plugin.cpp index 4f293097b88..9f3ea5b8477 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PCA/Pca_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PCA/Pca_plugin.cpp @@ -100,8 +100,7 @@ void Polyhedron_demo_pca_plugin::on_actionFitPlane_triggered() Scene_surface_mesh_item* sm_item = qobject_cast(scene->item(index)); - Three::CursorScopeGuard scope; - scope.setCursor(Qt::WaitCursor); + Three::CursorScopeGuard scope(Qt::WaitCursor); if(sm_item){ std::list triangles; @@ -165,8 +164,7 @@ void Polyhedron_demo_pca_plugin::on_actionFitLine_triggered() { const CGAL::Three::Scene_interface::Item_id index = scene->mainSelectionIndex(); - Three::CursorScopeGuard sg; - sg.setCursor(Qt::WaitCursor); + Three::CursorScopeGuard sg(Qt::WaitCursor); Scene_surface_mesh_item* sm_item = qobject_cast(scene->item(index)); diff --git a/Three/include/CGAL/Three/Three.h b/Three/include/CGAL/Three/Three.h index 865ada6bc53..9133b366783 100644 --- a/Three/include/CGAL/Three/Three.h +++ b/Three/include/CGAL/Three/Three.h @@ -92,8 +92,7 @@ protected: public: struct CursorScopeGuard { - CursorScopeGuard(){} - void setCursor(QCursor cursor) + CursorScopeGuard(QCursor cursor) { QApplication::setOverrideCursor(cursor); }