[kde-doc-english] [trojita] src/Gui: GUI: Add "copy" action to the message viewer's context menu

Jan Kundrát jkt at kde.org
Thu May 14 16:03:26 UTC 2015


Git commit 88473e24e3761e4229a16e2f23f9cda3be18c032 by Jan Kundrát.
Committed on 12/05/2015 at 21:55.
Pushed by gerrit into branch 'master'.

GUI: Add "copy" action to the message viewer's context menu

BUG: 347625
Change-Id: Ia69af94f37fbea67759aff937e43295a7580bb04

M  +1    -0    src/Gui/MessageView.cpp

http://commits.kde.org/trojita/88473e24e3761e4229a16e2f23f9cda3be18c032

diff --git a/src/Gui/MessageView.cpp b/src/Gui/MessageView.cpp
index 2c3d2e5..f7a2db6 100644
--- a/src/Gui/MessageView.cpp
+++ b/src/Gui/MessageView.cpp
@@ -448,6 +448,7 @@ void MessageView::partContextMenuRequested(const QPoint &point)
         QMenu menu(w);
         Q_FOREACH(QAction *action, w->contextMenuSpecificActions())
             menu.addAction(action);
+        menu.addAction(w->pageAction(QWebPage::Copy));
         menu.addAction(w->pageAction(QWebPage::SelectAll));
         if (!w->page()->mainFrame()->hitTestContent(point).linkUrl().isEmpty()) {
             menu.addSeparator();


More information about the kde-doc-english mailing list