Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit 4d55a2b1 authored by Frédéric Larue's avatar Frédéric Larue
Browse files

Focus is kept by the GLViewer when the mouse cursor enters in its viewport.

parent 92d47dbb
......@@ -1508,6 +1508,13 @@ bool GLViewer::imageOfCurrentDisplay( const GenericUIData *m, QImage &renderResu
}
void GLViewer::enterEvent( QEvent* evt )
{
setFocus();
QOpenGLWidget::enterEvent( evt );
}
void GLViewer::mousePressEvent( QMouseEvent *evt )
{
if( dof() == DISPLAY_DOF_2D )
......
......@@ -174,6 +174,7 @@ public:
| Member function(s) |
\********************/
protected:
virtual void enterEvent( QEvent *evt );
virtual void mousePressEvent( QMouseEvent *evt );
virtual void mouseReleaseEvent( QMouseEvent *evt );
virtual void mouseMoveEvent( QMouseEvent *evt );
......
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