aboutsummaryrefslogtreecommitdiffstats
path: root/keylist.cpp
diff options
context:
space:
mode:
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();