Commit 4444de6a authored by Laurent Montel's avatar Laurent Montel 😁

Add icon here

parent ff63243f
......@@ -49,11 +49,10 @@ void ListView::resizeColums()
void ListView::slotContextMenu(const QPoint &pos)
QMenu *menu = new QMenu(this);
menu->addAction(i18n("Add"), this, &ListView::addHeader);
QMenu menu(this);
menu.addAction(QIcon::fromTheme(QStringLiteral("list-add")), i18n("Add"), this, &ListView::addHeader);
if (currentItem()) {
menu->addAction(i18n("Remove"), this, &ListView::removeHeader);
menu.addAction(QIcon::fromTheme(QStringLiteral("list-remove")),i18n("Remove"), this, &ListView::removeHeader);
delete menu;
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