Fix accepting dialogs with ctrl+return when buttons are renamed
ClosedPublic

Authored by apol on Aug 8 2017, 1:54 AM.

Details

Summary

QAbstractButton::setText will call setShortcut(mnemonic), making this
little hack unusable.
This patch puts the shortcut into a separate object.

Test Plan

Improved the test to reproduce the issue I had
Now we can use it with KDE Connect send reply dialogs

Diff Detail

Repository
R252 Framework Integration
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
apol created this revision.Aug 8 2017, 1:54 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 8 2017, 1:54 AM
apol updated this revision to Diff 17862.Aug 8 2017, 2:00 AM

Make sure there's such a button

dfaure accepted this revision.Aug 9 2017, 8:14 AM
This revision is now accepted and ready to land.Aug 9 2017, 8:14 AM
This revision was automatically updated to reflect the committed changes.