Skip to content

Commit

Permalink
Merge pull request FreeCAD#4287 from bitacovir/PartDesign_Icons
Browse files Browse the repository at this point in the history
[UI] Add SVG icons for three PartDesign commands
  • Loading branch information
yorikvanhavre authored Jan 21, 2021
2 parents c06cd3c + d87b260 commit b4d973d
Show file tree
Hide file tree
Showing 5 changed files with 1,839 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Mod/PartDesign/Gui/CommandBody.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ CmdPartDesignMigrate::CmdPartDesignMigrate()
sToolTipText = QT_TR_NOOP("Migrate document to the modern PartDesign workflow");
sWhatsThis = "PartDesign_Migrate";
sStatusTip = sToolTipText;
sPixmap = "PartDesign_Migrate";
}

void CmdPartDesignMigrate::activated(int iMsg)
Expand Down Expand Up @@ -665,7 +666,7 @@ CmdPartDesignMoveFeature::CmdPartDesignMoveFeature()
sToolTipText = QT_TR_NOOP("Moves the selected object to another body");
sWhatsThis = "PartDesign_MoveFeature";
sStatusTip = sToolTipText;
sPixmap = "";
sPixmap = "PartDesign_MoveFeature";
}

void CmdPartDesignMoveFeature::activated(int iMsg)
Expand Down Expand Up @@ -827,7 +828,7 @@ CmdPartDesignMoveFeatureInTree::CmdPartDesignMoveFeatureInTree()
sToolTipText = QT_TR_NOOP("Moves the selected object and insert it after another object");
sWhatsThis = "PartDesign_MoveFeatureInTree";
sStatusTip = sToolTipText;
sPixmap = "";
sPixmap = "PartDesign_MoveFeatureInTree";
}

void CmdPartDesignMoveFeatureInTree::activated(int iMsg)
Expand Down
3 changes: 3 additions & 0 deletions src/Mod/PartDesign/Gui/Resources/PartDesign.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
<file>icons/PartDesign_InvoluteGear.svg</file>
<file>icons/PartDesign_Line.svg</file>
<file>icons/PartDesign_LinearPattern.svg</file>
<file>icons/PartDesign_Migrate.svg</file>
<file>icons/PartDesign_Mirrored.svg</file>
<file>icons/PartDesign_MoveFeature.svg</file>
<file>icons/PartDesign_MoveFeatureInTree.svg</file>
<file>icons/PartDesign_MoveTip.svg</file>
<file>icons/PartDesign_MultiTransform.svg</file>
<file>icons/PartDesign_Pad.svg</file>
Expand Down
Loading

0 comments on commit b4d973d

Please sign in to comment.