Commit efaebe29 authored by Andrew Crouthamel's avatar Andrew Crouthamel Committed by Nate Graham

Add icons for context and sidebar menu

Summary:
[[ https://phabricator.kde.org/D10718#210970 | As requested ]] by @rkflx, menu icons have been added for the context and sidebar menus, continuing the work completed in D10503.

Operations Sidebar Before:
{F5725605}
Operations Sidebar After:
{F5725888}
Context Before:
{F5725571}
Context After:
{F5725928}
Trash Context Before:
{F5725573}
Trash Context After:
{F5725574}

Test Plan: Execute Gwenview, perform moves/copies/links/redeye actions. Verify icon resolution and appropriateness.

Reviewers: #gwenview, ngraham, rkflx

Reviewed By: #gwenview, ngraham, rkflx

Subscribers: muhlenpfordt, ngraham, rkflx

Tags: #gwenview

Differential Revision: https://phabricator.kde.org/D10726
parent aa368aea
......@@ -138,14 +138,17 @@ FileOpsContextManagerItem::FileOpsContextManagerItem(ContextManager* manager, QL
mCopyToAction = file->addAction("file_copy_to", this, SLOT(copyTo()));
mCopyToAction->setText(i18nc("Verb", "Copy To..."));
mCopyToAction->setIcon(QIcon::fromTheme("edit-copy"));
actionCollection->setDefaultShortcut(mCopyToAction, Qt::Key_F7);
mMoveToAction = file->addAction("file_move_to", this, SLOT(moveTo()));
mMoveToAction->setText(i18nc("Verb", "Move To..."));
mMoveToAction->setIcon(QIcon::fromTheme("go-jump"));
actionCollection->setDefaultShortcut(mMoveToAction, Qt::Key_F8);
mLinkToAction = file->addAction("file_link_to", this, SLOT(linkTo()));
mLinkToAction->setText(i18nc("Verb: create link to the file where user wants", "Link To..."));
mLinkToAction->setIcon(QIcon::fromTheme("link"));
actionCollection->setDefaultShortcut(mLinkToAction, Qt::Key_F9);
mRenameAction = file->addAction("file_rename", this, SLOT(rename()));
......@@ -155,13 +158,14 @@ FileOpsContextManagerItem::FileOpsContextManagerItem(ContextManager* manager, QL
mTrashAction = file->addAction("file_trash", this, SLOT(trash()));
mTrashAction->setText(i18nc("Verb", "Trash"));
mTrashAction->setIcon(QIcon::fromTheme("user-trash"));
mTrashAction->setIcon(QIcon::fromTheme("user-trash-symbolic"));
actionCollection->setDefaultShortcut(mTrashAction, Qt::Key_Delete);
mDelAction = file->addAction(KStandardAction::DeleteFile, this, SLOT(del()));
mRestoreAction = file->addAction("file_restore", this, SLOT(restore()));
mRestoreAction->setText(i18n("Restore"));
mRestoreAction->setIcon(QIcon::fromTheme("edit-undo"));
mShowPropertiesAction = file->addAction("file_show_properties", this, SLOT(showProperties()));
mShowPropertiesAction->setText(i18n("Properties"));
......@@ -180,6 +184,7 @@ FileOpsContextManagerItem::FileOpsContextManagerItem(ContextManager* manager, QL
mOpenContainingFolderAction = file->addAction("file_open_containing_folder", this, SLOT(openContainingFolder()));
mOpenContainingFolderAction->setText(i18n("Open Containing Folder"));
mOpenContainingFolderAction->setIcon(QIcon::fromTheme("folder-open-symbolic"));
mRegularFileActionList
<< mRenameAction
......
......@@ -112,7 +112,7 @@ struct ImageOpsContextManagerItem::Private
mRedEyeReductionAction = edit->addAction("red_eye_reduction", q, SLOT(startRedEyeReduction()));
mRedEyeReductionAction->setText(i18n("Red Eye Reduction"));
//mRedEyeReductionAction->setIcon(QIcon::fromTheme("transform-crop-and-resize"));
mRedEyeReductionAction->setIcon(QIcon::fromTheme("redeyes"));
mActionList
<< mRotateLeftAction
......
......@@ -201,6 +201,7 @@ struct SemanticInfoContextManagerItemPrivate : public Ui_SemanticInfoSideBarItem
mEditTagsAction = edit->addAction("edit_tags");
mEditTagsAction->setText(i18nc("@action", "Edit Tags"));
mEditTagsAction->setIcon(QIcon::fromTheme("tag"));
mActionCollection->setDefaultShortcut(mEditTagsAction, Qt::CTRL + Qt::Key_T);
QObject::connect(mEditTagsAction, SIGNAL(triggered()),
q, SLOT(showSemanticInfoDialog()));
......
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