Verified Commit 5f54607e authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Show explicit info button in keyapprovaldialog

There was multiple user feedback that the Tooltip
is unintutive. So we now add an explicit button
to show the tooltips.
parent e90512bb
......@@ -49,6 +49,7 @@
#include <QPushButton>
#include <QRadioButton>
#include <QScrollArea>
#include <QToolTip>
#include <QVBoxLayout>
#include <QGpgME/DefaultKeyGenerationJob>
......@@ -134,9 +135,19 @@ public:
auto hLay = new QHBoxLayout(this);
auto infoBtn = new QPushButton;
hLay->addWidget(combo, 1);
hLay->addWidget(mFilterBtn, 0);
connect(infoBtn, &QPushButton::clicked, this, [this, infoBtn] () {
QToolTip::showText(infoBtn->mapToGlobal(QPoint()) + QPoint(infoBtn->width(), 0),
mCombo->currentData(Qt::ToolTipRole).toString(), infoBtn, QRect(), 30000);
// Assume that combos start out with a filter
mFilterBtn->setToolTip(i18n("Remove Filter"));
......@@ -547,7 +558,7 @@ public:
i18n("No Key"), IgnoreKey,
i18n("No key. Recipient will be unable to decrypt."), IgnoreKey,
i18nc("@info:tooltip for No Key selected for a specific recipient.",
"Do not select a key for this recipient.<br/><br/>"
"The recipient will receive the encrypted E-Mail, but it can only "
Markdown is supported
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