Commit 63898981 authored by Tomaz  Canabrava's avatar Tomaz Canabrava

Add Icon to Action

parent 160417c9
......@@ -589,6 +589,7 @@ FileFilter::HotSpot::~HotSpot() = default;
QList<QAction *> FileFilter::HotSpot::actions()
{
QAction *action = new QAction(i18n("Copy Location"), this);
action->setIcon(QIcon::fromTheme(QStringLiteral("edit-copy")));
connect(action, &QAction::triggered, this, [this] {
QGuiApplication::clipboard()->setText(_filePath);
});
......
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