| 73 | } |
| 74 | |
| 75 | void SeparateWindow::keyPressEvent(QKeyEvent *event) |
| 76 | { |
| 77 | int key = event->key(); |
| 78 | bool controlOnly = (event->modifiers() == Qt::ControlModifier); |
| 79 | |
| 80 | if (key == Qt::Key_Escape) |
| 81 | { |
| 82 | if (isFullScreen()) |
| 83 | toggleFullscreen(); |
| 84 | } |
| 85 | else if (key == Qt::Key_F && controlOnly) |
| 86 | toggleFullscreen(); |
| 87 | else |
| 88 | { |
| 89 | // See if the split view widget handles this key press. If not, pass the event on to the QWidget. |
| 90 | if (!splitView.handleKeyPress(event)) |
| 91 | emit unhandledKeyPress(event); |
| 92 | |
| 93 | //QWidget::keyPressEvent(event); |
| 94 | } |
| 95 | } |
nothing calls this directly
no test coverage detected