[SCM] ktp-accounts-kcm packaging branch, master, updated. debian/15.12.1-1-1157-gc4589c5

Maximiliano Curia maxy at moszumanska.debian.org
Fri May 27 23:57:30 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-accounts-kcm.git;a=commitdiff;h=8b61620

The following commit has been merged in the master branch:
commit 8b616209413c43473bc4790117fe2cddead13588
Author: George Goldberg <grundleborg at googlemail.com>
Date:   Fri Jul 24 17:09:42 2009 +0000

    When editing parameters, display asterisks if the parameters are secret.
    
    svn path=/trunk/playground/network/telepathy-accounts-kcm/; revision=1001974
---
 src/parameter-edit-delegate.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/parameter-edit-delegate.cpp b/src/parameter-edit-delegate.cpp
index 10aaee4..82b450c 100644
--- a/src/parameter-edit-delegate.cpp
+++ b/src/parameter-edit-delegate.cpp
@@ -164,6 +164,11 @@ void ParameterEditDelegate::updateItemWidgets(const QList<QWidget*> widgets,
         lineEdit->move((right / 2) + margin, (option.rect.height() - lineEdit->size().height()) / 2);
         lineEdit->resize(QSize(((right - (4 * margin)) / 2), lineEdit->size().height()));
 
+        // If the parameter is secret, we should replace the contents with asterisks
+        if (index.model()->data(index, ParameterEditModel::SecretRole).toBool()) {
+            lineEdit->setEchoMode(QLineEdit::Password);
+        }
+
         // Save the cursor position within the widget so we can restore it after altering the data
         int cursorPosition = lineEdit->cursorPosition();
 

-- 
ktp-accounts-kcm packaging



More information about the pkg-kde-commits mailing list