Skip to content

Commit

Permalink
add cut/copy/paste icons
Browse files Browse the repository at this point in the history
  • Loading branch information
stoneface86 committed Jul 5, 2021
1 parent 5333f14 commit 0fedfa5
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ui/misc/IconManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,16 @@ QIcon const& IconManager::getIcon(Icons icon) {
iconRef.addFile(QStringLiteral(":/icons/editRedo-disabled.png"), QSize(), QIcon::Disabled);
break;
case Icons::editCut:
iconRef = instance.mPlaceholder;
iconRef.addFile(QStringLiteral(":/icons/editCut.png"));
iconRef.addFile(QStringLiteral(":/icons/editCut-disabled.png"), QSize(), QIcon::Disabled);
break;
case Icons::editCopy:
iconRef = instance.mPlaceholder;
iconRef.addFile(QStringLiteral(":/icons/editCopy.png"));
iconRef.addFile(QStringLiteral(":/icons/editCopy-disabled.png"), QSize(), QIcon::Disabled);
break;
case Icons::editPaste:
iconRef = instance.mPlaceholder;
iconRef.addFile(QStringLiteral(":/icons/editPaste.png"));
iconRef.addFile(QStringLiteral(":/icons/editPaste-disabled.png"), QSize(), QIcon::Disabled);
break;
case Icons::itemAdd:
iconRef.addFile(QStringLiteral(":/icons/itemAdd.png"));
Expand Down
6 changes: 6 additions & 0 deletions ui/resources/icons.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
<file>icons/editUndo-disabled.png</file>
<file>icons/editRedo.png</file>
<file>icons/editRedo-disabled.png</file>
<file>icons/editCut.png</file>
<file>icons/editCut-disabled.png</file>
<file>icons/editCopy.png</file>
<file>icons/editCopy-disabled.png</file>
<file>icons/editPaste.png</file>
<file>icons/editPaste-disabled.png</file>
<file>icons/itemAdd.png</file>
<file>icons/itemAdd-disabled.png</file>
<file>icons/itemRemove.png</file>
Expand Down
Binary file added ui/resources/icons/editCopy-disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/resources/icons/editCopy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/resources/icons/editCut-disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/resources/icons/editCut.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/resources/icons/editPaste-disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/resources/icons/editPaste.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0fedfa5

Please sign in to comment.