]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Add icons to Edit menu
authorMarjio Mustac <mustacmarijo@googlemail.com>
Wed, 14 Feb 2018 14:40:36 +0000 (07:40 -0700)
committerNathaniel Graham <pointedstick@zoho.com>
Wed, 14 Feb 2018 14:43:38 +0000 (07:43 -0700)
Summary:
Since Breeze offers such a great palette of action icons I thought we should make use of them which make things also more consistent with other applications.

Before:
{F5711158}

After:
{F5711159}

Test Plan:
Show menubar
Icons are shown in Edit menu

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham

Differential Revision: https://phabricator.kde.org/D10503

src/dolphinmainwindow.cpp

index da241e20e5016a845961b646b389425ed9c018a7..280f337bc3669383a5506696200637e8ae034517 100644 (file)
@@ -1085,11 +1085,13 @@ void DolphinMainWindow::setupActions()
 
     QAction* selectAll = actionCollection()->addAction(QStringLiteral("select_all"));
     selectAll->setText(i18nc("@action:inmenu Edit", "Select All"));
+    selectAll->setIcon(QIcon::fromTheme(QStringLiteral("edit-select-all")));
     actionCollection()->setDefaultShortcut(selectAll, Qt::CTRL | Qt::Key_A);
     connect(selectAll, &QAction::triggered, this, &DolphinMainWindow::selectAll);
 
     QAction* invertSelection = actionCollection()->addAction(QStringLiteral("invert_selection"));
     invertSelection->setText(i18nc("@action:inmenu Edit", "Invert Selection"));
+    invertSelection->setIcon(QIcon::fromTheme(QStringLiteral("edit-select-invert")));
     actionCollection()->setDefaultShortcut(invertSelection, Qt::CTRL | Qt::SHIFT | Qt::Key_A);
     connect(invertSelection, &QAction::triggered, this, &DolphinMainWindow::invertSelection);