Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube :

Commit 0f129533 authored by Sylvain Thery's avatar Sylvain Thery Committed by Pierre Kraemer
Browse files

confirm quit with ESC

parent ca9a842c
......@@ -13,6 +13,7 @@
#include <QKeyEvent>
#include <QMouseEvent>
#include <QWheelEvent>
#include <QMessageBox>
namespace CGoGN
......@@ -510,6 +511,17 @@ void View::keyPressEvent(QKeyEvent* event)
foreach(PluginInteraction* plugin, l_plugins)
plugin->keyPress(this, event);
if (event->key() == Qt::Key_Escape)
QMessageBox msgBox;
msgBox.setText("Really quit SCHNApps ?");
msgBox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
if (msgBox.exec() == QMessageBox::Ok)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment