Skip to content

Commit

Permalink
Added icon for expire action
Browse files Browse the repository at this point in the history
  • Loading branch information
mattesony committed Nov 2, 2022
1 parent 6fc663f commit 9728398
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 3 deletions.
3 changes: 2 additions & 1 deletion COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ Copyright: none
License: CC0
Comment: Taken from https://github.com/paomedia/small-n-flat

Files: share/icons/badges/2_Expired.svg
Files: share/icons/application/scalable/actions/entry-expire.svg
share/icons/badges/2_Expired.svg
share/icons/database/C37_KPercentage.svg
share/icons/database/C45_Cancel.svg
share/icons/database/C46_Help.svg
Expand Down
51 changes: 51 additions & 0 deletions share/icons/application/scalable/actions/entry-expire.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions share/icons/icons.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<file>application/scalable/actions/edit-clear-locationbar-rtl.svg</file>
<file>application/scalable/actions/entry-clone.svg</file>
<file>application/scalable/actions/entry-delete.svg</file>
<file>application/scalable/actions/entry-expire.svg</file>
<file>application/scalable/actions/entry-restore.svg</file>
<file>application/scalable/actions/entry-edit.svg</file>
<file>application/scalable/actions/entry-new.svg</file>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/reports/ReportsWidgetHealthcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ void ReportsWidgetHealthcheck::customMenuRequested(QPoint pos)
}

// Create the "Expire entry" menu item
const auto expEntry = new QAction(tr("Expire Entry(s)…", "", selected.size()), this);
const auto expEntry = new QAction(icons()->icon("entry-expire"), tr("Expire Entry(s)…", "", selected.size()), this);
menu->addAction(expEntry);
connect(expEntry, &QAction::triggered, this, &ReportsWidgetHealthcheck::expireSelectedEntries);

Expand Down
2 changes: 1 addition & 1 deletion src/gui/reports/ReportsWidgetHibp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ void ReportsWidgetHibp::customMenuRequested(QPoint pos)
}

// Create the "Expire entry" menu item
const auto expEntry = new QAction(tr("Expire Entry(s)…", "", selected.size()), this);
const auto expEntry = new QAction(icons()->icon("entry-expire"), tr("Expire Entry(s)…", "", selected.size()), this);
menu->addAction(expEntry);
connect(expEntry, &QAction::triggered, this, &ReportsWidgetHibp::expireSelectedEntries);

Expand Down

0 comments on commit 9728398

Please sign in to comment.