diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-03 22:40:21 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-03 22:40:21 +0000 |
commit | 674af989f428c3718ea05a944e31c01da44ec864 (patch) | |
tree | 3eb7124ee02cf9c83c3c75f280589172cfd5c8d1 | |
parent | set name, email, comment and keyid selectable in key details (diff) | |
download | gpg4usb-674af989f428c3718ea05a944e31c01da44ec864.tar.gz gpg4usb-674af989f428c3718ea05a944e31c01da44ec864.zip |
also make additional uids selectable in key detial dialog
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@724 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | keydetailsdialog.cpp | 10 | ||||
-rw-r--r-- | keydetailsdialog.h | 4 |
3 files changed, 9 insertions, 6 deletions
@@ -37,6 +37,7 @@ Release 0.3.2 - show message, when key export is successful (statusbar) - encrypt and sign, decrypt and verify (?) - Add buttonto copy fingerprint to clipboard in details dialog + - or set margin to make it easier selectable? - remove whitespaces on copy - Add default key functionality - fix translation file for "SettingsDialog" as it says two times English, and the comment is on the wrong one. diff --git a/keydetailsdialog.cpp b/keydetailsdialog.cpp index 6616276..0e97da9 100644 --- a/keydetailsdialog.cpp +++ b/keydetailsdialog.cpp @@ -114,9 +114,9 @@ KeyDetailsDialog::KeyDetailsDialog(GpgME::GpgContext* ctx, gpgme_key_t key, QWid mvbox->addWidget(keyBox); vboxFP = new QVBoxLayout(); - fingerPrintLabel = new QLabel(beautifyFingerprint(key->subkeys->fpr)); - fingerPrintLabel->setTextInteractionFlags(Qt::TextSelectableByMouse); - vboxFP->addWidget(fingerPrintLabel); + fingerPrintVarLabel = new QLabel(beautifyFingerprint(key->subkeys->fpr)); + fingerPrintVarLabel->setTextInteractionFlags(Qt::TextSelectableByMouse); + vboxFP->addWidget(fingerPrintVarLabel); fingerprintBox->setLayout(vboxFP); mvbox->addWidget(fingerprintBox); @@ -125,7 +125,9 @@ KeyDetailsDialog::KeyDetailsDialog(GpgME::GpgContext* ctx, gpgme_key_t key, QWid if (addUserIds !=NULL) { vboxUID = new QVBoxLayout(); while (addUserIds != NULL){ - vboxUID->addWidget(new QLabel(addUserIds->name+ QString(" <")+addUserIds->email+">")); + addUserIdsVarLabel = new QLabel(addUserIds->name+ QString(" <")+addUserIds->email+">"); + addUserIdsVarLabel->setTextInteractionFlags(Qt::TextSelectableByMouse); + vboxUID->addWidget(addUserIdsVarLabel); addUserIds=addUserIds->next; } additionalUidBox->setLayout(vboxUID); diff --git a/keydetailsdialog.h b/keydetailsdialog.h index 3beb34e..fb515a2 100644 --- a/keydetailsdialog.h +++ b/keydetailsdialog.h @@ -72,7 +72,7 @@ private: QLabel *expireLabel; QLabel *createdLabel; QLabel *algorithmLabel; - QLabel *fingerPrintLabel; + QLabel *fingerPrintVarLabel; QLabel *keyidLabel; QLabel *nameVarLabel; @@ -83,7 +83,7 @@ private: QLabel *createdVarLabel; QLabel *algorithmVarLabel; QLabel *keyidVarLabel; - + QLabel *addUserIdsVarLabel; }; #endif // __KEYDETAILSDIALOG_H__ |