From ba29e3245d916022ebe36bc9070ee616d39e6b1d Mon Sep 17 00:00:00 2001 From: ubbo Date: Sat, 15 May 2010 14:20:04 +0000 Subject: astyle code beautyfying git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@336 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- keylist.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'keylist.cpp') diff --git a/keylist.cpp b/keylist.cpp index a481076..d9976fd 100644 --- a/keylist.cpp +++ b/keylist.cpp @@ -113,7 +113,7 @@ QStringList *KeyList::getPrivateChecked() { QStringList *ret = new QStringList(); for (int i = 0; i < mKeyList->rowCount(); i++) { - if ((mKeyList->item(i, 0)->checkState() == Qt::Checked) && (mKeyList->item(i,1))) { + if ((mKeyList->item(i, 0)->checkState() == Qt::Checked) && (mKeyList->item(i, 1))) { *ret << mKeyList->item(i, 4)->text(); } } @@ -122,13 +122,13 @@ QStringList *KeyList::getPrivateChecked() void KeyList::setChecked(QStringList *keyIds) { - if (!keyIds->isEmpty()){ - for (int i = 0; i < mKeyList->rowCount(); i++) { - if (keyIds->contains(mKeyList->item(i, 4)->text())) { - mKeyList->item(i, 0)->setCheckState(Qt::Checked); - } - } - } + if (!keyIds->isEmpty()) { + for (int i = 0; i < mKeyList->rowCount(); i++) { + if (keyIds->contains(mKeyList->item(i, 4)->text())) { + mKeyList->item(i, 0)->setCheckState(Qt::Checked); + } + } + } } /*QStringList *KeyList::getPrivateChecked() -- cgit v1.2.3