aboutsummaryrefslogtreecommitdiffstats
path: root/keylist.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2009-09-19 15:50:33 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2009-09-19 15:50:33 +0000
commita68b9055347759ba71db77559047c44db02e8f46 (patch)
treef96a063617f24ddd3c568e89206cf17ebc24a474 /keylist.cpp
parentnew version number and smaller changes (diff)
downloadgpg4usb-a68b9055347759ba71db77559047c44db02e8f46.tar.gz
gpg4usb-a68b9055347759ba71db77559047c44db02e8f46.zip
cosmetic changes(indention)
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@217 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keylist.cpp')
-rw-r--r--keylist.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/keylist.cpp b/keylist.cpp
index 1aef56b..4e51e31 100644
--- a/keylist.cpp
+++ b/keylist.cpp
@@ -21,7 +21,7 @@
#include "keylist.h"
-KeyList::KeyList(GpgME::Context* ctx, QString iconpath, QWidget *parent)
+KeyList::KeyList(GpgME::Context *ctx, QString iconpath, QWidget *parent)
: QWidget(parent)
{
mCtx = ctx;
@@ -33,7 +33,7 @@ KeyList::KeyList(GpgME::Context* ctx, QString iconpath, QWidget *parent)
mKeyList->setShowGrid(false);
mKeyList->setColumnWidth(0, 24);
mKeyList->setColumnWidth(1, 20);
- mKeyList->sortByColumn(2,Qt::AscendingOrder);
+ mKeyList->sortByColumn(2, Qt::AscendingOrder);
mKeyList->setSelectionBehavior(QAbstractItemView::SelectRows);
mKeyList->setColumnHidden(4, true);
// tableitems not editable
@@ -56,7 +56,7 @@ KeyList::KeyList(GpgME::Context* ctx, QString iconpath, QWidget *parent)
setLayout(layout);
popupMenu = new QMenu(this);
- connect(mCtx, SIGNAL(keyDBChanged()), this, SLOT(refresh()));
+ connect(mCtx, SIGNAL(keyDBChanged()), this, SLOT(refresh()));
refresh();
}
@@ -69,7 +69,7 @@ void KeyList::refresh()
GpgKeyList keys = mCtx->listKeys();
mKeyList->setRowCount(keys.size());
- int row=0;
+ int row = 0;
GpgKeyList::iterator it = keys.begin();
while (it != keys.end()) {
@@ -78,8 +78,8 @@ void KeyList::refresh()
tmp0->setCheckState(Qt::Unchecked);
mKeyList->setItem(row, 0, tmp0);
- if(it->privkey) {
- QTableWidgetItem *tmp1 = new QTableWidgetItem(QIcon(iconPath + "kgpg_key2.png"),"");
+ if (it->privkey) {
+ QTableWidgetItem *tmp1 = new QTableWidgetItem(QIcon(iconPath + "kgpg_key2.png"), "");
mKeyList->setItem(row, 1, tmp1);
}
QTableWidgetItem *tmp2 = new QTableWidgetItem(it->name);
@@ -101,8 +101,8 @@ QList<QString> *KeyList::getChecked()
{
QList<QString> *ret = new QList<QString>();
for (int i = 0; i < mKeyList->rowCount(); i++) {
- if (mKeyList->item(i,0)->checkState() == Qt::Checked) {
- *ret << mKeyList->item(i,4)->text();
+ if (mKeyList->item(i, 0)->checkState() == Qt::Checked) {
+ *ret << mKeyList->item(i, 4)->text();
}
}
return ret;
@@ -113,8 +113,8 @@ QList<QString> *KeyList::getSelected()
QList<QString> *ret = new QList<QString>();
for (int i = 0; i < mKeyList->rowCount(); i++) {
- if (mKeyList->item(i,0)->isSelected() == 1) {
- *ret << mKeyList->item(i,4)->text();
+ if (mKeyList->item(i, 0)->isSelected() == 1) {
+ *ret << mKeyList->item(i, 4)->text();
}
}
return ret;