aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gpgwin.cpp11
-rw-r--r--gpgwin.h2
-rw-r--r--release/icons/quote.pngbin0 -> 1608 bytes
-rw-r--r--textedit.cpp2
-rw-r--r--textedit.h2
5 files changed, 10 insertions, 7 deletions
diff --git a/gpgwin.cpp b/gpgwin.cpp
index ce13b5c..3fb7f73 100644
--- a/gpgwin.cpp
+++ b/gpgwin.cpp
@@ -187,9 +187,10 @@ void GpgWin::createActions()
"clipboard"));
connect(copyAct, SIGNAL(triggered()), edit, SLOT(copy()));
- commentAct = new QAction(tr("Co&mment"), this);
- commentAct->setToolTip(tr("Insert > in front of every line"));
- connect(commentAct, SIGNAL(triggered()), edit, SLOT(comment()));
+ quoteAct = new QAction(tr("&Quote"), this);
+ quoteAct->setIcon(QIcon(iconPath + "quote.png"));
+ quoteAct->setToolTip(tr("Insert > in front of every line"));
+ connect(quoteAct, SIGNAL(triggered()), edit, SLOT(quote()));
selectallAct = new QAction(tr("Select &All"), this);
selectallAct->setIcon(QIcon(iconPath + "edit.png"));
@@ -298,13 +299,14 @@ void GpgWin::createMenus()
editMenu->addAction(cutAct);
editMenu->addAction(pasteAct);
editMenu->addAction(selectallAct);
- editMenu->addAction(commentAct);
+ editMenu->addAction(quoteAct);
editMenu->addSeparator();
editMenu->addAction(openSettingsAct);
cryptMenu = menuBar()->addMenu(tr("&Crypt"));
cryptMenu->addAction(encryptAct);
cryptMenu->addAction(decryptAct);
+ cryptMenu->addSeparator();
cryptMenu->addAction(signAct);
cryptMenu->addAction(verifyAct);
cryptMenu->addSeparator();
@@ -345,6 +347,7 @@ void GpgWin::createToolBars()
editToolBar->addAction(copyAct);
editToolBar->addAction(pasteAct);
editToolBar->addAction(selectallAct);
+ editToolBar->addAction(quoteAct);
viewMenu->addAction(editToolBar->toggleViewAction());
}
diff --git a/gpgwin.h b/gpgwin.h
index 445a4e0..262cdef 100644
--- a/gpgwin.h
+++ b/gpgwin.h
@@ -133,7 +133,7 @@ private:
QAction *appendSelectedKeysAct;
QAction *openKeyManagementAct;
QAction *copyAct;
- QAction *commentAct;
+ QAction *quoteAct;
QAction *cutAct;
QAction *pasteAct;
QAction *selectallAct;
diff --git a/release/icons/quote.png b/release/icons/quote.png
new file mode 100644
index 0000000..ceadaad
--- /dev/null
+++ b/release/icons/quote.png
Binary files differ
diff --git a/textedit.cpp b/textedit.cpp
index 9fa7e9c..da55681 100644
--- a/textedit.cpp
+++ b/textedit.cpp
@@ -29,7 +29,7 @@ void TextEdit::dropEvent(QDropEvent* event)
//event->acceptProposedAction();
}
-void TextEdit::comment()
+void TextEdit::quote()
{
QString text=this->toPlainText();
text.replace("\n","\n> ",Qt::CaseSensitive);
diff --git a/textedit.h b/textedit.h
index 7a08dce..5688c71 100644
--- a/textedit.h
+++ b/textedit.h
@@ -17,7 +17,7 @@ private:
bool isKey(QString key);
public slots:
- void comment();
+ void quote();
protected:
void dragEnterEvent(QDragEnterEvent *event);