From e1b58fd5c8fa20f5bfb216c3be751719c154046d Mon Sep 17 00:00:00 2001 From: nils Date: Sat, 6 Feb 2016 16:01:40 +0100 Subject: encrypt to self --- keylist.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'keylist.cpp') 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(); -- cgit v1.2.3