aboutsummaryrefslogtreecommitdiffstats
path: root/keylist.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-01-19 21:47:03 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-01-19 21:47:03 +0000
commitbed975413d03d7a3ad1b6e5b0793c98f1a89e271 (patch)
treefa369451996e1de275a77f8e4e8529608429249b /keylist.cpp
parentadded all icons to gpg4usb.qrc (diff)
downloadgpg4usb-bed975413d03d7a3ad1b6e5b0793c98f1a89e271.tar.gz
gpg4usb-bed975413d03d7a3ad1b6e5b0793c98f1a89e271.zip
use ressource file for all icons and remove iconpath
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@766 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keylist.cpp')
-rw-r--r--keylist.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/keylist.cpp b/keylist.cpp
index 8dc5281..791bd0b 100644
--- a/keylist.cpp
+++ b/keylist.cpp
@@ -21,11 +21,10 @@
#include "keylist.h"
-KeyList::KeyList(GpgME::GpgContext *ctx, QString iconpath, QWidget *parent)
+KeyList::KeyList(GpgME::GpgContext *ctx, QWidget *parent)
: QWidget(parent)
{
mCtx = ctx;
- this->iconPath = iconpath;
mKeyList = new QTableWidget(this);
mKeyList->setColumnCount(6);
@@ -85,7 +84,7 @@ void KeyList::refresh()
mKeyList->setItem(row, 0, tmp0);
if (it->privkey) {
- QTableWidgetItem *tmp1 = new QTableWidgetItem(QIcon(iconPath + "kgpg_key2.png"), "");
+ QTableWidgetItem *tmp1 = new QTableWidgetItem(QIcon(":kgpg_key2.png"), "");
mKeyList->setItem(row, 1, tmp1);
}
QTableWidgetItem *tmp2 = new QTableWidgetItem(it->name);