MCPcopy Create free account
hub / github.com/boostorg/compute / keyPressEvent

Method keyPressEvent

example/mandelbrot.cpp:205–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void MandelbrotWidget::keyPressEvent(QKeyEvent* event)
206{
207 if(event->key() == Qt::Key_Escape) {
208 this->close();
209 }
210}
211
212// the mandelbrot example shows how to create a mandelbrot image in
213// OpenCL and render the image as a texture in OpenGL

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected