Commit 6e7b3ec5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add setWhatsThis for explaining keyword feature

Thanks David for this "whatsthis"

CCMAIL: faure@kde.org
parent 3d801730
......@@ -24,6 +24,7 @@
#include <KPIMTextEdit/PlainTextEditor>
#include <KActionCollection>
#include <KLocalizedString>
#include <QComboBox>
#include <KLineEdit>
#include <QAbstractListModel>
......@@ -63,6 +64,11 @@ SnippetWidget::SnippetWidget(QWidget *parent)
d->mUi.nameEdit->setFocus();
d->mUi.snippetText->setMinimumSize(500, 300);
d->mUi.keyword->setWhatsThis(i18n("Enter a keyword here to enable fast insertion of this snippet while writing "
"an email. For instance if you choose \"greeting\" as the keyword, you can then "
"type \\greeting in your email and then press the tab key, and it will be "
"replaced with the contents of this snippet."));
connect(d->mUi.nameEdit, &KLineEdit::textChanged, this, [this](const QString &str) {
Q_EMIT textChanged(str);
d->wasChanged = true;
......
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