diff options
author | Alessandro Portale <aportale@trolltech.com> | 2009-05-30 16:49:53 (GMT) |
---|---|---|
committer | Alessandro Portale <aportale@trolltech.com> | 2009-05-30 16:49:53 (GMT) |
commit | cde524b88f9db46588773d20bf5c36b4e31d234a (patch) | |
tree | e0569bc7a34dc3ae7b06f069ff3f41f15136a2f5 /src/gui/widgets | |
parent | 824e8c4decf952b93279dc2c8c58e5d8dc0aa509 (diff) | |
download | Qt-cde524b88f9db46588773d20bf5c36b4e31d234a.zip Qt-cde524b88f9db46588773d20bf5c36b4e31d234a.tar.gz Qt-cde524b88f9db46588773d20bf5c36b4e31d234a.tar.bz2 |
Make sure that the QKeyEventSoftKey gets deleted when the action
gets deleted.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qsoftkeystack.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/widgets/qsoftkeystack.cpp b/src/gui/widgets/qsoftkeystack.cpp index 494471e..7946f4a 100644 --- a/src/gui/widgets/qsoftkeystack.cpp +++ b/src/gui/widgets/qsoftkeystack.cpp @@ -286,6 +286,7 @@ void QKeyEventSoftKey::addSoftKey(QSoftKeyAction::StandardRole standardRole, Qt: QSoftKeyAction *action = new QSoftKeyAction(standardRole, actionWidget); QKeyEventSoftKey *softKey = new QKeyEventSoftKey(action, key, actionWidget); connect(action, SIGNAL(triggered()), softKey, SLOT(sendKeyEvent())); + connect(action, SIGNAL(destroyed()), softKey, SLOT(deleteLater())); stack->popandPush(action); } |