! \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. */
| 2928 | hitting the escape key. |
| 2929 | */ |
| 2930 | void 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 */ |
| 2940 | void QCPSelectionRect::applyDefaultAntialiasingHint(QCPPainter *painter) const |
nothing calls this directly
no outgoing calls
no test coverage detected