diff options
| author | Alex Debus <[email protected]> | 2018-10-09 15:12:38 -0600 |
|---|---|---|
| committer | Nathaniel Graham <[email protected]> | 2018-10-09 15:17:41 -0600 |
| commit | 488d850f7e3f343d420275015780894fb1234eef (patch) | |
| tree | 7fe9e1ce11753e4efd6fccf1485fee64a4a65397 | |
| parent | 7f223f93df5ba613911e85a7959fc95e05ac6705 (diff) | |
Added missing QStringLiteral to Dolphin code
Summary:
Changed
```
QIcon::fromTheme("icon")
```
to
```
QIcon::fromTheme(QStringLiteral("edit-entry"))
```
as [[ https://phabricator.kde.org/D16019#339284 | discussed here ]].
Reviewers: ngraham, #dolphin, elvisangelaccio
Reviewed By: ngraham, #dolphin, elvisangelaccio
Subscribers: elvisangelaccio, kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D16050
| -rw-r--r-- | src/panels/places/placespanel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp index 8d7f29384..c81735ff1 100644 --- a/src/panels/places/placespanel.cpp +++ b/src/panels/places/placespanel.cpp @@ -201,14 +201,14 @@ void PlacesPanel::slotItemContextMenuRequested(int index, const QPointF& pos) } } - QAction* openInNewWindowAction = menu.addAction(QIcon::fromTheme("window-new"), i18nc("@item:inmenu", "Open in New Window")); - QAction* openInNewTabAction = menu.addAction(QIcon::fromTheme("tab-new"), i18nc("@item:inmenu", "Open in New Tab")); + QAction* openInNewWindowAction = menu.addAction(QIcon::fromTheme(QStringLiteral("window-new")), i18nc("@item:inmenu", "Open in New Window")); + QAction* openInNewTabAction = menu.addAction(QIcon::fromTheme(QStringLiteral("tab-new")), i18nc("@item:inmenu", "Open in New Tab")); if (!isDevice && !isTrash) { menu.addSeparator(); } if (!isDevice) { - editAction = menu.addAction(QIcon::fromTheme("edit-entry"), i18nc("@item:inmenu", "Edit...")); + editAction = menu.addAction(QIcon::fromTheme(QStringLiteral("edit-entry")), i18nc("@item:inmenu", "Edit...")); } QAction* removeAction = nullptr; |
