mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
Coding style fix.
This commit is contained in:
parent
d1b9611040
commit
d555017fb4
1 changed files with 4 additions and 3 deletions
|
@ -184,12 +184,13 @@ bool GLCanvas::eventFilter(QObject*, QEvent* event) {
|
|||
{
|
||||
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
|
||||
if (keyEvent->key() == Qt::Key_Alt || keyEvent->key() == Qt::Key_Meta) {
|
||||
if (event->type() == QEvent::KeyPress)
|
||||
if (event->type() == QEvent::KeyPress) {
|
||||
keyPressEvent(keyEvent);
|
||||
else if (event->type() == QEvent::KeyRelease)
|
||||
} else if (event->type() == QEvent::KeyRelease) {
|
||||
keyReleaseEvent(keyEvent);
|
||||
else
|
||||
} else {
|
||||
QGLWidget::event(event);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue