Adapted OpenGL canvas to current wxQT coding patterns