diff options
author | nils <[email protected]> | 2016-02-06 15:01:40 +0000 |
---|---|---|
committer | nils <[email protected]> | 2016-02-06 15:01:40 +0000 |
commit | e1b58fd5c8fa20f5bfb216c3be751719c154046d (patch) | |
tree | fe1a9367623aa65a81cc4a6c43a84a48388d109a /keylist.cpp | |
parent | updated french translation (diff) | |
download | gpg4usb-e1b58fd5c8fa20f5bfb216c3be751719c154046d.tar.gz gpg4usb-e1b58fd5c8fa20f5bfb216c3be751719c154046d.zip |
encrypt to self
Diffstat (limited to 'keylist.cpp')
-rw-r--r-- | keylist.cpp | 11 |
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(); |