aboutsummaryrefslogtreecommitdiffstats
path: root/keylist.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2008-09-29 17:22:17 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2008-09-29 17:22:17 +0000
commitd3ce1bb3464d65722f2dbf82c266af667d356f7a (patch)
tree84170dd88cf9a523abf016bb06ed233a4a615598 /keylist.cpp
parentadded key management window (diff)
downloadgpg4usb-d3ce1bb3464d65722f2dbf82c266af667d356f7a.tar.gz
gpg4usb-d3ce1bb3464d65722f2dbf82c266af667d356f7a.zip
reorganized constructor of keylist
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@178 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keylist.cpp')
-rw-r--r--keylist.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/keylist.cpp b/keylist.cpp
index 395ae8f..b4ef294 100644
--- a/keylist.cpp
+++ b/keylist.cpp
@@ -21,9 +21,12 @@
#include "keylist.h"
-KeyList::KeyList(QWidget *parent)
+KeyList::KeyList(GpgME::Context* ctx, QString iconpath, QWidget *parent)
: QWidget(parent)
{
+ m_ctx = ctx;
+ this->iconPath = iconpath;
+
m_keyList = new QTableWidget(this);
m_keyList->setColumnCount(5);
m_keyList->verticalHeader()->hide();
@@ -54,19 +57,9 @@ KeyList::KeyList(QWidget *parent)
popupMenu = new QMenu(this);
-}
-
-void KeyList::setContext(GpgME::Context *ctx)
-{
- m_ctx = ctx;
refresh();
}
-void KeyList::setIconPath(QString path)
-{
- this->iconPath = path;
-}
-
void KeyList::refresh()
{
// while filling the table, sort enabled causes errors