From e95f28a2f6fcb1521d93babb7b53bd8a30968e53 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Thu, 16 Jun 2016 09:49:37 +0200 Subject: [PATCH] Add a waitcursor while the planes are being created. --- Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Io_image_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Io_image_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Io_image_plugin.cpp index 5852bdb1737..8169a577a64 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Io_image_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Io_image_plugin.cpp @@ -503,6 +503,7 @@ private: } void createPlanes(Scene_image_item* seg_img) { + QApplication::setOverrideCursor(Qt::WaitCursor); //Control widgets creation QLayout* layout = createOrGetDockLayout(); if(x_control == NULL) @@ -664,6 +665,7 @@ private Q_SLOTS: { msgBox.hide(); nbPlanes = 0; + QApplication::restoreOverrideCursor(); } } // Avoids the segfault after the deletion of an item