Commit 9db9eb3b authored by Laurent Montel's avatar Laurent Montel 😁

Add icons

parent 58a3a07f
......@@ -99,16 +99,16 @@ void AdBlockBlockableItemsWidget::customContextMenuRequested(const QPoint &)
}
QMenu menu;
menu.addAction(i18n("Copy url"), this, SLOT(slotCopyItem()));
menu.addAction(QIcon::fromTheme(QStringLiteral("edit-copy")), i18n("Copy url"), this, SLOT(slotCopyItem()));
if (!item->text(FilterValue).isEmpty()) {
menu.addAction(i18n("Copy filter"), this, SLOT(slotCopyFilterItem()));
menu.addAction(QIcon::fromTheme(QStringLiteral("edit-copy")), i18n("Copy filter"), this, SLOT(slotCopyFilterItem()));
}
menu.addAction(i18n("Block item..."), this, SLOT(slotBlockItem()));
menu.addSeparator();
menu.addAction(i18n("Open"), this, SLOT(slotOpenItem()));
menu.addAction(QIcon::fromTheme(QStringLiteral("document-open")), i18n("Open"), this, SLOT(slotOpenItem()));
if (!item->text(FilterValue).isEmpty()) {
menu.addSeparator();
menu.addAction(i18n("Remove filter"), this, SLOT(slotRemoveFilter()));
menu.addAction(QIcon::fromTheme(QStringLiteral("edit-delete")),i18n("Remove filter"), this, SLOT(slotRemoveFilter()));
}
menu.exec(QCursor::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