diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-09-30 01:06:00 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-09-30 01:06:00 +0000 |
commit | 264720b6bfdae06e6fd5a31afce7f2f7c3b875d2 (patch) | |
tree | 16bf665dc582f68c34ed9f95de38fbb608fa1232 | |
parent | refactored slots in mainwindow.* (diff) | |
download | gpg4usb-264720b6bfdae06e6fd5a31afce7f2f7c3b875d2.tar.gz gpg4usb-264720b6bfdae06e6fd5a31afce7f2f7c3b875d2.zip |
refactored slots in attachments.* and editorpage.*
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@979 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | attachments.cpp | 8 | ||||
-rw-r--r-- | attachments.h | 4 | ||||
-rw-r--r-- | editorpage.cpp | 2 | ||||
-rw-r--r-- | 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__ |