From 8933e7407b7ad5de695d3dcd202053abcc2f4acb Mon Sep 17 00:00:00 2001 From: nils Date: Sat, 19 Nov 2011 11:07:11 +0000 Subject: also strike out revoked keys in keylist git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@638 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- gpgcontext.h | 2 +- keylist.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gpgcontext.h b/gpgcontext.h index 101dbdf..3e9e760 100644 --- a/gpgcontext.h +++ b/gpgcontext.h @@ -48,6 +48,7 @@ public: QString fpr; bool privkey; bool expired; + bool revoked; }; typedef QLinkedList< GpgKey > GpgKeyList; @@ -62,7 +63,6 @@ class GpgContext : public QObject public: GpgContext(); // Constructor ~GpgContext(); // Destructor - void importKey(QByteArray inBuffer); bool exportKeys(QStringList *uidList, QByteArray *outBuffer); void generateKey(QString *params); diff --git a/keylist.cpp b/keylist.cpp index 64f5044..37e948e 100644 --- a/keylist.cpp +++ b/keylist.cpp @@ -94,7 +94,7 @@ void KeyList::refresh() QTableWidgetItem *tmp3 = new QTableWidgetItem(it->email); tmp3->setToolTip(it->email); // strike out expired keys - if(it->expired) { + if(it->expired || it->revoked) { QFont strike = tmp2->font(); strike.setStrikeOut(true); tmp2->setFont(strike); -- cgit v1.2.3