Commit 43f16f05 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix icons

parent 4d466c88
Pipeline #69919 passed with stage
in 3 minutes
...@@ -91,13 +91,13 @@ void CustomDebugSettingsPage::slotCustomContextMenu(const QPoint &pos) ...@@ -91,13 +91,13 @@ void CustomDebugSettingsPage::slotCustomContextMenu(const QPoint &pos)
{ {
QMenu menu(this); QMenu menu(this);
const int selectedItemCount{mListWidget->selectedItems().count()}; const int selectedItemCount{mListWidget->selectedItems().count()};
menu.addAction(i18n("Add Rule..."), this, &CustomDebugSettingsPage::slotAddRule); menu.addAction(QIcon::fromTheme(QStringLiteral("list-add")), i18n("Add Rule..."), this, &CustomDebugSettingsPage::slotAddRule);
if (selectedItemCount == 1) { if (selectedItemCount == 1) {
menu.addAction(QIcon::fromTheme(QStringLiteral("edit")), i18n("Edit Rule"), this, &CustomDebugSettingsPage::slotEditRule); menu.addAction(QIcon::fromTheme(QStringLiteral("document-edit")), i18n("Edit Rule"), this, &CustomDebugSettingsPage::slotEditRule);
} }
if (selectedItemCount > 0) { if (selectedItemCount > 0) {
menu.addSeparator(); menu.addSeparator();
menu.addAction(QIcon::fromTheme(QStringLiteral("edit-delete")), i18n("Remove Rule"), this, &CustomDebugSettingsPage::slotRemoveRules); menu.addAction(QIcon::fromTheme(QStringLiteral("list-remove")), i18n("Remove Rule"), this, &CustomDebugSettingsPage::slotRemoveRules);
} }
menu.exec(mListWidget->viewport()->mapToGlobal(pos)); menu.exec(mListWidget->viewport()->mapToGlobal(pos));
} }
......
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