#define VisuGUI_Prs3dTools_HeaderFile
#include "VisuGUI_Tools.h"
+#include "VisuGUI_DialogRunner.h"
int runAndWait( QDialog* dlg, const bool modal )
{
- if( modal )
- return dlg->exec();
-
- dlg->show();
-
- qApp->enter_loop();
-
- return dlg->result();
+ VisuGUI_DialogRunner r( dlg );
+ return r.run( modal );
}
namespace VISU