aboutsummaryrefslogtreecommitdiffstats
path: root/keylist.cpp
diff options
context:
space:
mode:
authornils <[email protected]>2016-02-06 15:01:40 +0000
committernils <[email protected]>2016-02-06 15:01:40 +0000
commite1b58fd5c8fa20f5bfb216c3be751719c154046d (patch)
treefe1a9367623aa65a81cc4a6c43a84a48388d109a /keylist.cpp
parentupdated french translation (diff)
downloadgpg4usb-e1b58fd5c8fa20f5bfb216c3be751719c154046d.tar.gz
gpg4usb-e1b58fd5c8fa20f5bfb216c3be751719c154046d.zip
encrypt to self
Diffstat (limited to 'keylist.cpp')
-rw-r--r--keylist.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/keylist.cpp b/keylist.cpp
index 3d93433..ff39678 100644
--- a/keylist.cpp
+++ b/keylist.cpp
@@ -124,6 +124,17 @@ QStringList *KeyList::getChecked()
return ret;
}
+QStringList *KeyList::getAllPrivateKeys()
+{
+ QStringList *ret = new QStringList();
+ for (int i = 0; i < mKeyList->rowCount(); i++) {
+ if (mKeyList->item(i, 1)) {
+ *ret << mKeyList->item(i, 4)->text();
+ }
+ }
+ return ret;
+}
+
QStringList *KeyList::getPrivateChecked()
{
QStringList *ret = new QStringList();