MiniProjectTargetSelector: Fix inconsitency in key handling

The keypress event would be forwarded to QWidget::keyPressEvent, but not
the release event.

Change-Id: I98e87b9f8da1133f55b2f4fae246047db1809536
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Daniel Teske
2013-05-28 13:14:03 +02:00
parent aee00cfad7
commit c3523fec68

View File

@@ -1327,9 +1327,11 @@ void MiniProjectTargetSelector::keyPressEvent(QKeyEvent *ke)
if (ke->key() == Qt::Key_Return
|| ke->key() == Qt::Key_Enter
|| ke->key() == Qt::Key_Space
|| ke->key() == Qt::Key_Escape)
|| ke->key() == Qt::Key_Escape) {
hide();
} else {
QWidget::keyPressEvent(ke);
}
}
void MiniProjectTargetSelector::keyReleaseEvent(QKeyEvent *ke)