From a1153132a780d6ca37522e9d62d5eeb6d2b5f4df Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 20 Jun 2023 05:52:22 +0300 Subject: [PATCH] kcontrol: minor kpasswdstore corrections Signed-off-by: Ivailo Monev --- kcontrol/kpasswdstore/kpasswdstoreconfig.cpp | 14 +++++++------- kcontrol/kpasswdstore/kpasswdstoreconfig.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/kcontrol/kpasswdstore/kpasswdstoreconfig.cpp b/kcontrol/kpasswdstore/kpasswdstoreconfig.cpp index 1017bedd..989f9378 100644 --- a/kcontrol/kpasswdstore/kpasswdstoreconfig.cpp +++ b/kcontrol/kpasswdstore/kpasswdstoreconfig.cpp @@ -47,7 +47,7 @@ KCMPasswdStore::KCMPasswdStore(QWidget* parent, const QVariantList& args) m_retriesinput(nullptr), m_timeoutinput(nullptr), m_storesbox(nullptr), - m_useredit(nullptr), + m_keyedit(nullptr), m_passedit(nullptr), m_storebutton(nullptr) { @@ -142,15 +142,15 @@ KCMPasswdStore::KCMPasswdStore(QWidget* parent, const QVariantList& args) QLabel* userlabel = new QLabel(i18n("Key:"), storesgroup); userlabel->setAlignment(Qt::AlignRight | Qt::AlignTrailing | Qt::AlignVCenter); storeslayout->addWidget(userlabel, 1, 0); - m_useredit = new KLineEdit(storesgroup); - m_useredit->setPlaceholderText(i18n("Enter key...")); - m_useredit->setToolTip( + m_keyedit = new KLineEdit(storesgroup); + m_keyedit->setPlaceholderText(i18n("Enter key...")); + m_keyedit->setToolTip( i18nc("@info:tooltip", "

The key can be anything - URL to website, URL to encrypted PDF document or just a string.

" - "

If key the exists in the password store it will be overwritten.

" + "

If the key exists in the password store it will be overwritten.

" ) ); - storeslayout->addWidget(m_useredit, 1, 1); + storeslayout->addWidget(m_keyedit, 1, 1); QLabel* passlabel = new QLabel(i18n("Password:"), storesgroup); passlabel->setAlignment(Qt::AlignRight | Qt::AlignTrailing | Qt::AlignVCenter); @@ -239,7 +239,7 @@ void KCMPasswdStore::slotTimeoutChanged(const int timeout) void KCMPasswdStore::slotStorePressed() { - const QString key = m_useredit->text(); + const QString key = m_keyedit->text(); if (key.isEmpty()) { KMessageBox::error(this, i18n("No key specified")); return; diff --git a/kcontrol/kpasswdstore/kpasswdstoreconfig.h b/kcontrol/kpasswdstore/kpasswdstoreconfig.h index a349f15c..bb343975 100644 --- a/kcontrol/kpasswdstore/kpasswdstoreconfig.h +++ b/kcontrol/kpasswdstore/kpasswdstoreconfig.h @@ -55,7 +55,7 @@ private: KIntNumInput* m_retriesinput; KIntNumInput* m_timeoutinput; QComboBox* m_storesbox; - KLineEdit* m_useredit; + KLineEdit* m_keyedit; KLineEdit* m_passedit; KPushButton* m_storebutton; };