Commit 2c2b5eca authored by Nate Graham's avatar Nate Graham
Browse files

Add "Copy" items to context menus

This lets the user copy an image to the clipboard directly from the
context menu, without having to use the menubar or keyboard shortcut.

BUG: 437264
FIXED-IN: 21.08
parent 30b580f1
......@@ -89,6 +89,7 @@ void ThumbnailViewHelper::showContextMenu(QWidget* parent)
d->addActionToMenu(popup, "file_trash");
d->addActionToMenu(popup, "deletefile");
popup.addSeparator();
d->addActionToMenu(popup, KStandardAction::name(KStandardAction::Copy));
d->addActionToMenu(popup, "file_copy_to");
d->addActionToMenu(popup, "file_move_to");
d->addActionToMenu(popup, "file_link_to");
......
......@@ -559,6 +559,7 @@ void ViewMainPage::showContextMenu()
}
menu.addSeparator();
addActionToMenu(&menu, d->mActionCollection, KStandardAction::name(KStandardAction::Copy));
addActionToMenu(&menu, d->mActionCollection, "file_copy_to");
addActionToMenu(&menu, d->mActionCollection, "file_move_to");
addActionToMenu(&menu, d->mActionCollection, "file_link_to");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment