comparison libgui/graphics/GLCanvas.cc @ 20303:efe22f9b53a3 stable

qt toolkit: set keyboard focus in canvas (Bug #44832) * libgui/graphics/GLCanvas.cc (GLCanvas::GLCanvas): call setFocus
author John Donoghue
date Mon, 22 Jun 2015 12:06:53 -0400
parents 5c2564643de4
children
comparison
equal deleted inserted replaced
20297:5c42ff6f0eb1 20303:efe22f9b53a3
44 #else 44 #else
45 : QGLWidget (QGLFormat (QGL::SampleBuffers), xparent), Canvas (gh) 45 : QGLWidget (QGLFormat (QGL::SampleBuffers), xparent), Canvas (gh)
46 #endif 46 #endif
47 { 47 {
48 setFocusPolicy (Qt::ClickFocus); 48 setFocusPolicy (Qt::ClickFocus);
49 setFocus();
49 } 50 }
50 51
51 GLCanvas::~GLCanvas (void) 52 GLCanvas::~GLCanvas (void)
52 { 53 {
53 } 54 }