From 8b7a30cf99974fef86e1170a185f8b53dbf8dbb9 Mon Sep 17 00:00:00 2001 From: nils Date: Thu, 6 Oct 2011 18:45:56 +0000 Subject: removed beautifyfingerprint-method from gpgwin git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@541 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- gpgwin.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'gpgwin.cpp') diff --git a/gpgwin.cpp b/gpgwin.cpp index 1ee8b7f..7ed6072 100644 --- a/gpgwin.cpp +++ b/gpgwin.cpp @@ -694,7 +694,7 @@ void GpgWin::verify() case GPG_ERR_NO_PUBKEY: { verifyStatus=VERIFY_ERROR_WARN; - verifyLabelText.append(tr("Key not present with Fingerprint: ")+beautifyFingerprint(QString(sign->fpr))); + verifyLabelText.append(tr("Key not present with Fingerprint: ")+KeyDetailsDialog::beautifyFingerprint(QString(sign->fpr))); *vn->keysNotInList << sign->fpr; unknownKeyFound=true; break; @@ -712,7 +712,7 @@ void GpgWin::verify() default: { verifyStatus=VERIFY_ERROR_WARN; - verifyLabelText.append(tr("Error for key with fingerprint ")+beautifyFingerprint(QString(sign->fpr))); + verifyLabelText.append(tr("Error for key with fingerprint ")+KeyDetailsDialog::beautifyFingerprint(QString(sign->fpr))); break; } } @@ -834,11 +834,3 @@ void GpgWin::cleanDoubleLinebreaks() { content.replace("\n\n", "\n"); edit->fillTextEditWithText(content); } - -QString GpgWin::beautifyFingerprint(QString fingerprint){ - uint len = fingerprint.length(); - if ((len > 0) && (len % 4 == 0)) - for (uint n = 0; 4 *(n + 1) < len; ++n) - fingerprint.insert(5 * n + 4, ' '); - return fingerprint; -} -- cgit