Git commit 12374f27b8515dadbfea02036c500905dd5b7246 by Jan Kundr?t. Committed on 19/09/2013 at 12:11. Pushed by jkt into branch 'master'.
GUI: Mention keyboard modifiers and add pretty icons to the popup menu when dragging messages The keyboard shurtcuts are shown to the user. This is in an attempt to make these key modifiers easier to discover. The icons are inspired (well, shamelessly stolen from) by Gwenview. REVIEW: 112813 M +4 -4 src/Gui/MailBoxTreeView.cpp http://commits.kde.org/trojita/12374f27b8515dadbfea02036c500905dd5b7246 diff --git a/src/Gui/MailBoxTreeView.cpp b/src/Gui/MailBoxTreeView.cpp index 6a1a34c..0e99ae9 100644 --- a/src/Gui/MailBoxTreeView.cpp +++ b/src/Gui/MailBoxTreeView.cpp @@ -25,6 +25,7 @@ #include <QDragMoveEvent> #include <QDropEvent> #include <QMenu> +#include "IconLoader.h" namespace Gui { @@ -75,10 +76,9 @@ void MailBoxTreeView::dropEvent(QDropEvent *event) event->setDropAction(Qt::MoveAction); } else { QMenu menu; - // TODO: provide icons for copy and move actions - QAction *moveAction = menu.addAction(tr("Move here")); - menu.addAction(tr("Copy here")); - QAction *cancelAction = menu.addAction(style()->standardIcon(QStyle::SP_DialogCancelButton), tr("Cancel")); + QAction *moveAction = menu.addAction(loadIcon(QLatin1String("go-jump")), tr("Move here\tShift")); + menu.addAction(loadIcon(QLatin1String("edit-copy")), tr("Copy here\tCtrl")); + QAction *cancelAction = menu.addAction(loadIcon(QLatin1String("process-stop")), tr("Cancel")); QAction *selectedAction = menu.exec(QCursor::pos());
