Commit 75fdc663 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Use a tool tip for the help text in the Delete Certificate dialog

QWhatsThis does not seem to be accessible on Linux and it's probably
not accessible elsewhere. Showing the help text as tool tip makes it
accessible for screen readers.

GnuPG-bug-id: 6044
parent 939b720b
Pipeline #196935 passed with stage
in 4 minutes and 17 seconds
......@@ -11,6 +11,7 @@
#include "deletecertificatesdialog.h"
#include <utils/accessibility.h>
#include <view/keytreeview.h>
#include <Libkleo/KeyListModel>
......@@ -55,7 +56,7 @@ public:
qCDebug(KLEOPATRA_LOG);
if (QWidget *const widget = qobject_cast<QWidget *>(q->sender()))
if (!widget->whatsThis().isEmpty()) {
QWhatsThis::showText(QCursor::pos(), widget->whatsThis());
showToolTip(QCursor::pos(), widget->whatsThis(), widget);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment