From 264720b6bfdae06e6fd5a31afce7f2f7c3b875d2 Mon Sep 17 00:00:00 2001 From: nils Date: Sun, 30 Sep 2012 01:06:00 +0000 Subject: refactored slots in attachments.* and editorpage.* git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@979 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- attachments.cpp | 8 ++++---- attachments.h | 4 ++-- editorpage.cpp | 2 +- editorpage.h | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/attachments.cpp b/attachments.cpp index 8158da6..1110464 100644 --- a/attachments.cpp +++ b/attachments.cpp @@ -78,16 +78,16 @@ void Attachments::createActions() saveFileAct = new QAction(tr("Save File"), this); saveFileAct->setToolTip(tr("Save this file")); saveFileAct->setIcon(QIcon(":filesave.png")); - connect(saveFileAct, SIGNAL(triggered()), this, SLOT(saveFile())); + connect(saveFileAct, SIGNAL(triggered()), this, SLOT(slotSaveFile())); openFileAct = new QAction(tr("Open File"), this); openFileAct->setToolTip(tr("Open this file")); openFileAct->setIcon(QIcon(":fileopen.png")); - connect(openFileAct, SIGNAL(triggered()), this, SLOT(openFile())); + connect(openFileAct, SIGNAL(triggered()), this, SLOT(slotOpenFile())); } -void Attachments::saveFile() +void Attachments::slotSaveFile() { QModelIndexList indexes = tableView->selectionModel()->selection().indexes(); @@ -136,7 +136,7 @@ void Attachments::saveByteArrayToFile(QByteArray outBuffer, QString filename) * - ask for cleanup of dir on exit * - remove code-duplication with saveByteArrayToFile */ -void Attachments::openFile() { +void Attachments::slotOpenFile() { // TODO: make attachmentdir constant or configurable QString attachmentDir = qApp->applicationDirPath() + "/attachments/"; diff --git a/attachments.h b/attachments.h index 895c592..5d72d9e 100644 --- a/attachments.h +++ b/attachments.h @@ -45,8 +45,8 @@ class Attachments : public QWidget Q_OBJECT public slots: - void saveFile(); - void openFile(); + void slotSaveFile(); + void slotOpenFile(); public: Attachments(QWidget *parent = 0); diff --git a/editorpage.cpp b/editorpage.cpp index b057f8b..28926a9 100644 --- a/editorpage.cpp +++ b/editorpage.cpp @@ -73,7 +73,7 @@ void EditorPage::closeNoteByClass(const char *className) } } -void EditorPage::formatGpgHeader() { +void EditorPage::slotFormatGpgHeader() { QString content = textPage->toPlainText(); diff --git a/editorpage.h b/editorpage.h index 0a1fb55..d5222cf 100644 --- a/editorpage.h +++ b/editorpage.h @@ -95,7 +95,7 @@ private slots: /** * @details Format the gpg header in another font-style */ - void formatGpgHeader(); + void slotFormatGpgHeader(); }; #endif // __TEXTPAGE_H__ -- cgit v1.2.3