From bc7f67698de453ccffadc59f823632acba852798 Mon Sep 17 00:00:00 2001 From: ubbo Date: Sun, 10 Aug 2008 12:31:25 +0000 Subject: source beutyfication with astyle, following http://techbase.kde.org/Policies/Kdelibs_Coding_Style git-svn-id: http://cpunk.de/svn/src/gpg4usb@121 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- keylist.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'keylist.cpp') diff --git a/keylist.cpp b/keylist.cpp index 9580bb7..710afc7 100644 --- a/keylist.cpp +++ b/keylist.cpp @@ -33,7 +33,7 @@ KeyList::KeyList(QWidget *parent) m_idList = new QList(); m_deleteButton = new QPushButton(tr("Delete Selected Keys")); - connect(m_deleteButton, SIGNAL(clicked()), this, SLOT( deleteKeys() ) ); + connect(m_deleteButton, SIGNAL(clicked()), this, SLOT(deleteKeys())); QVBoxLayout *layout = new QVBoxLayout; layout->addWidget(m_keyList); @@ -49,7 +49,7 @@ void KeyList::setContext(GpgME::Context *ctx) refresh(); } -void KeyList::setIconPath( QString path ) +void KeyList::setIconPath(QString path) { this->iconPath = path; } @@ -70,10 +70,10 @@ void KeyList::refresh() GpgKeyList::iterator it = keys.begin(); while (it != keys.end()) { QListWidgetItem *tmp = new QListWidgetItem( - it->name + " <" + it->email +">" + it->name + " <" + it->email + ">" ); - tmp->setFlags( Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsSelectable ); - tmp->setCheckState( Qt::Unchecked ); + tmp->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsSelectable); + tmp->setCheckState(Qt::Unchecked); if (it->privkey == 1) tmp->setIcon(QIcon(iconPath + "kgpg_key2.png")); m_keyList->addItem(tmp); @@ -83,7 +83,7 @@ void KeyList::refresh() } -QList* KeyList::getChecked() +QList *KeyList::getChecked() { QList *ret = new QList(); for (int i = 0; i < m_keyList->count(); i++) { @@ -94,7 +94,7 @@ QList* KeyList::getChecked() return ret; } -QList* KeyList::getSelected() +QList *KeyList::getSelected() { QList *ret = new QList(); for (int i = 0; i < m_keyList->count(); i++) { -- cgit v1.2.3