[PD] missing changed from commit d4be4a02

(key event handling for more dialogs)
This commit is contained in:
donovaly
2020-02-18 01:48:27 +01:00
committed by wmayer
parent dc046a8b0f
commit d5c8ae0d16
7 changed files with 125 additions and 46 deletions

View File

@@ -226,6 +226,7 @@ TaskFilletParameters::~TaskFilletParameters()
bool TaskFilletParameters::event(QEvent *e)
{
// in case another instance takes key events, accept the overridden key event
if (e && e->type() == QEvent::ShortcutOverride) {
QKeyEvent * kevent = static_cast<QKeyEvent*>(e);
if (kevent->modifiers() == Qt::NoModifier) {
@@ -235,6 +236,7 @@ bool TaskFilletParameters::event(QEvent *e)
}
}
}
// if we have a Del key, trigger the deleteAction
else if (e && e->type() == QEvent::KeyPress) {
QKeyEvent * kevent = static_cast<QKeyEvent*>(e);
if (kevent->key() == Qt::Key_Delete) {