Improve key tooltip in KeySelectionDialog
ClosedPublic

Authored by dvratil on Jun 26 2016, 2:57 PM.

Details

Summary

This adds a new field called "Status" into the tooltip which shows
whether the key is valid or not, and a reason why it's not valid. This
fixes the annoying problem when you select a key and it gets the "bad key"
icon without any explanation as to why it is considered bad.

Secondly the tooltip is now placed in a table, which makes it look
a little prettier.

Diff Detail

Repository
R90 PIM: Kleo Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dvratil updated this revision to Diff 4741.Jun 26 2016, 2:57 PM
dvratil retitled this revision from to Improve key tooltip in KeySelectionDialog.
dvratil updated this object.
dvratil edited the test plan for this revision. (Show Details)
dvratil added a reviewer: aheinecke.
Restricted Application added a project: KDE PIM. · View Herald TranscriptJun 26 2016, 2:57 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
dvratil updated this revision to Diff 4742.Jun 26 2016, 3:05 PM
aheinecke accepted this revision.Jun 27 2016, 9:41 AM
aheinecke edited edge metadata.

Definitely an improvement. So I'd say ship it.

I always found this Dialog weird though in that it shows you all Keys and you have to try out with a click if a key works. E.g. If you need a secret key why show Keys without a Secret key at all and it shoul pre-filter for Keys with a UID matching the mailbox of the identity etc.

In Kleopatra's new Sign Encrypt Files dialog I want to use a Combobox that only contains the keys with the according usage flags (and with the option to select to generate a new key). But to use that in KMail we would have to move the Keycache and the according widgets into Libkleo (Keycache because a Keylist with validity can take quite some time and so the result needs to be cached). And before that I need to finish / test that new dialog to see if such a selection works good. So as a short term improvement a tooltip already is good.

This revision is now accepted and ready to land.Jun 27 2016, 9:41 AM
This revision was automatically updated to reflect the committed changes.