aboutsummaryrefslogtreecommitdiffstats
path: root/keylist.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-05-15 14:20:04 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2010-05-15 14:20:04 +0000
commitba29e3245d916022ebe36bc9070ee616d39e6b1d (patch)
tree6e3f8529cd4a131bc05a3039a88c529b05fc967f /keylist.cpp
parentadd attachmnet-view to view-menu (diff)
downloadgpg4usb-ba29e3245d916022ebe36bc9070ee616d39e6b1d.tar.gz
gpg4usb-ba29e3245d916022ebe36bc9070ee616d39e6b1d.zip
astyle code beautyfying
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@336 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keylist.cpp')
-rw-r--r--keylist.cpp16
1 files changed, 8 insertions, 8 deletions
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()