From bed975413d03d7a3ad1b6e5b0793c98f1a89e271 Mon Sep 17 00:00:00 2001 From: nils Date: Thu, 19 Jan 2012 21:47:03 +0000 Subject: 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 --- keylist.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'keylist.cpp') 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); -- cgit v1.2.3