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 --- attachments.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'attachments.cpp') 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())); } -- cgit v1.2.3