diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2008-08-10 12:31:25 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2008-08-10 12:31:25 +0000 |
commit | bc7f67698de453ccffadc59f823632acba852798 (patch) | |
tree | fe85f84f876e25743d3bbb6679e1bf8132d2e73c /keylist.cpp | |
parent | some source-beatyfying with astyle, use absolute path to find icons (diff) | |
download | gpg4usb-bc7f67698de453ccffadc59f823632acba852798.tar.gz gpg4usb-bc7f67698de453ccffadc59f823632acba852798.zip |
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
Diffstat (limited to 'keylist.cpp')
-rw-r--r-- | keylist.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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<QString>(); 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<QString>* KeyList::getChecked() +QList<QString> *KeyList::getChecked() { QList<QString> *ret = new QList<QString>(); for (int i = 0; i < m_keyList->count(); i++) { @@ -94,7 +94,7 @@ QList<QString>* KeyList::getChecked() return ret; } -QList<QString>* KeyList::getSelected() +QList<QString> *KeyList::getSelected() { QList<QString> *ret = new QList<QString>(); for (int i = 0; i < m_keyList->count(); i++) { |