MCPcopy Create free account
hub / github.com/IENT/YUView / keyPressEvent

Method keyPressEvent

YUViewLib/src/ui/SeparateWindow.cpp:75–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void 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}

Callers

nothing calls this directly

Calls 1

handleKeyPressMethod · 0.45

Tested by

no test coverage detected