From 22471b148d8877c3fd721c443792ad1e721d00f9 Mon Sep 17 00:00:00 2001 From: nils Date: Sun, 30 Oct 2011 23:04:42 +0000 Subject: added first idea of wizard git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@591 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- keylist.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'keylist.cpp') diff --git a/keylist.cpp b/keylist.cpp index c098ba4..64f5044 100644 --- a/keylist.cpp +++ b/keylist.cpp @@ -194,6 +194,16 @@ QStringList *KeyList::getSelected() return ret; } +bool KeyList::containsPrivateKeys() +{ + for (int i = 0; i < mKeyList->rowCount(); i++) { + if (mKeyList->item(i, 1)) { + return true; + } + } + return false; +} + void KeyList::setColumnWidth(int row, int size) { mKeyList->setColumnWidth(row, size); -- cgit v1.2.3