mirror of https://github.com/CGAL/cgal
Don't use extra function in scope guard class
This commit is contained in:
parent
ad898d1ab7
commit
8ce9a1ca68
|
|
@ -100,8 +100,7 @@ void Polyhedron_demo_pca_plugin::on_actionFitPlane_triggered()
|
||||||
Scene_surface_mesh_item* sm_item =
|
Scene_surface_mesh_item* sm_item =
|
||||||
qobject_cast<Scene_surface_mesh_item*>(scene->item(index));
|
qobject_cast<Scene_surface_mesh_item*>(scene->item(index));
|
||||||
|
|
||||||
Three::CursorScopeGuard scope;
|
Three::CursorScopeGuard scope(Qt::WaitCursor);
|
||||||
scope.setCursor(Qt::WaitCursor);
|
|
||||||
if(sm_item){
|
if(sm_item){
|
||||||
std::list<Triangle> triangles;
|
std::list<Triangle> triangles;
|
||||||
|
|
||||||
|
|
@ -165,8 +164,7 @@ void Polyhedron_demo_pca_plugin::on_actionFitLine_triggered()
|
||||||
{
|
{
|
||||||
const CGAL::Three::Scene_interface::Item_id index = scene->mainSelectionIndex();
|
const CGAL::Three::Scene_interface::Item_id index = scene->mainSelectionIndex();
|
||||||
|
|
||||||
Three::CursorScopeGuard sg;
|
Three::CursorScopeGuard sg(Qt::WaitCursor);
|
||||||
sg.setCursor(Qt::WaitCursor);
|
|
||||||
|
|
||||||
Scene_surface_mesh_item* sm_item =
|
Scene_surface_mesh_item* sm_item =
|
||||||
qobject_cast<Scene_surface_mesh_item*>(scene->item(index));
|
qobject_cast<Scene_surface_mesh_item*>(scene->item(index));
|
||||||
|
|
|
||||||
|
|
@ -92,8 +92,7 @@ protected:
|
||||||
public:
|
public:
|
||||||
struct CursorScopeGuard
|
struct CursorScopeGuard
|
||||||
{
|
{
|
||||||
CursorScopeGuard(){}
|
CursorScopeGuard(QCursor cursor)
|
||||||
void setCursor(QCursor cursor)
|
|
||||||
{
|
{
|
||||||
QApplication::setOverrideCursor(cursor);
|
QApplication::setOverrideCursor(cursor);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue