aboutsummaryrefslogtreecommitdiffstats
path: root/attachments.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 /attachments.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 'attachments.cpp')
-rw-r--r--attachments.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/attachments.cpp b/attachments.cpp
index abe1b71..82c2e6a 100644
--- a/attachments.cpp
+++ b/attachments.cpp
@@ -36,13 +36,10 @@
#include "attachments.h"
-Attachments::Attachments(QString iconpath, QWidget *parent)
+Attachments::Attachments(QWidget *parent)
: QWidget(parent)
{
-
- this->iconPath = iconpath;
-
- table = new AttachmentTableModel(iconpath, this);
+ table = new AttachmentTableModel(this);
tableView = new QTableView;
tableView->setModel(table);
@@ -80,12 +77,12 @@ void Attachments::createActions()
{
saveFileAct = new QAction(tr("Save File"), this);
saveFileAct->setToolTip(tr("Save this file"));
- saveFileAct->setIcon(QIcon(iconPath + "filesave.png"));
+ saveFileAct->setIcon(QIcon(":filesave.png"));
connect(saveFileAct, SIGNAL(triggered()), this, SLOT(saveFile()));
openFileAct = new QAction(tr("Open File"), this);
openFileAct->setToolTip(tr("Open this file"));
- openFileAct->setIcon(QIcon(iconPath + "fileopen.png"));
+ openFileAct->setIcon(QIcon(":fileopen.png"));
connect(openFileAct, SIGNAL(triggered()), this, SLOT(openFile()));
}