MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / keyPressEvent

Method keyPressEvent

qcustomplot/qcustomplot.cpp:2930–2937  ·  view source on GitHub ↗

! \internal This method is called by QCustomPlot when a key has been pressed by the user while the selection rect interaction is active. The default implementation allows to \ref cancel the interaction by hitting the escape key. */

Source from the content-addressed store, hash-verified

2928 hitting the escape key.
2929*/
2930void QCPSelectionRect::keyPressEvent(QKeyEvent *event)
2931{
2932 if (event->key() == Qt::Key_Escape && mActive)
2933 {
2934 mActive = false;
2935 emit canceled(mRect, event);
2936 }
2937}
2938
2939/* inherits documentation from base class */
2940void QCPSelectionRect::applyDefaultAntialiasingHint(QCPPainter *painter) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected